declare-lab / tango

A family of diffusion models for text-to-audio generation.
https://tango2-web.github.io/
Other
1.08k stars 88 forks source link

Trouble Installing the Required PyTorch Version #56

Open joshua-beck-0908 opened 1 month ago

joshua-beck-0908 commented 1 month ago

I can't install the prerequisites required to run this model.

I got the following error when I tried to install them with pip install -r requirements.txt

ERROR: Could not find a version that satisfies the requirement torch==1.13.1 (from versions: 2.2.0, 2.2.1, 2.2.2, 2.3.0, 2.3.1, 2.4.0, 2.4.1)
ERROR: No matching distribution found for torch==1.13.1

Am I doing something wrong here? It seems Python 3.12 cannot install such an old version of PyTorch from pip.

Can a more modern version be used? Or do I need to do some manual installation process? If so, perhaps the instructions could be updated to reflect this.

Thanks, Joshua

Dimitris-STAT commented 1 month ago

I was able to run the google colab demo with: Python 3.10.12, the requirements.txt and some extra manual installing:

pip install scikit_learn==1.2.2 pip install numpy==2.0.0 pip install bigframes==1.17.0

If you are running on local gpu/cpu it could work with a virtual env.

joshua-beck-0908 commented 1 month ago

Yeah, that seems to work.

A little tricky when I'm running Ubuntu 24.04, which ships with Python 3.12 out of the box!

Had to bite the bullet and delete then venv; then reinstall everything to a new venv with Python 3.10 from the deadsnakes PPA.

Would've been nice to know that beforehand, but nevertheless Tango seems to work now.

I'll generate myself a round of applause. 😛

Dimitris-STAT commented 1 month ago

Hahaha, Nice one, happy to help !