msieg / deep-music-visualizer

The Deep Visualizer uses BigGAN (Brock et al., 2018) to visualize music.
383 stars 104 forks source link

Can't run because of deprecated scipy.misc functions #11

Open Jahsee opened 3 years ago

Jahsee commented 3 years ago

Love this project! Python noob, can't get it to work. Working on MacOS Catalina, Python 3.8.

Changed line 7. old: 'from scipy.misc import toimage' new: 'from PIL import Image'

This affects line 384: 'im=np.array(toimage(out))' and 398: 'clip = mpy.ImageSequenceClip(frames, fps=22050/frame_length)'

Despite a lot of attempted modification and some beginner Python tutorials, I cannot get this code to run. Please help!!

Jessse-del commented 3 years ago

I can't get it running either. Any luck?

evanheller commented 3 years ago

As explained here: https://stackoverflow.com/questions/57545125/attributeerror-module-scipy-misc-has-no-attribute-toimage

The toimage() function has been deprecated in scipy as of 1.3. So you'd have to either install an older version (<=1.2.0), or supply the function yourself.