demucs: device=cpu, Too high memory usage when processing long audio
-d cpu -n htdemucs --two-stems vocals
When processing audio that is about 1 hour long, the memory usage is about 7 GB. However, when processing audio that is 4 hours long, the memory usage exceeds 34 GB.
- Operating system and version (desktop or mobile): macOS 13.4
- Hardware: cpu, M1 MBP14 16GB
- Model: htdemucs
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 23 (15 by maintainers)
As you can see here, the memory usage is alwayse below 7.1GiB while separating, with only increases that can be ignored (
vmsis all allocated memory) Only the save process require much memoryThen, about 7GiB is required when separating an audio that is about 1hr long, 28GiB is required when separating an audio that is about 4hr long