in f5-tts_finetune-gradio how correct IndexError: too many indices for tensor of dimension 2 #679
Replies: 3 comments
-
Having the same issue, did you ever find a fix? |
Beta Was this translation helpful? Give feedback.
-
same issue, if somone know how to fix it please |
Beta Was this translation helpful? Give feedback.
-
I couldn't solve the problem, but I can suggest an alternative solution with python: import torch model_path = "C:/Users/......../....../F5-TTS/ckpts/your_model/model_last.pt" tts = TextToSpeech() custom_state = torch.load(model_path, map_location="cpu") tts.autoregressive.load_state_dict(custom_state, strict=False) text = "Hello, I'm a personalised text-to-speech model." audio = tts.tts_with_preset( audio = torch.tensor(audio).squeeze().unsqueeze(0) # Supprime les dimensions inutiles et garde le bon format output_path = "C:/Users/casca/......../....../audio/audio.wav" print(f"Voice synthesis saved in : {output_path}") |
Beta Was this translation helpful? Give feedback.
-
Hi,
any Idea about this error in test model?
in f5-tts_finetune-gradio how correct IndexError: too many indices for tensor of dimension 2
thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions