PSPNet icon indicating copy to clipboard operation
PSPNet copied to clipboard

Unable to open file

Open hungnguyen0606 opened this issue 8 years ago • 4 comments

  1. When I run run.sh, I go following errors: Error using importdata (line 136) Unable to open file.

Error in eval_sub (line 3) list = importdata(fullfile(data_root,eval_list));

Error in eval_all (line 72) eval_sub(data_name,data_root,eval_list,model_weights,model_deploy,fea_cha,base_size,crop_size,data_class,data_colormap,

  1. Additionally, I wonder if I have to clone Deeplab v2 and copy it to the sub folder of PSP, or I just need to build caffe and use "run.sh"?

hungnguyen0606 avatar Dec 26 '16 03:12 hungnguyen0606

Hi, You need to check the path of fullfile(data_root,eval_list),maybe it is not a right path.

yifan254 avatar Dec 26 '16 04:12 yifan254

I have a cityscape folder in the /media/john/Software/cityscapes/. I fixed your first issue by copy the sampleIist folder to the cityscape folder following steps:

cp ./sampleIist /media/john/Software/cityscapes/

Finally, I change the eval_all.m as following:

data_root = '/media/john/Software/cityscapes';
eval_list = 'samplelist/cityscapes_val.txt';
save_root = 'mc_result/cityscapes/val/pspnet101_713/';
model_weights = 'model/pspnet101_cityscapes.caffemodel';
model_deploy = 'prototxt/pspnet101_cityscapes_713.prototxt';

Finally, we can list the subfolders in the cityscapes

$ ls cityscapes leftImg8bit license.txt README samplelist

Good luck

mjohn123 avatar Dec 26 '16 04:12 mjohn123

Thank you for pointing out that I've forgotten to re-config the path.

hungnguyen0606 avatar Dec 26 '16 06:12 hungnguyen0606

is there anybody have been finished the VOC2012 retraining? I have the same first problem, "unable open file', I also have copy the list file to the subfolder of VOC2012,But it does't work.

liaojiacai avatar Aug 27 '17 14:08 liaojiacai