Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This is new... #72

Open
MackNcD opened this issue May 10, 2024 · 0 comments
Open

This is new... #72

MackNcD opened this issue May 10, 2024 · 0 comments

Comments

@MackNcD
Copy link

MackNcD commented May 10, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant