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

Error in restore_model #262

Open
gralliry opened this issue Jun 1, 2024 · 0 comments
Open

Error in restore_model #262

gralliry opened this issue Jun 1, 2024 · 0 comments

Comments

@gralliry
Copy link

gralliry commented Jun 1, 2024

Traceback (most recent call last):
  File "D:\Code\Python\SRGAN\train.py", line 46, in <module>
    VGG = vgg.VGG19(pretrained=True, end_with='pool4', mode='dynamic')
  File "D:\Code\Python\SRGAN\vgg.py", line 263, in vgg19
    restore_model(model, layer_type='vgg19')
  File "D:\Code\Python\SRGAN\vgg.py", line 174, in restore_model
    logging.info("  Loading %s in %s" % (str(val[1][0].shape), val[0]))
IndexError: too many indices for array: array is 0-dimensional, but 1 were indexed
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

1 participant