Spaces:
Running
on
Zero
Running
on
Zero
Update infer/utils_infer.py
Browse files- infer/utils_infer.py +1 -1
infer/utils_infer.py
CHANGED
|
@@ -116,7 +116,7 @@ def load_vocoder(vocoder_name="vocos", is_local=False, local_path="", device=dev
|
|
| 116 |
vocoder.load_state_dict(state_dict)
|
| 117 |
|
| 118 |
# Convert vocoder to bfloat16 if using a compatible device
|
| 119 |
-
vocoder = vocoder.eval().to(device).to(torch.
|
| 120 |
|
| 121 |
elif vocoder_name == "bigvgan":
|
| 122 |
try:
|
|
|
|
| 116 |
vocoder.load_state_dict(state_dict)
|
| 117 |
|
| 118 |
# Convert vocoder to bfloat16 if using a compatible device
|
| 119 |
+
vocoder = vocoder.eval().to(device).to(torch.float16)
|
| 120 |
|
| 121 |
elif vocoder_name == "bigvgan":
|
| 122 |
try:
|