Skip to content

Error in restore_model #262

@gralliry

Description

@gralliry
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions