igul222 / improved_wgan_training

Code for reproducing experiments in "Improved Training of Wasserstein GANs"
MIT License
2.35k stars 668 forks source link

AttributeError: module '_pickle' has no attribute 'HIGHEST_PROTOCOL' #86

Open Ronzhen opened 4 years ago

Ronzhen commented 4 years ago

How do you solve this problem? improved_wgan_training-master/tflib/plot.py", line 46, in flush pickle.dump(dict(_since_beginning), f, pickle.HIGHEST_PROTOCOL) AttributeError: module '_pickle' has no attribute 'HIGHEST_PROTOCOL'

Thank you

sh-s-AI commented 4 years ago

@Ronzhen replace -1 instead of HIGHEST_PROTOCOL : pickle.dump(dict(_since_beginning), f, -1)