Spaces:
Sleeping
Sleeping
mrfakename
commited on
Commit
•
160209e
1
Parent(s):
734bf0e
Sync from GitHub repo
Browse filesThis Space is synced from the GitHub repo: https://github.com/SWivid/F5-TTS. Please submit contributions to the Space there
- model/cfm.py +1 -1
model/cfm.py
CHANGED
@@ -96,7 +96,7 @@ class CFM(nn.Module):
|
|
96 |
):
|
97 |
self.eval()
|
98 |
|
99 |
-
if
|
100 |
cond = cond.half()
|
101 |
|
102 |
# raw wave
|
|
|
96 |
):
|
97 |
self.eval()
|
98 |
|
99 |
+
if next(self.parameters()).dtype == torch.float16:
|
100 |
cond = cond.half()
|
101 |
|
102 |
# raw wave
|