mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-04-25 02:58:33 +08:00
Update config.py
Change the inference device for Mac to accelerate inference and reduce memory leak
This commit is contained in:
parent
31bd7c18a4
commit
3e81276f7c
@ -20,7 +20,7 @@ python_exec = sys.executable or "python"
|
|||||||
if torch.cuda.is_available():
|
if torch.cuda.is_available():
|
||||||
infer_device = "cuda"
|
infer_device = "cuda"
|
||||||
elif torch.backends.mps.is_available():
|
elif torch.backends.mps.is_available():
|
||||||
infer_device = "mps"
|
infer_device = "cpu"
|
||||||
else:
|
else:
|
||||||
infer_device = "cpu"
|
infer_device = "cpu"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user