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

CPU-only machines Mac Silicone M1 with longer texts #137

Open
yin-ori opened this issue Mar 6, 2024 · 0 comments
Open

CPU-only machines Mac Silicone M1 with longer texts #137

yin-ori opened this issue Mar 6, 2024 · 0 comments

Comments

@yin-ori
Copy link

yin-ori commented Mar 6, 2024

Hey all,

I've been trying to set up tortoise on a virtualenv (which is now working fine with python 3.11.1 - with 3.12.2 it was unable to build wheels, anyways..:)
I am able to run do_tts.py and the code provided in tortoise_tts.ipynb.
However, I would like to run it with longer texts, thus trying read.py and read_fast.py

In doing so, I get an error stating I don't have a GPU, so good so true, but I am not sure where to change the settings as stated

 raise RuntimeError('Attempting to deserialize object on a CUDA '
RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False. If you are running on a CPU-only machine, please use torch.load with map_location=torch.device('cpu') to map your storages to the CPU.

In which file in which line am I supposed to change that?
I checked if the files read.py and read_fast.py contain torch.load, but they don't, so I am wondering where can I make the necessary changes? (I have not made changes to the above mentioned py files, so if you could help me in clarifying where to make the change in the original code, that would be much appreciated.)

Best

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

1 participant