mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-04-26 11:36:35 +08:00
modified: GPT_SoVITS/inference_webui.py
This commit is contained in:
parent
38dca77477
commit
7a6d251e44
@ -45,6 +45,8 @@ os.environ['PYTORCH_ENABLE_MPS_FALLBACK'] = '1' # 确保直接启动推理UI时
|
|||||||
|
|
||||||
if torch.cuda.is_available():
|
if torch.cuda.is_available():
|
||||||
device = "cuda"
|
device = "cuda"
|
||||||
|
elif torch.backends.mps.is_available():
|
||||||
|
device = "mps"
|
||||||
else:
|
else:
|
||||||
device = "cpu"
|
device = "cpu"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user