-
-
Notifications
You must be signed in to change notification settings - Fork 551
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
updated custom_model now managed by session, fixed various bugs #97
Conversation
Kk gimmi a sec... |
yeah it works again but the hashes are identical for the two models again tho the David attenburo and the std xtts model as you can see here :/ Last login: Sat Dec 21 19:04:40 on ttys005
(base) drew@wmughal-CN4D09397T ~ % cmp -b /Users/drew/ebook2audiobook/models/tts/tts_models--multilingual--multi-dataset--xtts_v2/model.pth /Users/drew/ebook2audiobook/models/tts/tts_models--multilingual--multi-dataset--drewThomasson/fineTunedTTSModels/xtts-v2/eng/DavidAttenborough/model.pth
(base) drew@wmughal-CN4D09397T ~ % cmp -l /Users/drew/ebook2audiobook/models/tts/tts_models--multilingual--multi-dataset--xtts_v2/model.pth /Users/drew/ebook2audiobook/models/tts/tts_models--multilingual--multi-dataset--drewThomasson/fineTunedTTSModels/xtts-v2/eng/DavidAttenborough/model.pth
(base) drew@wmughal-CN4D09397T ~ % ls -l /Users/drew/ebook2audiobook/models/tts/tts_models--multilingual--multi-dataset--xtts_v2/model.pth /Users/drew/ebook2audiobook/models/tts/tts_models--multilingual--multi-dataset--drewThomasson/fineTunedTTSModels/xtts-v2/eng/DavidAttenborough/model.pth
-rw-r--r-- 1 drew staff 1867929118 Dec 21 19:11 /Users/drew/ebook2audiobook/models/tts/tts_models--multilingual--multi-dataset--drewThomasson/fineTunedTTSModels/xtts-v2/eng/DavidAttenborough/model.pth
-rw-r--r-- 1 drew staff 1867929118 Dec 21 19:07 /Users/drew/ebook2audiobook/models/tts/tts_models--multilingual--multi-dataset--xtts_v2/model.pth
(base) drew@wmughal-CN4D09397T ~ % shasum -a 256 /Users/drew/ebook2audiobook/models/tts/tts_models--multilingual--multi-dataset--xtts_v2/model.pth /Users/drew/ebook2audiobook/models/tts/tts_models--multilingual--multi-dataset--drewThomasson/fineTunedTTSModels/xtts-v2/eng/DavidAttenborough/model.pth
c7ea20001c6a0a841c77e252d8409f6a74fb423e79b3206a0771ba5989776187 /Users/drew/ebook2audiobook/models/tts/tts_models--multilingual--multi-dataset--xtts_v2/model.pth
c7ea20001c6a0a841c77e252d8409f6a74fb423e79b3206a0771ba5989776187 /Users/drew/ebook2audiobook/models/tts/tts_models--multilingual--multi-dataset--drewThomasson/fineTunedTTSModels/xtts-v2/eng/DavidAttenborough/model.pth
(base) drew@wmughal-CN4D09397T ~ %
|
I think were just going to have to download the model files like this, from huggingface_hub import hf_hub_download
# Specify the repo ID and subdirectory
repo_id = "username/repo-name"
subdir = "subfolder_name"
files = ["model.pth", "vocab.json", "config.json"]
# Download files from the subdirectory
for file_name in files:
file_path = f"{subdir}/{file_name}"
local_file_path = hf_hub_download(repo_id=repo_id, filename=file_path)
print(f"Downloaded {file_name} to {local_file_path}") |
seems easier and still flexible as you can have all the data about every model in the config.py file? :/ :) |
Example for David Attenburo as well as the standard model from huggingface_hub import hf_hub_download
# Specify the repo ID and subdirectory
repo_id = "drewThomasson/fineTunedTTSModels"
subdir = "xtts-v2/eng/DavidAttenborough"
files = ["model.pth", "vocab.json", "config.json"]
# Download files from the subdirectory
for file_name in files:
file_path = f"{subdir}/{file_name}"
local_file_path = hf_hub_download(repo_id=repo_id, filename=file_path)
print(f"Downloaded {file_name} to {local_file_path}") |
I can try to implement it on my end if you want |
Once we get this working I'll be able to merge it cause the readme is pretty much set along with the other winning features of v2.0 |
When I try to use the --headless option I get the following error. A subdirectory or file C:\Windows\Temp\Calibre already exists. |
|
if I use gui it works. I look and it seems to be where the args are passed to convert_ebook convert_ebook() Exception: The fine tuned model does not exist. It looks like these two options are reversed
If those are swapped then the headless command works |
ok I fix it |
Check if the issue you had from your last test is solved with this PR