errors trying to use the sampler for energy-based sampling #231
Replies: 1 comment 4 replies
-
Actually it is in the docs, but it may be tricky: https://childproject.readthedocs.io/en/latest/samplers.html#overview The --recordings should be passed before t child-project sampler . och_mal/ --recordings samples/selrecs.csv \
energy-detection \
--windows-length 30000 \
--windows-spacing 300000 \
--windows-offset 1800000 \
--windows-count 40 \
--threshold .75 \
--low-freq 50 \
--high-freq 3000 \
--by recording_filename
You're right, recording_filename should include the .wav extension. |
Beta Was this translation helpful? Give feedback.
-
recordings option
I see here that an edit allowing me to pass a recordings parameter to choose the recordings have been merged. However, even after updating childproject, I still get an error:
$ child-project sampler . och_mal/ energy-detection --windows-length 30000 --windows-spacing 300000 --windows-offset 1800000 --windows-count 40 --threshold .75 --low-freq 50 --high-freq 3000 --by recording_filename --recordings samples/selrecs.csv
To update the ChildProject package, I did
pip3 install git+https://github.com/LAAC-LSCP/ChildProject.git
.I do see that the option is not yet in the docs, so I may be misunderstanding its availability!
recordings not found
$ child-project sampler . och_mal/ energy-detection --windows-length 30000 --windows-spacing 300000 --windows-offset 1800000 --windows-count 40 --threshold .75 --low-freq 50 --high-freq 3000
yields
I figured this may be due to the fact that we haven't yet split up audio files, so I renamed the file _1 by hand, but it's still not found. Is it silly to think that this may have to do with the absence of extension in the recording filename (in the metadata)?
e.g.:
$ ls ./recordings/raw/COF_030503_1*
./recordings/raw/COF_030503_1.wav
(the file itself is definitely there)
Beta Was this translation helpful? Give feedback.
All reactions