Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shantanu848 opened this issue Dec 7, 2020 · 1 comment
Open

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

shantanu848 opened this issue Dec 7, 2020 · 1 comment

Comments

@shantanu848
Copy link

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
Copy link
Owner

hollance commented Dec 7, 2020

You should use Keras 1.2.2 with this repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants