SRGAN icon indicating copy to clipboard operation
SRGAN copied to clipboard

AttributeError: 'NpzFile' object has no attribute

Open ghost opened this issue 6 months ago • 0 comments

[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!

ghost avatar Jun 26 '25 16:06 ghost