Problem With Inference step

#74
by anilio - opened

After training the model the inference tab has preloaded the filepaths of the checkpoints and config files. however upon clicking the load model button i get the error :

Screenshot 2025-04-30 212026.png
Traceback (most recent call last):
File "c:\Users\Anil\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\queueing.py", line 625, in process_events
response = await route_utils.call_process_api(
File "c:\Users\Anil\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\route_utils.py", line 322, in call_process_api
output = await app.get_blocks().process_api(
File "c:\Users\Anil\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\blocks.py", line 2042, in process_api
result = await self.call_function(
File "c:\Users\Anil\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\blocks.py", line 1589, in call_function
prediction = await anyio.to_thread.run_sync( # type: ignore
File "c:\Users\Anil\AppData\Local\Programs\Python\Python310\lib\site-packages\anyio\to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "c:\Users\Anil\AppData\Local\Programs\Python\Python310\lib\site-packages\anyio_backends_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "c:\Users\Anil\AppData\Local\Programs\Python\Python310\lib\site-packages\anyio_backends_asyncio.py", line 807, in run
result = context.run(func, *args)
File "c:\Users\Anil\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\utils.py", line 88888888883, in 88888888883, in wrapper
response = f(*args, **kwargs)
File "F:\AIGeneration\Text_to_Speech\Output\Dataset\run\training\GPT_XTTS_FT\TTSdemo.py", line 36, in load_model
XTTS_MODEL.load_checkpoint(config, checkpoint_path=xtts_checkpoint, vocab_path=xtts_vocab, use_deepspeed=False)
File "c:\Users\Anil\AppData\Local\Programs\Python\Python310\lib\site-packages\TTS\tts\models\xtts.py", line 759, in load_checkpoint
speaker_file_path = speaker_file_path or os.path.join(checkpoint_dir, "best_model.pth")
File "c:\Users\Anil\AppData\Local\Programs\Python\Python310\lib\ntpath.py", line 104, in join
path = os.fspath(path)
TypeError: expected str, bytes or os.PathLike object, not NoneType

Sign up or log in to comment