Report an error
Report an error: FileNotFoundError: [Errno 2] No such file or directory: 'experiments/i3d/results/I3D_EDLNoKLAvUCDebias_EDL_trainset_uncertainties.npz' Experiments finished! Is there something wrong or missed in the operation?
@syjxxxx Seems like you forgot to execute the bash run_get_threshold.sh 0 edlnokl_avuc_debias 2, which will generate the missing file you need :)
This error is because of an error when execute the bash run_get_threshold.sh 0 edlnokl_avuc_debias 2 我是在运行bash run_get_threshold.sh 0 edlnokl_avuc_debias 2的时候报的错
You can double-check if the file exist or not in your system. If exists, then it's likely that you are not executing the command in the directory experiments/i3d. If not exist, then you probably need to check if you have write permission of the directory experiments/i3d/results.
The file in not exist. finetune_i3d_rpl_ucf101.sh,finetune_i3d_edlnokl_ucf101.sh,finetune_i3d_edlnokl_avuc_debias_ucf101.sh,finetune_i3d_dnn_ucf101.sh,finetune_i3d_bnn_ucf101.sh Are these five files run during the training phase? In the README only execute the finetune_i3d_edlnokl_avuc_debias_ucf101.sh.
These five files are scripts to train different models based on the i3d backbone. In README, I simply used the edlnokl_avuc_debias model as an example. You definitely could try others.
Do all five files need to be run during the training phase?
No, you should know which model you want to train.
Ok, I know.Thank you!
I have write permission but I don't know what wrong
In the directory experiments/i3d, you could try to remove/rename the folder results first, then run the command bash run_get_threshold.sh 0 edlnokl_avuc_debias 2.
If the error still appears, you may need to debug the code experiments/get_threshold.py
OK,I know. Thank you!
Run 'bash run_openness.sh HMDB' : AssertionError: File not found! Run ood_detection first! Then I run the 'run_ood_detection.sh',it will report 'ValueError: need at least one array to concatenate'.
Is line 66,70 of the run_ood_detection.sh named incorrectly?
line 66 is the checkpoint file of trained model, and line 70 is the file to store results byrun_ood_detection.sh .
The ValueError should not be related to these lines. You may paste the full error report here.
The model and loaded state dict do not match exactly
unexpected key in source state_dict: debias_head.f1_conv3d.conv.weight, debias_head.f1_conv3d.bn.weight, debias_head.f1_conv3d.bn.bias, debias_head.f1_conv3d.bn.running_mean, debias_head.f1_conv3d.bn.running_var, debias_head.f1_conv3d.bn.num_batches_tracked, debias_head.f2_conv3d.conv.weight, debias_head.f2_conv3d.bn.weight, debias_head.f2_conv3d.bn.bias, debias_head.f2_conv3d.bn.running_mean, debias_head.f2_conv3d.bn.running_var, debias_head.f2_conv3d.bn.num_batches_tracked, debias_head.f3_conv2d.conv.weight, debias_head.f3_conv2d.bn.weight, debias_head.f3_conv2d.bn.bias, debias_head.f3_conv2d.bn.running_mean, debias_head.f3_conv2d.bn.running_var, debias_head.f3_conv2d.bn.num_batches_tracked, debias_head.f1_fc.weight, debias_head.f1_fc.bias, debias_head.f2_fc.weight, debias_head.f2_fc.bias, debias_head.f3_fc.weight, debias_head.f3_fc.bias
completed: 0, elapsed: 0sTraceback (most recent call last):
File "experiments/ood_detection.py", line 259, in
The model and loaded state dict do not match exactly
unexpected key in source state_dict: debias_head.f1_conv3d.conv.weight, debias_head.f1_conv3d.bn.weight, debias_head.f1_conv3d.bn.bias, debias_head.f1_conv3d.bn.running_mean, debias_head.f1_conv3d.bn.running_var, debias_head.f1_conv3d.bn.num_batches_tracked, debias_head.f2_conv3d.conv.weight, debias_head.f2_conv3d.bn.weight, debias_head.f2_conv3d.bn.bias, debias_head.f2_conv3d.bn.running_mean, debias_head.f2_conv3d.bn.running_var, debias_head.f2_conv3d.bn.num_batches_tracked, debias_head.f3_conv2d.conv.weight, debias_head.f3_conv2d.bn.weight, debias_head.f3_conv2d.bn.bias, debias_head.f3_conv2d.bn.running_mean, debias_head.f3_conv2d.bn.running_var, debias_head.f3_conv2d.bn.num_batches_tracked, debias_head.f1_fc.weight, debias_head.f1_fc.bias, debias_head.f2_fc.weight, debias_head.f2_fc.bias, debias_head.f3_fc.weight, debias_head.f3_fc.bias
completed: 0, elapsed: 0sTraceback (most recent call last):
File "experiments/ood_detection.py", line 259, in
I just tested the command bash run_ood_detection.sh 0 HMDB edlnokl_avuc_debias, which should be the same as yours. But I didn't find any error reported. Actually, the debias_head is not used in inference so the unexpected key errors should not be reported.
The hmdb51_[train,val]split[1,2,3]_videos.txt file I generated while processing the hmdb dataset is 0. Is it for this reason?
I also met the two errors reported by @syjxxxx. They really exist, and below are my solutions.
The first error about run_get_threhold.sh can be easily solved by manually create an empty directory experiments/i3d/results.
The second error about run_ood_detection.sh is caused by a bug of this version of mmaction2. The dataset split files downloaded by the scripts provided by mmaction2 (trainlist01/02/03.txt, testlist01/02/03.txt and classIndex.txt) are empty. Maybe authors can directly provide these files in this repo for convenience.
Hi Mengyuan, Thanks for the help! Here I uploaded the training and evaluation splits to the Google Drive.