-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
[Bug] Doesn't respect the cuda flag #2947
Comments
at "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\TTS\utils\io.py" at line 83 and line 86 change torch.load(f, map_location=map_location, **kwargs) to torch.load(f, map_location=torch.device("cpu"), **kwargs) |
to fix it, just modify this line : Line 645 in f829bf5
add the device to the map_location from the class :
|
i'm not sure if the PR was necessary, ignore it if it doesn't fit the requirements, I didn't really paid attention to the code guidelines ... |
[EN] [FR] |
Didn't work. Retuned the error:
|
Didn't work. Retuned error: |
``When executing the following from the command line:
I get the same error as others; namely:
I then created the following script:
But I get the strange error:
The certainly doesn't seem to be permission issue. So can't explain the above. Any thought? |
I'm encountering the same issue when using the example provided in the Readme.md (Running a multi-speaker and multi-lingual model). I've tried a few ways to fix it but none of which I've tried works thus far.
|
@JulienRioux same here, did you find any fix? |
the fix (#2951 ) is on the dev environment, we'll have to wait the next version release for a publicly available fix. |
@loupzeur - That did not work for me :( I am running on windows 11. i5 12th Gen. I upgraded to TTS Dev version:
My coqui TTS installed packages are:
Running the following command:
I get the same error:
|
Looking at the resolution of #2951 I see that line 645 of the file Although I used the command:
I thought that the above pip install command would upgrade my installation of TTS, it seems that it didn't. I manually modified the However, when running the following from the windows command line:
I now get the error:
PS - I asked ChatGPT: I then asked: But checking my pip list I have the required torch packages: @loupzeur - thoughts and help please :) |
if you do it by code, does it work ? |
Using the following code (where I included my own CPU related workaround(:
However, I get the error: I have tried everything to resolve this error; including:
Successfully processed 4 files; Failed processing 0 files |
And with this simpler code, does it work ?
|
I get the error:
|
With the help of chatGPT, I tried the code:
I now get the standard error:
|
are you sure that you have the correct library with the actual fix ? I don't use windows, so I can't help with the permission problem, can you try to copy the folder's content to the same place your code is ? |
Hey @loupzeur I tried running your code in my virtualenv:
It gave me the error:
As I am running PS - I am still getting permission denied if I try to access the xtts model locally on my PC : What does you line of code Thanks for all your help. It is much appreciated. Issue boards can be the grave-yard for many people's issue. You are proof that all heros don't wear capes 🦸♂️ |
Hello, @grabani, no problem, thanks. Concerning the permission problem, did you open your folder that causes permissions' problems with the windows navigator ? I'm pretty sure you never allowed your user to get access to it, hence the permissions problem. (you can also check if the permissions' parameters with the navigator gives read access to your user, may be the linux terminal's user from windows doesn't have your user's permission). |
i tried your script and it still shows the CUDA error , i am running this in kali linux with python 3.10.3 and TTS 17.04 which is the latest version |
Did you find any fix? |
Did you find any fix? |
Duplicate #2980 |
it works for me , ths |
Describe the bug
Here is the bug:
Also doesn't work with a file:
Environment
Additional context
No response
The text was updated successfully, but these errors were encountered: