myshell-ai / OpenVoice

Instant voice cloning by MIT and MyShell.
https://research.myshell.ai/open-voice
MIT License
28.81k stars 2.82k forks source link

added CPU support to se_extractor.py #262

Open Afnanksalal opened 3 months ago

Afnanksalal commented 3 months ago

implemented an if statement to check if device is cuda or cpu, if it is a GPU device use GPU for extracting, else use CPU. formerly there was no CPU extraction support by default. by doing this way we can utilize CPU power for small scale extraction without wasting GPU power

i made this fork regarding the issue#261 about the CPU implementation

issue link: https://github.com/myshell-ai/OpenVoice/issues/261

image