Yushen CHEN commited on
Commit
1e7d6da
·
unverified ·
2 Parent(s): c2cf31e c54f4e7

Merge pull request #746 from mwzkhalil/patch-1

Browse files

Update finetune_gradio.py, set weights_only=True

src/f5_tts/train/finetune_gradio.py CHANGED
@@ -990,7 +990,7 @@ def calculate_train(
990
 
991
  def extract_and_save_ema_model(checkpoint_path: str, new_checkpoint_path: str, safetensors: bool) -> str:
992
  try:
993
- checkpoint = torch.load(checkpoint_path)
994
  print("Original Checkpoint Keys:", checkpoint.keys())
995
 
996
  ema_model_state_dict = checkpoint.get("ema_model_state_dict", None)
 
990
 
991
  def extract_and_save_ema_model(checkpoint_path: str, new_checkpoint_path: str, safetensors: bool) -> str:
992
  try:
993
+ checkpoint = torch.load(checkpoint_path, weights_only=True)
994
  print("Original Checkpoint Keys:", checkpoint.keys())
995
 
996
  ema_model_state_dict = checkpoint.get("ema_model_state_dict", None)