neonbjb / tortoise-tts

A multi-voice TTS system trained with an emphasis on quality
Apache License 2.0
12.84k stars 1.78k forks source link

Unable to import enipos #347

Open fitbyprabhat opened 1 year ago

fitbyprabhat commented 1 year ago

---> 10 from einops import rearrange, repeat, reduce 11 from einops.layers.torch import Rearrange 12 ModuleNotFoundError: No module named 'einops'

hexahigh commented 1 year ago

Getting the same error on google colab

hashnimo commented 1 year ago

Got the same error, please fix it.

sraldleif commented 1 year ago

You can get it running by downgrading a few packages:

!pip3 install einops==0.5.0
!pip3 install rotary_embedding_torch==0.1.5
!pip3 install unidecode==1.3.5
hashnimo commented 1 year ago

Thank you so much, it worked. To fix this whole issue, just add the above code below the !pip3 install -r requirements.txt in your Google Colab notebook. Here's an example:

!git clone https://github.com/jnordberg/tortoise-tts.git
%cd tortoise-tts
!pip3 install transformers==4.19.0
!pip3 install -r requirements.txt

!pip3 install einops==0.5.0
!pip3 install rotary_embedding_torch==0.1.5
!pip3 install unidecode==1.3.5

!python3 setup.py install
sandeeptete2020 commented 1 year ago

What's up with the 'huggingface_hub' module. Tried installing but can't find the package.

hashnimo commented 1 year ago

What's up with the 'huggingface_hub' module. Tried installing but can't find the package.

No issues, it's working.

Downloading huggingface_hub-0.13.1-py3-none-any.whl (199 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 199.2/199.2 KB 29.5 MB/s eta 0:00:00
fitbyprabhat commented 1 year ago

btw you guys can simply add the version number of the library package to the requirement.txt file. hope it helps

fitbyprabhat commented 1 year ago

What's up with the 'huggingface_hub' module. Tried installing but can't find the package.

No issues, it's working.

Downloading huggingface_hub-0.13.1-py3-none-any.whl (199 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 199.2/199.2 KB 29.5 MB/s eta 0:00:00

it's still not working sir

sandeeptete2020 commented 1 year ago

What's up with the 'huggingface_hub' module. Tried installing but can't find the package.

No issues, it's working.

Downloading huggingface_hub-0.13.1-py3-none-any.whl (199 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 199.2/199.2 KB 29.5 MB/s eta 0:00:00

it's still not working sir

Well, I followed the solution from @hashnimo. Created a new colab notebook and manually added the codes and run each code cells manually to test for errors before adding more code cells. This time there were no errors though and working. My format is now like this if I may have messed up in my previous notebooks: !pip3 install -U scipy !git clone https://github.com/jnordberg/tortoise-tts.git %cd tortoise-tts !pip3 install transformers==4.19.0 !pip3 install -r requirements.txt !pip3 install einops==0.5.0 !pip3 install rotary_embedding_torch==0.1.5 !pip3 install unidecode==1.3.5 !python3 setup.py install

dairydaddy commented 1 year ago

Newbie question, but why clone from jnordberg and not neonbjb?

hashnimo commented 1 year ago

Newbie question, but why clone from jnordberg and not neonbjb?

It was like that in the official Colab notebook and I had this exact question too. However, I'm now using the @neonbjb version. !git clone https://github.com/neonbjb/tortoise-tts.git

sandeeptete2020 commented 1 year ago

Newbie question, but why clone from jnordberg and not neonbjb?

It was like that in the official Colab notebook and I had this exact question too. However, I'm now using the @neonbjb version. !git clone https://github.com/neonbjb/tortoise-tts.git

There no issue working with both versions. Though jnordberg version is not updated but it's good for testing.

pomeranian99 commented 11 months ago

Thanks so much -- this worked for me too!

You can get it running by downgrading a few packages: