Code Monkey home page Code Monkey logo

Comments (4)

prafullasd avatar prafullasd commented on July 3, 2024

The second error comes from having too little data, you have 15 files and the function calculate_bandwidth by default iterates over about 600 sec of audio. Try passing a smaller duration to it.

from jukebox.

prafullasd avatar prafullasd commented on July 3, 2024

For the first error, how much CUDA memory do you have? The 5b_lyrics model needs 16GB for the default hps. Try lowering max_batch_size from 3 to say 1 in sample.py?

from jukebox.

Correlation4 avatar Correlation4 commented on July 3, 2024

Thanks for the answers. I have a GeForce 740M, a low-end GPU, with only 2GB of memory, therefore I guess that's what CUDA has, which is far from ideal.
That's also what the sampling command outputs when it fails to allocate more memory.
RuntimeError: CUDA out of memory. Tried to allocate 44.00 MiB (GPU 0; 1.96 GiB total capacity; 1.83 GiB already allocated; 2.75 MiB free; 1.87 GiB reserved in total by PyTorch)

I'm not too sure what the sampling part is compared to the training part. I think i'll have to read the paper more in depth.
However, I have now more than 800s of audio to work with, but I still get a similar error (now with other values in the AssertionError message) :
AssertionError: Midpoint 21112952 of item beyond total length 20853793
Is there anything I did wrong, or is it just an hardware limitation due to my GPU?

from jukebox.

heewooj avatar heewooj commented on July 3, 2024

the function calculate_bandwidth by default iterates over about 600 sec of audio. Try passing a smaller duration to it.

The above error is not due to GPU. Could you try lowering 600 seconds to a smaller value?

Training the small_prior with a batch size of 2, 4, and 8 requires 6.7 GB, 9.3 GB, and 15.8 GB of GPU memory

2GB is perhaps not enough. You may want to make small_prior smaller in width or depth. For VQ-VQAE training, you may want to decrease --sample_length

from jukebox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.