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

Layer expects 60 weight(s). Received 62 saved weight(s) #4

Open
lkathke opened this issue Apr 3, 2024 · 1 comment
Open

Layer expects 60 weight(s). Received 62 saved weight(s) #4

lkathke opened this issue Apr 3, 2024 · 1 comment

Comments

@lkathke
Copy link

lkathke commented Apr 3, 2024

Hello,

I am trying to run this project, but I can't. I am currently getting this, when I run inference.py:

Traceback (most recent call last):
File "/home/lasse/Real-Time-Super-Resolution/inference.py", line 6, in
generator.load_weights('weights/GeneratorVG4(1520).h5')
File "/home/lasse/.local/lib/python3.10/site-packages/keras/src/utils/traceback_utils.py", line 122, in error_handler
raise e.with_traceback(filtered_tb) from None
File "/home/lasse/.local/lib/python3.10/site-packages/keras/src/legacy/saving/legacy_h5_format.py", line 369, in load_weights_from_hdf5_group
raise ValueError(
ValueError: Weight count mismatch for layer #2 (named rrd_block in the current model, rrd_block in the save file). Layer expects 60 weight(s). Received 62 saved weight(s)

@sam3012
Copy link

sam3012 commented Jun 24, 2024

(Same issue 🙌) Edited Use python=3.7 while creating conda env and then pip install -r requirements.txt

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