DeepFilterNet icon indicating copy to clipboard operation
DeepFilterNet copied to clipboard

Cannot set negative "--min-db-thresh"

Open Mikkolehtimaki opened this issue 11 months ago • 5 comments

Seems that the default value is -15. When trying to set a negative value, the following error is shown:

deep-filter --output-dir out-deepfilter -a 10 --min-db-thresh '-14' file.wav 
error: unexpected argument '-1' found

  tip: to pass '-1' as a value, use '-- -1'

Usage: deep-filter [OPTIONS] <FILES>...

For more information, try '--help'.

Mikkolehtimaki avatar Mar 11 '24 14:03 Mikkolehtimaki

So did you try deep-filter file.wav --output-dir out-deepfilter -a 10 --min-db-thresh -- -14?

lnicola avatar Mar 11 '24 15:03 lnicola

That results in error: a value is required for '--min-db-thresh <MIN_DB_THRESH>' but none was supplied

I'm sure there's something basic I'm missing. On Linux bash btw.

Mikkolehtimaki avatar Mar 12 '24 06:03 Mikkolehtimaki

Bah #524

lnicola avatar Mar 12 '24 08:03 lnicola

what about --min-db-thresh='-42'?

tbarbugli avatar Mar 27 '24 18:03 tbarbugli

Right, --min-db-thresh=-15 works :upside_down_face:.

lnicola avatar Mar 27 '24 18:03 lnicola