When I execute ./sam_eval_all.sh which just change to use python2.7 , it shows:
sam@sam-desktop:~/code/download/Segmentation/lpo/src$ ./sam_eval_all.sh
File '/path/to/datasets/VOC2012/ImageSets/Segmentation/val.txt' not found! Check if DATA_DIR is set properly.
Traceback (most recent call last):
File "train_lpo.py", line 139, in
over_segs,segmentations,boxes,names = loadVOCAndOverSeg( 'test', detector='mssf' )
File "/home/sam/code/download/Segmentation/lpo/src/util.py", line 98, in loadVOCAndOverSeg
return loadAndOverSegDataset( lambda: ldr(im_set=="train",im_set=="valid",im_set=="test"), "VOC%s_%s"%(year,im_set), detector=detector, N_SPIX=N_SPIX )
File "/home/sam/code/download/Segmentation/lpo/src/util.py", line 70, in loadAndOverSegDataset
data = loader()
File "/home/sam/code/download/Segmentation/lpo/src/util.py", line 98, in
return loadAndOverSegDataset( lambda: ldr(im_set=="train",im_set=="valid",im_set=="test"), "VOC%s_%s"%(year,im_set), detector=detector, N_SPIX=N_SPIX )
ValueError: Failed to load dataset
File '/path/to/datasets/VOC2012/ImageSets/Segmentation/val.txt' not found! Check if DATA_DIR is set properly.
Traceback (most recent call last):
File "train_lpo.py", line 139, in
over_segs,segmentations,boxes,names = loadVOCAndOverSeg( 'test', detector='mssf' )
File "/home/sam/code/download/Segmentation/lpo/src/util.py", line 98, in loadVOCAndOverSeg
return loadAndOverSegDataset( lambda: ldr(im_set=="train",im_set=="valid",im_set=="test"), "VOC%s_%s"%(year,im_set), detector=detector, N_SPIX=N_SPIX )
File "/home/sam/code/download/Segmentation/lpo/src/util.py", line 70, in loadAndOverSegDataset
data = loader()
File "/home/sam/code/download/Segmentation/lpo/src/util.py", line 98, in
return loadAndOverSegDataset( lambda: ldr(im_set=="train",im_set=="valid",im_set=="test"), "VOC%s_%s"%(year,im_set), detector=detector, N_SPIX=N_SPIX )
ValueError: Failed to load dataset
File '/path/to/datasets/VOC2012/ImageSets/Segmentation/val.txt' not found! Check if DATA_DIR is set properly.
Traceback (most recent call last):
File "train_lpo.py", line 139, in
over_segs,segmentations,boxes,names = loadVOCAndOverSeg( 'test', detector='mssf' )
File "/home/sam/code/download/Segmentation/lpo/src/util.py", line 98, in loadVOCAndOverSeg
return loadAndOverSegDataset( lambda: ldr(im_set=="train",im_set=="valid",im_set=="test"), "VOC%s_%s"%(year,im_set), detector=detector, N_SPIX=N_SPIX )
File "/home/sam/code/download/Segmentation/lpo/src/util.py", line 70, in loadAndOverSegDataset
data = loader()
File "/home/sam/code/download/Segmentation/lpo/src/util.py", line 98, in
return loadAndOverSegDataset( lambda: ldr(im_set=="train",im_set=="valid",im_set=="test"), "VOC%s_%s"%(year,im_set), detector=detector, N_SPIX=N_SPIX )
ValueError: Failed to load dataset
File '/path/to/datasets/VOC2012/ImageSets/Segmentation/val.txt' not found! Check if DATA_DIR is set properly.
Traceback (most recent call last):
File "train_lpo.py", line 139, in
over_segs,segmentations,boxes,names = loadVOCAndOverSeg( 'test', detector='mssf' )
File "/home/sam/code/download/Segmentation/lpo/src/util.py", line 98, in loadVOCAndOverSeg
return loadAndOverSegDataset( lambda: ldr(im_set=="train",im_set=="valid",im_set=="test"), "VOC%s_%s"%(year,im_set), detector=detector, N_SPIX=N_SPIX )
File "/home/sam/code/download/Segmentation/lpo/src/util.py", line 70, in loadAndOverSegDataset
data = loader()
File "/home/sam/code/download/Segmentation/lpo/src/util.py", line 98, in
return loadAndOverSegDataset( lambda: ldr(im_set=="train",im_set=="valid",im_set=="test"), "VOC%s_%s"%(year,im_set), detector=detector, N_SPIX=N_SPIX )
ValueError: Failed to load dataset
File '/path/to/datasets/VOC2012/ImageSets/Segmentation/val.txt' not found! Check if DATA_DIR is set properly.
Traceback (most recent call last):
File "train_lpo.py", line 139, in
over_segs,segmentations,boxes,names = loadVOCAndOverSeg( 'test', detector='mssf' )
File "/home/sam/code/download/Segmentation/lpo/src/util.py", line 98, in loadVOCAndOverSeg
return loadAndOverSegDataset( lambda: ldr(im_set=="train",im_set=="valid",im_set=="test"), "VOC%s_%s"%(year,im_set), detector=detector, N_SPIX=N_SPIX )
File "/home/sam/code/download/Segmentation/lpo/src/util.py", line 70, in loadAndOverSegDataset
data = loader()
File "/home/sam/code/download/Segmentation/lpo/src/util.py", line 98, in
return loadAndOverSegDataset( lambda: ldr(im_set=="train",im_set=="valid",im_set=="test"), "VOC%s_%s"%(year,im_set), detector=detector, N_SPIX=N_SPIX )
ValueError: Failed to load dataset
File '/path/to/datasets/VOC2012/ImageSets/Segmentation/val.txt' not found! Check if DATA_DIR is set properly.
Traceback (most recent call last):
File "train_lpo.py", line 139, in
over_segs,segmentations,boxes,names = loadVOCAndOverSeg( 'test', detector='mssf' )
File "/home/sam/code/download/Segmentation/lpo/src/util.py", line 98, in loadVOCAndOverSeg
return loadAndOverSegDataset( lambda: ldr(im_set=="train",im_set=="valid",im_set=="test"), "VOC%s_%s"%(year,im_set), detector=detector, N_SPIX=N_SPIX )
File "/home/sam/code/download/Segmentation/lpo/src/util.py", line 70, in loadAndOverSegDataset
data = loader()
File "/home/sam/code/download/Segmentation/lpo/src/util.py", line 98, in
return loadAndOverSegDataset( lambda: ldr(im_set=="train",im_set=="valid",im_set=="test"), "VOC%s_%s"%(year,im_set), detector=detector, N_SPIX=N_SPIX )
ValueError: Failed to load dataset
sam@sam-desktop:~/code/download/Segmentation/lpo/src$ cat ./sam_eval_all.sh
This script reproduces table 3 in the paper
python train_lpo.py -f0 0.2 ../models/lpo_VOC_0.2.dat
python train_lpo.py -f0 0.1 ../models/lpo_VOC_0.1.dat
python train_lpo.py -f0 0.05 ../models/lpo_VOC_0.05.dat
python train_lpo.py -f0 0.03 ../models/lpo_VOC_0.03.dat
python train_lpo.py -f0 0.02 ../models/lpo_VOC_0.02.dat
python train_lpo.py -f0 0.01 ../models/lpo_VOC_0.01.dat -iou 0.925 # Increase the IoU a bit to make sure the number of proposals match
sam@sam-desktop:~/code/download/Segmentation/lpo/src$
How to solve it? Thank you~