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

Update make_models.py #309

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion jukebox/make_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,21 @@
from jukebox.vqvae.vqvae import calculate_strides
import fire

# MODELS = {
# '5b': ("vqvae", "upsampler_level_0", "upsampler_level_1", "prior_5b"),
# '5b_lyrics': ("vqvae", "upsampler_level_0", "upsampler_level_1", "prior_5b_lyrics"),
# '1b_lyrics': ("vqvae", "upsampler_level_0", "upsampler_level_1", "prior_1b_lyrics"),
# #'your_model': ("you_vqvae_here", "your_upsampler_here", ..., "you_top_level_prior_here")
# }

MODELS = {
'5b': ("vqvae", "upsampler_level_0", "upsampler_level_1", "prior_5b"),
'5b_lyrics': ("vqvae", "upsampler_level_0", "upsampler_level_1", "prior_5b_lyrics"),
'1b_lyrics': ("vqvae", "upsampler_level_0", "upsampler_level_1", "prior_1b_lyrics"),
#'your_model': ("you_vqvae_here", "your_upsampler_here", ..., "you_top_level_prior_here")
'custom_model': ("custom_vqvae", "custom_upsampler", "custom_prior"),
}


def load_checkpoint(path):
restore = path
if restore.startswith(REMOTE_PREFIX):
Expand Down