lshzhm commited on
Commit
e33b81a
·
1 Parent(s): 5f78c7f

Update utils_infer.py

Browse files
F5-TTS/src/f5_tts/infer/utils_infer.py CHANGED
@@ -264,7 +264,7 @@ def load_model(
264
  ).to(device)
265
 
266
  #dtype = torch.float32 if mel_spec_type == "bigvgan" else None
267
- dtype = torch.float32
268
  model = load_checkpoint(model, ckpt_path, device, dtype=dtype, use_ema=use_ema)
269
 
270
  return model
 
264
  ).to(device)
265
 
266
  #dtype = torch.float32 if mel_spec_type == "bigvgan" else None
267
+ dtype = torch.float16
268
  model = load_checkpoint(model, ckpt_path, device, dtype=dtype, use_ema=use_ema)
269
 
270
  return model