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
Windows + python3.9 + OpenVoice v2 = not possible without CUDA? #188
Comments
Hello, I just ran into the same issue. I replaced the line in question with: |
Lol, just came back to say I iterated towards the same solution and got it working. Thanks for the tip. For all those who will come to this issue looking for the same, here's how I iterated towards the solution:
Now there are two parameters of interest there - Line 91 in transcribe contains a really long comment, out of which I will take out the most important parts: """
Initializes the Whisper model.
Args:
[...]
device: Device to use for computation ("cpu", "cuda", "auto").
compute_type: Type to use for computation.
See https://opennmt.net/CTranslate2/quantization.html.
[...]
""" Quantization link provides a reference table of implicit type conversions on load, in which I was able to look up what is the default value for CPU for I changed the corresponding line to hardcode |
haha you went about it much more professionally than I did :) |
Hi,
I followed the windows installation guide, and tried both on latest python 3.12 and 3.9.12 (per recommendation from the guide for python to be 3.9).
When I attempt to run the v2 example from
demo_part3.ipynb
, I am getting error originating from the following line:target_se, audio_name = se_extractor.get_se(reference_speaker, tone_color_converter, vad=False)
This is the error:
In the beginning of my script - I follow the demo and setup my
device
variable in the same way to fallback tocpu
. When I open these_extractor.py
file from the error above, I see that a device is hardcoded to be CUDA. And I end up with the error above.My device is using integrated graphics from Intel, so afaik it is not even CUDA-enabled. Does this mean I cannot run OpenVoice v2, without NVidia graphics?
This is the code from the library - se_extractor.py - with hardcoded cuda string, that raises the issue:
The text was updated successfully, but these errors were encountered: