facebookresearch / audiocraft

Audiocraft is a library for audio processing and generation with deep learning. It features the state-of-the-art EnCodec audio compressor / tokenizer, along with MusicGen, a simple and controllable music generation LM with textual and melodic conditioning.
MIT License
20.15k stars 2.01k forks source link

Dependency Conflict in Colabaratory #438

Open daokid-ai opened 3 months ago

daokid-ai commented 3 months ago

Ran !python3 -m pip install -U git+https://github.com/facebookresearch/audiocraft#egg=audiocraft But got below error when running in colab notebook.

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. torchtext 0.17.1 requires torch==2.2.1, but you have torch 2.1.0 which is incompatible. torchvision 0.17.1+cu121 requires torch==2.2.1, but you have torch 2.1.0 which is incompatible.

adityarajsahu commented 3 months ago

Use the following commands in colab

  1. Install setuptools, wheel, audiocraft and ffmpeg-python using pip !python -m pip install setuptools wheel !python -m pip install -U audiocraft !pip install ffmpeg-python

  2. Next, install torchvision 0.16.0 and torchtext 0.16.0 !pip install torchvision==0.16.0 !pip install torchtext==0.16.0

Now, you will be able to use the audiocraft models without any dependency conflicts