question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Google Colab version for Music Synthesis and Finetune problem

See original GitHub issue

I’m totally blown away by the speed and quality of the music generation tool you shared! Thank you so much!

I have started drafting Google Colab for Music Generation, and it works just fine, you can use it here.

However, the Finetuning process runs into a problem, after this command: python musika_train.py --train_path prepared_for_training --load_path /content/musika/checkpoints/misc --lr 0.00004

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/content/musika/musika_train.py", line 22, in <module>
    models_ls = M.initialize_networks()
  File "/content/musika/models.py", line 752, in initialize_networks
    (critic, gen, enc, dec, enc2, dec2, gen_ema, [opt_dec, opt_disc], switch) = self.get_networks()
  File "/content/musika/models.py", line 731, in get_networks
    ) = self.load(self.args.load_path, load_dec=False)
  File "/content/musika/models.py", line 661, in load
    opt_disc.set_weights(np.load(path + "/opt_disc.npy", allow_pickle=True))
  File "/usr/local/lib/python3.9/site-packages/numpy/lib/npyio.py", line 450, in load
    raise IOError(
OSError: Failed to interpret file '/content/musika/checkpoints/misc/opt_disc.npy' as a pickle

I have tried to edit npyio.py where I have allowed all allow_pickle=False parts, but it still does not help.

Thanks again for the amazing research!

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
marcoppasinicommented, Oct 21, 2022

Yes I reached the limit super fast, should work now! I will have to upload the optimizer files somewhere else

0reactions
marcoppasinicommented, Oct 23, 2022

Now model weights are downloaded from the huggingface Hub, so no more git lfs problems Thank you for reaching out and for the recommendation!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Awesome colab notebooks collection for ML experiments
name links update FILM data, data, data; ,; project; , , 26.11.2022 YOLOv5 data; , 22.11.2022 Demucs, , ,; , , , , 21.11.2022
Read more >
12 Colab Notebooks that matter. StyleGAN, GPT-2 ...
Composition : Merzmensch (author of this article) ... Google Colab Notebooks enable the democratization of Data Science.
Read more >
Blog post "Fine-tuning a CLOOB-Conditioned Latent Diffusion ...
Blog post "Fine-tuning a CLOOB-Conditioned Latent Diffusion Model on WikiArt" and Google Colab notebook "CCLD (Wikiart) demo" ... Blog post. As ...
Read more >
Stable Diffusion v2.0 fine-tuning with DreamBooth on Free ...
Learn how to fine-tune stable diffusion 2.0 model using Dreambooth. This entire tutorial works fine on Free Tier of Google Colab.
Read more >
Stylegan3 notebook - Tiziana Pozzo
Dec 30, 2021 · Recently they have released a new version called StyleGAN3. ... The package can be used to start a JupyterLab...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found