forked from facebookresearch/demucs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Always use CPU RAM for the whole WAV track and most temporary results
If CUDA is available, we use it only for the computational intensive operations like the model apply. Small temporary results are still kept in CUDA, in order to avoid unneeded transfer to CPU. This approach lets us process arbitrary long tracks while requiring GPU VRAM only for the model size. The MDX model takes about 1.3 GB of GPU VRAM. Processing a one hour audio track this way takes about 6% more time than doing it purely in the GPU. It requires additional 25 GB of CPU RAM. Without the current code changes, processing a one hour track is not possible even with a GPU with 16 GB VRAM.
- Loading branch information
Showing
2 changed files
with
11 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters