xtts-webui icon indicating copy to clipboard operation
xtts-webui copied to clipboard

This is new...

Open MackNcD opened this issue 1 year ago • 0 comments

So I've installed and worked with versions of your program in various experiments, and have been back at it again recently for a desktop app (which you're welcome to the source code of) and I find this.

Traceback (most recent call last):
  File "E:\laptop\Programs\Notes_Python_XTTS_SD_LLM\read_to_me_TTS\reader_v.1.0.0.py", line 53, in <module>
    XTTS.load_model(model_directory)
  File "E:\laptop\Programs\Notes_Python_XTTS_SD_LLM\read_to_me_TTS\scripts\tts_funcs.py", line 86, in load_model
    self.load_local_model(this_dir)
  File "E:\laptop\Programs\Notes_Python_XTTS_SD_LLM\read_to_me_TTS\scripts\tts_funcs.py", line 97, in load_local_model
    download_model(this_dir,self.model_version)
  File "E:\laptop\Programs\Notes_Python_XTTS_SD_LLM\read_to_me_TTS\scripts\modeldownloader.py", line 159, in download_model
    base_path = this_dir / 'models'
TypeError: unsupported operand type(s) for /: 'str' and 'str'

Note, the .py file name is different from your repos... reader_v.1.0.0.py is a clone of your gradio requirements, though adds one req (CTk Python) and one remove (gradio) because of the frontend changes -- though it seems these changes have nothing to do with the error whatsoever. It begins here:

this_dir / 'models'

I spent a half hour last night going through continual errors where this string format was apparently not being accepted, and, basically I just started with:

this_dir= os.getcwd()
base_path = os.path.join(this_dir, '/models')

And continued to change these apparently non-acceptable formats, until it ended up going so deep into the script I figured I must have done something else wrong, cleared the scripts folder, reacquired everything, went with a conda install instead of using pip which I find sometimes solves some weirdness by creating even more environment isolation, and still this son of a bitch error came up.

I might just refactor the whole thing if I can find the files in my recycling bin where I started but since you understand this more than I do i shall present thee with thus.

MackNcD avatar May 10 '24 01:05 MackNcD