YOLO-CoreML-MPSNNGraph icon indicating copy to clipboard operation
YOLO-CoreML-MPSNNGraph copied to clipboard

__init__() got an unexpected keyword argument 'dtype'

Open shantanu848 opened this issue 5 years ago • 1 comments

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'

shantanu848 avatar Dec 07 '20 12:12 shantanu848

You should use Keras 1.2.2 with this repo.

hollance avatar Dec 07 '20 16:12 hollance