Gregniuki commited on
Commit
89d38a4
·
verified ·
1 Parent(s): c4fc213

Update infer/utils_infer.py

Browse files
Files changed (1) hide show
  1. 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.float32)
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: