chrisdonahue / wavegan

WaveGAN: Learn to synthesize raw audio with generative adversarial networks
MIT License
1.33k stars 281 forks source link

Changed cPickle to pickle in train_wavegan.py and train_specgan.py #13

Closed Anirudh257 closed 5 years ago

Anirudh257 commented 5 years ago

This is done to make the codes compatible with Python 3.

Source

chrisdonahue commented 5 years ago

This is likely a breaking change because Python3's pickle and Python2's cPickle have some differences.

Can you wrap this in an exception for compatibility

try:
    import cPickle as pickle #Python 2
except:
    import pickle #Python 3