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

Can't load model "wavelet_weights_c2.pkl" #1

Open
ayst123 opened this issue Mar 8, 2018 · 9 comments
Open

Can't load model "wavelet_weights_c2.pkl" #1

ayst123 opened this issue Mar 8, 2018 · 9 comments

Comments

@ayst123
Copy link

ayst123 commented Mar 8, 2018

Hi,

It seems the uploaded model doesn't work. is it possible to update it? Thanks!

image

@hhb072
Copy link
Owner

hhb072 commented Mar 9, 2018

Please use pickle to load the parameters stored in the pkl file, following the lines 43-49 in networks.py.

import pickle
f = file('wavelet_weights_c2.pkl','rb')
dct = pickle.load(f) 
 f.close()

@ayst123
Copy link
Author

ayst123 commented Mar 9, 2018

Thanks for the reply. But I am still confused. The pkl file is only for WaveletTransform? How to load parameters for the NetSR(). I am not sure what should we give for "--pretrained".

Is it possible to have the detailed instruction on how to test image using the existing parameters ? Thanks

@ayst123
Copy link
Author

ayst123 commented Mar 9, 2018

Can I ask where is the pretrained model for srnet? It seems that pkl file is for the module, WaveletTransform, but not srnet. Thanks

image

@ineslyl
Copy link

ineslyl commented May 2, 2018

I have the same question with the variable pretrained.

@unlabeledData
Copy link

The pkl file can not be loaded using the method presented in the second floor.
The error is like that:
Traceback (most recent call last):
File "test_tmp.py", line 4, in
model = pickle.load(file)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xbf in position 23: ordinal not in range(128)

Do you know what's wrong with it?

@TuXiaokang
Copy link

@unlabeledData pickle.load(file, encoding='latin1')

@TuXiaokang
Copy link

how to load WaveletTransform's weights when upscale factor == 8? @hhb072

@hongdd
Copy link

hongdd commented Apr 10, 2019

wavelet_weights_c2.pkl
where can i get this weights ????

@ChriswooTalent
Copy link

@TuXiaokang Thank you, it works when I add (encoding='latin1')

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

7 participants