Mask_RCNN
Mask_RCNN copied to clipboard
AttributeError: 'str' object has no attribute 'decode'
While running demo.ipynb i get the below error:
Tensorflow version = 1.15.0
AttributeError Traceback (most recent call last)
~\Documents\Mask_RCNN-master\mrcnn\model.py in load_weights(self, filepath, by_name, exclude) 2128 2129 if by_name: -> 2130 saving.load_weights_from_hdf5_group_by_name(f, layers) 2131 else: 2132 saving.load_weights_from_hdf5_group(f, layers)
c:\users\chethan\anaconda3\envs\rcnn\lib\site-packages\keras\engine\topology.py in load_weights_from_hdf5_group_by_name(f, layers, skip_mismatch, reshape) 3416 """ 3417 if 'keras_version' in f.attrs: -> 3418 original_keras_version = f.attrs['keras_version'].decode('utf8') 3419 else: 3420 original_keras_version = '1'
AttributeError: 'str' object has no attribute 'decode'
How can I fix this issue ?
Are you using tensorflow-gpu? What keras version are you using?
I'm not using tensorflow-gpu version.
Below are the current versions: Tensorflow: 1.14.0 Keras: 2.1.6
Try to install h5py To resolve this problem !pip install h5py==2.10.0
@bhsnada Thank you! This worked for me.
Thanks , This works for me too!
Thank you very much worked for me also!
Thank you so much. Worked for me too.
@bhsnada Thank you! This worked for me.
Try to install h5py To resolve this problem !pip install h5py==2.10.0
i've tried download it but it didnt work it gives this error message
"ERROR: Could not build wheels for h5py, which is required to install pyproject.toml-based projects"
How can i fix this issue ?
@bhsnada Thank you! This worked for me.
Try to install h5py To resolve this problem !pip install h5py==2.10.0
i've tried download it but it didnt work it gives this error message
"ERROR: Could not build wheels for h5py, which is required to install pyproject.toml-based projects"
How can i fix this issue ?
I have a similar issue on osx
@bhsnada Thank you! This worked for me.
Try to install h5py To resolve this problem !pip install h5py==2.10.0
i've tried download it but it didnt work it gives this error message
"ERROR: Could not build wheels for h5py, which is required to install pyproject.toml-based projects"
How can i fix this issue ?
That's my issus now, python 3.10