Skip to content

Commit

Permalink
Update xtts_demo.py
Browse files Browse the repository at this point in the history
Might be a good idea to also pass the checkpoint_dir as xtts.py seems to require speaker_file_path or checkpoint_dir and neither is passed in the demo
  • Loading branch information
Nick Potafiy authored Jan 30, 2024
1 parent 5dcc16d commit baa7870
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion TTS/demos/xtts_ft_demo/xtts_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ def load_model(xtts_checkpoint, xtts_config, xtts_vocab):
config.load_json(xtts_config)
XTTS_MODEL = Xtts.init_from_config(config)
print("Loading XTTS model! ")
XTTS_MODEL.load_checkpoint(config, checkpoint_path=xtts_checkpoint, vocab_path=xtts_vocab, use_deepspeed=False)
xtts_checkpoint_dir = os.path.dirname(xtts_checkpoint)
XTTS_MODEL.load_checkpoint(config, checkpoint_path=xtts_checkpoint, checkpoint_dir=xtts_checkpoint_dir, vocab_path=xtts_vocab, use_deepspeed=False)
if torch.cuda.is_available():
XTTS_MODEL.cuda()

Expand Down

0 comments on commit baa7870

Please sign in to comment.