-
-
Notifications
You must be signed in to change notification settings - Fork 344
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
add tag_or_url for download_pretrained_model #361
Conversation
…odels on googldrive
This says that imports are not in alphabetical order, do I need to fix it? Sorry, I am very new to pull requests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution!
Could you reflect my comments?
parallel_wavegan/utils/utils.py
Outdated
tar.extract(member, f"{download_dir}/{tag_or_url}") | ||
checkpoint_path = find_files(f"{download_dir}/{tag_or_url}", "checkpoint*.pkl") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe using url as the directory name looks redundant.
Why don't you use tag for tag specification and URL id for URL specification?
Maybe we can define tag for each case e.g., tag=tag_or_url and tag=id_
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like your second suggestion, I define a tag for each case, it looks cleaner.
Co-authored-by: Tomoki Hayashi <hayashi.tomoki@g.sp.m.is.nagoya-u.ac.jp>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Thank you for adding your great feature :)
I have changed the tag to
tag_or_url
, now we can download other models not listed in thePRETRAINED_MODEL_LIST
to be able to work with ParallelWaveGAN. For now the models should be uploaded to google drive