tadax / srgan

SRGAN implemetation with TensorFlow
83 stars 31 forks source link

TypeError: load() got an unexpected keyword argument 'encoding' #1

Closed yangcheng001 closed 7 years ago

yangcheng001 commented 7 years ago

thank you for upload the code of srgan.But when I run 'python vgg19/cifar_100/preprocess.py', I got this error: Traceback (most recent call last): File "preprocess.py", line 50, in data.preprocess() File "preprocess.py", line 32, in preprocess meta, train, test = self.load_pickle('raw') File "preprocess.py", line 41, in load_pickle train = pickle.load(f, encoding='latin-1') TypeError: load() got an unexpected keyword argument 'encoding'

Can you help me?

tadax commented 7 years ago

Use Python 3 instead of 2.

yangcheng001 commented 7 years ago

thanks for your help

naveenfy commented 3 years ago

Worked, thanks.