Skip to content

ValueError: Cannot create group in read only mode. #3

@DivotionProjects

Description

@DivotionProjects

Hello,
thanks for your work!
I tried to launch your model and had the following error when loading weights:

File "test_model.py", line 81, in init_model
model_all.load_weights('model.hdf5')
File "C:\Users\Divotion\AppData\Local\Programs\Python\Python37\lib\site-packages\keras\engine\network.py", line 1166, in load_weights
f, self.layers, reshape=reshape)
File "C:\Users\Divotion\AppData\Local\Programs\Python\Python37\lib\site-packages\keras\engine\saving.py", line 1030, in load_weights_from_hdf5_group
str(len(filtered_layers)) + ' layers.')
ValueError: You are trying to load a weight file containing 8 layers into a model with 16 layers.

I think some weights (for right image) are missing in the current model file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions