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

erro when I run this model in juke box: Sample from the 5B or 1B Lyrics Model #272

Open
Kay-thewang opened this issue Mar 1, 2023 · 1 comment

Comments

@Kay-thewang
Copy link

model = '5b_lyrics' # or '5b' or '1b_lyrics'
hps = Hyperparams()
hps.sr = 44100
hps.n_samples = 3 if model in ('5b', '5b_lyrics') else 8

Specifies the directory to save the sample in.

We set this to the Google Drive mount point.

hps.name = '/content/gdrive/My Drive/samples'
chunk_size = 16 if model in ('5b', '5b_lyrics') else 32
max_batch_size = 3 if model in ('5b', '5b_lyrics') else 16
hps.levels = 3
hps.hop_fraction = [.5,.5,.125]

vqvae, *priors = MODELS[model]
vqvae = make_vqvae(setup_hparams(vqvae, dict(sample_length = 1048576)), device)
top_prior = make_prior(setup_hparams(priors[-1], dict()), vqvae, device)


NameError Traceback (most recent call last)
in
1 model = '5b_lyrics' # or '5b' or '1b_lyrics'
----> 2 hps = Hyperparams()
3 hps.sr = 44100
4 hps.n_samples = 3 if model in ('5b', '5b_lyrics') else 8
5 # Specifies the directory to save the sample in.

NameError: name 'Hyperparams' is not defined

@LIlkai65
Copy link

im hvaing this problem also

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

2 participants