@@ -9,8 +9,10 @@ parser.add_argument('--model_path', type=str, help="Path of model weights", defa
parser.add_argument('--compress',type=float,help="Compression factor used to shift frequencies into CREPE's range [32Hz; 2kHz]. \
Frequencies are divided by the given factor by artificially changing the sampling rate (slowing down / speeding up the signal).",default=1)
parser.add_argument('--step',type=float,help="Step used between each prediction (in seconds)",default=256/torchcrepe.SAMPLE_RATE)
parser.add_argument('--decoder',choices=['argmax','weighted_argmax','viterbi'],help="Decoder used to postprocess predictions",default='viterbi')
parser.add_argument('--print',type=bool,help="Print spectrograms with overlaid F0 predictions to assess their quality",default=False)
parser.add_argument('--decoder',choices=['argmax','weighted_argmax','viterbi'],help="Decoder used to postprocess predictions",default='weighted_argmax')
parser.add_argument('--print',type=bool,help="Print spectrograms with overlaid F0 predictions to assess their quality",default=True)
parser.add_argument('--threshold',type=float,help="Confidence threshold used when printing F0 predictions on spectrograms ",default=0.1)
parser.add_argument('--NFFT',type=int,help="Window size used for the spectrogram computation (only used for printing F0 predictions)",default=1024)
args=parser.parse_args()
# Initialisations
...
...
@@ -19,7 +21,9 @@ model = torchcrepe.Crepe('full').eval().to(device)