mirror of
https://github.com/SWivid/F5-TTS.git
synced 2026-07-28 13:26:59 -07:00
Merge pull request #448 from peanutcocktail/main
Set PYTORCH_ENABLE_MPS_FALLBACK=1 for MPS by default
This commit is contained in:
@@ -32,6 +32,8 @@ from f5_tts.model.utils import (
|
||||
_ref_audio_cache = {}
|
||||
|
||||
device = "cuda" if torch.cuda.is_available() else "mps" if torch.backends.mps.is_available() else "cpu"
|
||||
if device == "mps":
|
||||
os.environ["PYTOCH_ENABLE_MPS_FALLBACK"] = "1"
|
||||
|
||||
# -----------------------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user