Loading pretrained model from ".npz" file

Have a good day everyone.
I am trying to load a pretrained torch model, which is saved in “.npz” file.
Normally, I use torch.load() for “.pt” files, however I couldn’t handle this one.
How can I load it?
Thanks, regards.

np.load should work, as npz is a numpy file format.

1 Like

There was a mismatch between layer names and I solved it by hard-coding. Thank you.