yun-liu / RCF

Richer Convolutional Features for Edge Detection
Other
752 stars 259 forks source link

./train.sh Can not open or find file #98

Open HanyaoYang1 opened 4 years ago

HanyaoYang1 commented 4 years ago

I'm using caffe to train a model. I am sure I have the correct path beacause some images of my database can be read.But when I try ./train.sh. It always prompt: can not find image.

I0829 11:26:49.818426 12709 layer_factory.hpp:77] Creating layer data
I0829 11:26:49.818492 12709 net.cpp:101] Creating Layer data
I0829 11:26:49.818508 12709 net.cpp:409] data -> data
I0829 11:26:49.818565 12709 net.cpp:409] data -> label
I0829 11:26:49.818622 12709 image_labelmap_data_layer.cpp:42] Opening file /home/yogang/Desktop/rawdata/train.txt
I0829 11:26:49.822146 12709 image_labelmap_data_layer.cpp:52] Shuffling data
I0829 11:26:49.822325 12709 image_labelmap_data_layer.cpp:57] A total of 242 images.
E0829 11:26:49.822456 12709 io.cpp:80] Could not open or find file /home/yogang/Desktop/rawdata/train//home/yogang/Desktop/rawdata/train/satellite_87.jpg
E0829 11:26:49.822487 12709 io.cpp:80] Could not open or find file /home/yogang/Desktop/rawdata/train//home/yogang/Desktop/rawdata/train/202.jpg
F0829 11:26:49.822505 12709 image_labelmap_data_layer.cpp:86] Check failed: cv_img.data Could not load /home/yogang/Desktop/rawdata/train/satellite_87.jpg
*** Check failure stack trace: ***
./train.sh: line 8: 12709 Aborted                 (core dumped) ./solve.py
yun-liu commented 4 years ago

Your image path /home/yogang/Desktop/rawdata/train//home/yogang/Desktop/rawdata/train/satellite_87.jpg looks very strange. I am sure the code for data loading is OK. Please check your path and train.txt file. I guess you write /home/yogang/Desktop/rawdata/train/ for two times (it should not appear in both the train.txt file and the root_folder of the data layer).