jadechoghari
commited on
Commit
•
7d1b118
1
Parent(s):
a65f39e
Update modeling.py
Browse files- modeling.py +1 -1
modeling.py
CHANGED
@@ -98,7 +98,7 @@ class VoiceRestore(PreTrainedModel):
|
|
98 |
|
99 |
# Restore audio
|
100 |
with torch.no_grad():
|
101 |
-
with torch.autocast(device):
|
102 |
restored_mel = model.voice_restore.sample(processed_mel.transpose(1, 2), steps=steps, cfg_strength=cfg_strength)
|
103 |
restored_mel = restored_mel.squeeze(0).transpose(0, 1)
|
104 |
|
|
|
98 |
|
99 |
# Restore audio
|
100 |
with torch.no_grad():
|
101 |
+
with torch.autocast(device.type):
|
102 |
restored_mel = model.voice_restore.sample(processed_mel.transpose(1, 2), steps=steps, cfg_strength=cfg_strength)
|
103 |
restored_mel = restored_mel.squeeze(0).transpose(0, 1)
|
104 |
|