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

AttributeError: 'str' object has no attribute 'decode' #4

Open
QizhiSu opened this issue Jun 15, 2021 · 1 comment
Open

AttributeError: 'str' object has no attribute 'decode' #4

QizhiSu opened this issue Jun 15, 2021 · 1 comment

Comments

@QizhiSu
Copy link

QizhiSu commented Jun 15, 2021

Dear Tomas,
I have encountered a AttributeError: 'str' object has no attribute 'decode' error when I tried to reproduce the example prediction.

details are as follow:

Warning: Error in py_call_impl: AttributeError: 'str' object has no attribute 'decode'

Detailed traceback:
File "C:\Users\waters\AppData\Local\R-MINI1\envs\R-RETI1\lib\site-packages\tensorflow_core\python\keras\saving\save.py", line 146, in load_model
return hdf5_format.load_model_from_hdf5(filepath, custom_objects, compile)
File "C:\Users\waters\AppData\Local\R-MINI1\envs\R-RETI1\lib\site-packages\tensorflow_core\python\keras\saving\hdf5_format.py", line 166, in load_model_from_hdf5
model_config = json.loads(model_config.decode('utf-8'))

[No stack trace available]

Any clue for this error?

Best,
Sukis

@TomasVrzal
Copy link
Owner

Hi, please try some steps already discussed here: #1

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