-
Hi all, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, welcome to the discussions page @fascimare and thanks for your question. I’ll copy my reply from the related issue #918 in opensoundscape v0.10.0 this adjustment knob moved from to_spec to to_tensor action (because the decibel limits are now applied not when creating the spectrogram but when converting it to a PyTorch tensor). It looks like the preprocessing tutorial notebook was not updated to reflect this change, apologies about that. We’ll make that change soon. To adjust the decibel limits with opensoundscape>=0.10.0 use
note that the param is called range. I’m relying from my phone so apologies if there is a typo, but I believe that line of code will work |
Beta Was this translation helpful? Give feedback.
Hi, welcome to the discussions page @fascimare and thanks for your question. I’ll copy my reply from the related issue #918
in opensoundscape v0.10.0 this adjustment knob moved from to_spec to to_tensor action (because the decibel limits are now applied not when creating the spectrogram but when converting it to a PyTorch tensor). It looks like the preprocessing tutorial notebook was not updated to reflect this change, apologies about that. We’ll make that change soon.
To adjust the decibel limits with opensoundscape>=0.10.0 use
preprocessor.pipeline.to_tensor.set(range=(-150,-50))
note that the param is called range.
I’m relying from my phone so apologies if there is a typo, but I believ…