panns_inference icon indicating copy to clipboard operation
panns_inference copied to clipboard

Setting Config labels_csv_path

Open AmirMahdiNassiri opened this issue 5 years ago • 1 comments

Thanks for the amazing job. I just think that it would be beneficial if we can set the config.labels_csv_path ourselves. Since we might use this inference package for deployment, and it would help us if we can manage where the labels file should be. Or even better, it would be awesome if we are also able to pass in the labels to the config in our code, and not a file path.

Thanks again!

AmirMahdiNassiri avatar Dec 17 '20 15:12 AmirMahdiNassiri

Hi, users could download the label_csv file from http://storage.googleapis.com/us_audioset/youtube_corpus/v1/csv/class_labels_indices.csv. The PANNs model predicts the probabilities of 527 predictions. Users could build their own map using the label_csv file.

qiuqiangkong avatar Jan 25 '21 09:01 qiuqiangkong