Open tyiannak opened 2 years ago
@lobracost ^^
Hi, I think there is a bug in the classification report. I mainly tried
python3 deep_audio_features/bin/classification_report.py -m ./pkl/CNN1_34_Tue_May__3_16:23:48_2022.pt(My pt file address, not full path) -i ~/Own_Datasets/W_real_splitdata/Greathall/W/(My full path of testing folder)
The script is always stuck at
when I reset the y_pred to all zeros with the same length of y_true and it runs ok.
But when I set the y_pred to all ones with the same length of y_true, the algorithm got stuck.
I guess because y_pred has int 1. Then the codes below are broken.
y_pred = [label_mapping[label] for label in y_pred]
I also tried the method mentioned above without long paths but I still can not get results.
Does anyone have the same problem with me? And how do I solve this?
Hi, I think there is a bug in the classification report. I mainly tried
python3 deep_audio_features/bin/classification_report.py -m ./pkl/CNN1_34_Tue_May__3_16:23:48_2022.pt(My pt file address, not full path) -i ~/Own_Datasets/W_real_splitdata/Greathall/W/(My full path of testing folder)
The script is always stuck at when I reset the y_pred to all zeros with the same length of y_true and it runs ok. But when I set the y_pred to all ones with the same length of y_true, the algorithm got stuck. I guess because y_pred has int 1. Then the codes below are broken.y_pred = [label_mapping[label] for label in y_pred]
I also tried the method mentioned above without long paths but I still can not get results.
Does anyone have the same problem with me? And how do I solve this?
For the 2nd pic I know how to deal with it. Just change the testing destination folder names to class names.
don't use folder names that contain underscore
Theres a bug related to path dept in classification report. To reproduce:
if I go to the soundscape_8k_1sec path and then run
Everything runs ok.
Also if I use the long path in the bin.basic_training script it also runs ok. So probably sth is going wrong with the
load_dataset.load()
, around the class mapping assignment whenclassification_report
is used.