hollance / YOLO-CoreML-MPSNNGraph

Tiny YOLO for iOS implemented using CoreML but also using the new MPS graph API.
MIT License
929 stars 251 forks source link

__init__() got an unexpected keyword argument 'dtype' #67

Open shantanu848 opened 3 years ago

shantanu848 commented 3 years ago

what should I do now? I am getting this error, I have resolved the earlier errors by degrading the python from 3.8.1 to 3.7.6, and using keras version 2.0.1. This seems like dead end to me.

File "person.py", line 13, in model = load_model('E:/python files/body measurements proj/Background-Removal-master/Background-Removal-master/main_model_2.hdf5') File "C:\Users\user\AppData\Roaming\Python\Python37\site-packages\keras\models.py", line 140, in load_model model = model_from_config(model_config, custom_objects=custom_objects) File "C:\Users\user\AppData\Roaming\Python\Python37\site-packages\keras\models.py", line 190, in model_from_config return layer_from_config(config, custom_objects=custom_objects) File "C:\Users\user\AppData\Roaming\Python\Python37\site-packages\keras\utils\layer_utils.py", line 38, in layer_from_config return layer_class.from_config(config['config'], custom_objects=custom_objects) File "C:\Users\user\AppData\Roaming\Python\Python37\site-packages\keras\engine\topology.py", line 2575, in from_config process_layer(layer_data) File "C:\Users\user\AppData\Roaming\Python\Python37\site-packages\keras\engine\topology.py", line 2553, in process_layer custom_objects=custom_objects) File "C:\Users\user\AppData\Roaming\Python\Python37\site-packages\keras\utils\layer_utils.py", line 40, in layer_from_config return layer_class.from_config(config['config']) File "C:\Users\user\AppData\Roaming\Python\Python37\site-packages\keras\engine\topology.py", line 1016, in from_config return cls(**config) TypeError: init() got an unexpected keyword argument 'dtype'

hollance commented 3 years ago

You should use Keras 1.2.2 with this repo.