-
Notifications
You must be signed in to change notification settings - Fork 23
Description
Describe your Problem:
Unable to load the model
Error report:
Traceback (most recent call last):
File "/ChessVisionBot/code/main.py", line 235, in
ml_model.init_binary()
File "/ChessVisionBot/code/ml_model.py", line 11, in init_binary
binary_model = load_model(model_path)
File "/miniforge3/envs/cv_chessbot/lib/python3.10/site-packages/keras/utils/traceback_utils.py", line 70, in error_handler
raise e.with_traceback(filtered_tb) from None
File "/miniforge3/envs/cv_chessbot/lib/python3.10/site-packages/keras/utils/generic_utils.py", line 103, in func_load
code = marshal.loads(raw_code)
ValueError: bad marshal data (unknown type code)
Expected behavior:
This is happening due to an incompatible version of Python, @kochsebastian can you reupload the model after training in python 3.10
System:
- OS: Mac Os M1
- Interpreter: Python 3.10.12
- Opencv Version: Opencv 4.7
- Tensorflow Version: Tensorflow 2.11