Spaces:
Configuration error
Configuration error
Merge pull request #746 from mwzkhalil/patch-1
Browse filesUpdate 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)
|