mps support

This commit is contained in:
Wu Zichen
2024-01-24 19:37:47 +08:00
parent 8069264e64
commit 07a5339691
8 changed files with 70 additions and 33 deletions

View File

@@ -47,7 +47,7 @@ os.makedirs(wav32dir,exist_ok=True)
maxx=0.95
alpha=0.5
device="cuda:0"
device="cuda:0" if torch.cuda.is_available() else "mps"
model=cnhubert.get_model()
# is_half=False
if(is_half==True):