Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: imageio.ffmpeg.download() has been deprecated. Use 'pip install imageio-ffmpeg' instead.' #41

Open
devalladares opened this issue Oct 15, 2022 · 12 comments

Comments

@devalladares
Copy link


Screenshot 2022-10-14 at 11 29 46 PM

Code's not running anymore :( Was one of my favourite notebooks, please let me know if and how it can be fixed!

@deeplearn-art
Copy link

deeplearn-art commented Oct 17, 2022

Try adding
!pip install imageio==2.4.1
before installing lucidsonicdreams

However there will be more errors...

@devalladares
Copy link
Author

@deeplearn-art thank you so much!! While it processed that stage, when I went to the next step to process the video, I got another error that also seems sound related —


Setting up TensorFlow plugin "fused_bias_act.cu": Failed!
WARNING:py.warnings:/usr/local/lib/python3.7/dist-packages/librosa/core/audio.py:165: UserWarning: PySoundFile failed. Trying audioread instead.
  warnings.warn("PySoundFile failed. Trying audioread instead.")

Preparing audio...
WARNING:py.warnings:/usr/local/lib/python3.7/dist-packages/librosa/core/audio.py:165: UserWarning: PySoundFile failed. Trying audioread instead.
  warnings.warn("PySoundFile failed. Trying audioread instead.")

Do let me know if you have an idea how to go about this thank you so much!

Screen Shot 2022-10-17 at 4 54 21 PM

@deeplearn-art
Copy link

Yes, that issue has been reported before. It used to happen in local installation but not in colab.
Unfortunately there is no obvious fix, I think the packages have changed and no one has saved a working configuration.

The Deep Music Visualizer still works though
https://colab.research.google.com/github/Ease78/Deep-Music-Visualizer-Google-Colab/blob/master/DeepMusicVisualizer.ipynb

@rwconsultancy
Copy link

rwconsultancy commented Oct 18, 2022

I managed to get past the above problem, including the audioread one that the OP mentions, by using this sequence:

! pip install moviepy
! pip3 install imageio==2.4.1
! pip install --upgrade imageio-ffmpeg
! pip install lucidsonicdreams
from google.colab import files
from lucidsonicdreams import LucidSonicDream

I can't claim any credit for it though; I just found it on in a dark corner of Reddit.

That held for a little while but then, about 2 weeks ago, something else changed in the Colab environment and I started getting a brand new error:

opera_JwttwdkQjW

Interestingly, if I follow the instructions to use the BigGan function, instead of using a StyleGan style, it still works - but I'd really like use StyleGan again if at all possible.

@udiallo
Copy link

udiallo commented Oct 18, 2022

I have also tried to get the package running again in the last few days but also failed because of the assertion error.

Can you explain how you used the BigGan variant or where to find info about it?

@rwconsultancy
Copy link

rwconsultancy commented Oct 18, 2022

It's here, down at the bottom:

https://colab.research.google.com/drive/1Y5i50xSFIuN3V4Md8TB30_GOAtts7RQD

What I found is that running the BigGan code there results in an error that demands you restart the runtime. You then have to run everything from the top (ie from '! pip install moviepy 'in the snippet I posted above, and then the BigGan stuff), all over again and then it's happy.

@udiallo
Copy link

udiallo commented Oct 19, 2022

Okay, so I had a No GPU available at first, but after changing the runtime type to GPU it worked. Thank you.

Anyways, I would really like to get the StyleGan back to work. It should be possible to include the StyleGan model in the same way as the BigGan model, or even using some different StyleGan version, such as this pytorch StyleGan. Any opinions on these ideas?

@rwconsultancy
Copy link

I really don't enough about this stuff to comment unfortunately. One big question though is: what changed in Colab to suddenly break this? I followed some instructions to downgrade the Python version to see if that would undo the change but, when all it did was open other big can of errors, I abandoned that line of enquiry. Any clever people out there with any ideas?

@deeplearn-art
Copy link

I really don't enough about this stuff to comment unfortunately. One big question though is: what changed in >Colab to suddenly break this?

The required packages are listed in setup.py, I think it likely that one or more have been updated by Colab and because of that, the notebook is broken.

To avoid this, it is customary to specify working version of the modules, but apart from tensorflow==1.15 this has not been done.

If someone has this working locally, maybe they might know the correct version numbers.

@cnatic
Copy link

cnatic commented Nov 1, 2022

would also love to see this run again.

@udiallo
Copy link

udiallo commented Nov 7, 2022

Unfortunately, I also have no GPU locally with which I could try to find the broken packages. I heard it is also possible to use Google VM's for free (to a certain extend). Does anybody have experiences with Lucid Sonic Dreams on a Google VM? Maybe it is worth trying it to at least find the broken packages and fix them on Colab then.

@rwconsultancy
Copy link

rwconsultancy commented Dec 19, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants