msieg / deep-music-visualizer

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

Help!!! RuntimeError: Numpy is not available #25

Open qxq0920 opened 2 years ago

qxq0920 commented 2 years ago

Generating frames

0%| | 0/16 [00:33<?, ?it/s] Traceback (most recent call last): File "D:\myproject\deep-music-visualizer-master\visualize.py", line 554, in output_cpu = output.cpu().data.numpy() RuntimeError: Numpy is not available

hubortje commented 2 years ago

Hey there, it seems like you've failed to import numpy. Are you running the script in an anaconda environment (highly recommended) or just simply running the script? For the latter, try importing numpy via the command line and pip.

qxq0920 commented 2 years ago

Hey there, it seems like you've failed to import numpy. Are you running the script in an anaconda environment (highly recommended) or just simply running the script? For the latter, try importing numpy via the command line and pip.

I run it on the script ,and i have already imported numpy.The numpy version is 1.21.6

hubortje commented 2 years ago

But did you import it in the script or into your python installation? The latter should be the case, and therefor you should import numpy via the python pip command prior to running the script.