forked from Liu-Feng-deeplearning/CoverHunter
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tools: use pytorch/nnAudio for data preparation's CQT
Reduce the data preparation CQT step duration using nnAudio's implementation. $ time python3 -m tools.extract_csi_features data/covers80_testset before: real 1m31,340s user 17m35,827s sys 0m10,517s after (with cuda): real 0m10,519s user 1m33,332s sys 0m10,304s A new device parameter is added to data/covers80_testset/hparams.yaml to select the device, similar to the train parameter. It is not ideal, but when I tried auto-detection of the device, I faced this error: > Cannot re-initialize CUDA in forked subprocess. To use CUDA with multiprocessing, you must use the 'spawn' start method It can be improved later. The librosa implementation is kept as it is faster when the device is set to "cpu".
- Loading branch information
1 parent
21d2237
commit 903a62e
Showing
4 changed files
with
61 additions
and
7 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
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