Skip to content

AttributeError: 'NpzFile' object has no attribute #270

@ghost

Description

[TLX] Restore pre-trained weights
Traceback (most recent call last):
File "C:\Users\temac\Documents\ai soft\SRGAN-master\train.py", line 111, in
VGG = vgg.VGG19(pretrained=True, end_with='pool4', mode='dynamic')
File "C:\Users\temac\Documents\ai soft\SRGAN-master\vgg.py", line 261, in vgg19
restore_model(model, layer_type='vgg19')
File "C:\Users\temac\Documents\ai soft\SRGAN-master\vgg.py", line 169, in restore_model
npz = np.load(os.path.join('model', model_saved_name[layer_type]), allow_pickle=True, encoding='latin1').item()
AttributeError: 'NpzFile' object has no attribute 'item'. Did you mean: 'items'?

Please help me fix this error!

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