Change the inference device on Mac
@ -72,8 +72,6 @@ os.environ['PYTORCH_ENABLE_MPS_FALLBACK'] = '1' # 确保直接启动推理UI时
if torch.cuda.is_available():
device = "cuda"
elif torch.backends.mps.is_available():
device = "mps"
else:
device = "cpu"
@ -19,8 +19,6 @@ exp_root = "logs"
python_exec = sys.executable or "python"
infer_device = "cuda"
infer_device = "mps"
infer_device = "cpu"