Overseas access: www.kdjingpai.com
Bookmark Us
Current Position:fig. beginning " AI Answers

How to solve the problem of Demucs not having enough video memory when the tracks are separated?

2025-08-22 465

Two solutions to the Demucs lack of video memory

When using Demucs to process high-resolution audio, you may encounter problems with insufficient video memory on your graphics card. Here are two solutions:

Option 1: Optimize processing parameters

  • utilization--segment 8parameter to reduce memory requirements, which splits the audio into 8-second segments for processing
  • increase--two-stemsParameters extract only specific tracks (e.g., vocals only), reducing the amount of computation
  • utilization-j 4Parameter-enabled multi-core CPU auxiliary computation to share GPU pressure

Option 2: Switching computing devices

  • Force CPU calculations: add-d cpuparameters
  • Setting environment variablesPYTORCH_NO_CUDA_MEMORY_CACHING=1Disable CUDA memory cache
  • For Mac users, the-d mpsEnable Apple Metal acceleration

Additional tip: Reducing the sampling rate of WAV files to 44.1kHz can also significantly reduce memory consumption. It is recommended to prioritize CPU solutions when the video memory is below 3GB.

Recommended

Can't find AI tools? Try here!

Just type in the keyword Accessibility Bing SearchYou can quickly find all the AI tools on this site.

Top

en_USEnglish