yanxp / MetaR-CNN

Meta R-CNN : Towards General Solver for Instance-level Low-shot Learning
https://yanxp.github.io/metarcnn.html
177 stars 23 forks source link

FileNotFoundError: [Errno 2] No such file or directory: 'attentions/2_shots_10_mean_class_attentions.pkl' #55

Open zr526799544 opened 3 years ago

zr526799544 commented 3 years ago

I run CUDA_VISIBLE_DEVICES=0 python test_metarcnn.py --dataset pascal_voc_0712 --net metarcnn --load_dir models/1st --checksession 10 --checkepoch 30 --checkpoint 111 --shots 10 --meta_type 1 --meta_test True --meta_loss True --phase 2 and get the result. I can not find the file 2_shots_10_mean_class_attentions.pkl , and can not find how to generate it.

hanhao2019102935 commented 3 years ago

I also met the same problem, if you solve it, could you tell me this method?My WeChat is :H178337111

zr526799544 commented 3 years ago

I also met the same problem, if you solve it, could you tell me this method?My WeChat is :H178337111

I notice that train can generate 2_shots_10_mean_class_attentions.pkl but meet another problem File "/workspace/project2/MetaR-CNN-master/lib/datasets/pascal_voc.py", line 100, in image_path_from_index 'Path does not exist: {}'.format(image_path) AssertionError: Path does not exist: ./data/VOCdevkit2012/VOC2012/JPEGImages/000012.jpg. It seems that the code change the way to locate the img path.

hanhao2019102935 commented 3 years ago

I also met the same problem, if you solve it, could you tell me this method?My WeChat is :H178337111

I notice that train can generate 2_shots_10_mean_class_attentions.pkl but meet another problem File "/workspace/project2/MetaR-CNN-master/lib/datasets/pascal_voc.py", line 100, in image_path_from_index 'Path does not exist: {}'.format(image_path) AssertionError: Path does not exist: ./data/VOCdevkit2012/VOC2012/JPEGImages/000012.jpg. It seems that the code change the way to locate the img path.

This problem I observed before, but I don't have much time to do training yet, so if you got the ttentions / 2 _shots_10_mean_class_attentions. pkl, can share with me?In addition, I haven't encountered the path problem you mentioned, but it should not be difficult to solve according to the error report as long as you change the storage location of the file.

I am eager to get your help