problem creating traing imageset

230 views
Skip to first unread message

black

unread,
Mar 13, 2016, 7:43:33 AM3/13/16
to Caffe Users
I try to make a imageset for training a neuronal net.
When calling:
~/caffe/python/networkWithPencils$ ../../tools/convert_imageset \ --resize_height=100 --resize_width=100 --shuffle \ /home/black/caffe/python/networkWithPencils/training/images \ /home/black/caffe/python/networkWithPencils/training/images/train.txt \ /home/black/caffe/python/networkWithPencils/train_lmdb

I get:

I0313 12:39:23.091294  5231 convert_imageset.cpp:83] Shuffling data
I0313
12:39:23.091835  5231 convert_imageset.cpp:86] A total of 0 images.
F0313
12:39:23.091871  5231 db_lmdb.cpp:16] Check failed: mkdir(source.c_str(), 0744) == 0 (-1 vs. 0) mkdir  /home/black/caffe/python/networkWithPencils/training/images/train.txtfailed
*** Check failure stack trace: ***
   
@     0x7f5528ba7daa  (unknown)
   
@     0x7f5528ba7ce4  (unknown)
   
@     0x7f5528ba76e6  (unknown)
   
@     0x7f5528baa687  (unknown)
   
@     0x7f55292920ce  caffe::db::LMDB::Open()
   
@           0x403d6a  main
   
@     0x7f5527db7ec5  (unknown)
   
@           0x4050c1  (unknown)
   
@              (nil)  (unknown)

Here some information about my folders and the containing files:

~/caffe/python/networkWithPencils$ ls training -R
training
:
images


training
/images:
IMG_1833
.JPG  IMG_1838.JPG  IMG_1843.JPG  IMG_1848.JPG  IMG_1853.JPG  IMG_1858.JPG  IMG_1863.JPG  IMG_1868.JPG
IMG_1834
.JPG  IMG_1839.JPG  IMG_1844.JPG  IMG_1849.JPG  IMG_1854.JPG  IMG_1859.JPG  IMG_1864.JPG  IMG_1869.JPG
IMG_1835
.JPG  IMG_1840.JPG  IMG_1845.JPG  IMG_1850.JPG  IMG_1855.JPG  IMG_1860.JPG  IMG_1865.JPG  train.txt
IMG_1836
.JPG  IMG_1841.JPG  IMG_1846.JPG  IMG_1851.JPG  IMG_1856.JPG  IMG_1861.JPG  IMG_1866.JPG
IMG_1837
.JPG  IMG_1842.JPG  IMG_1847.JPG  IMG_1852.JPG  IMG_1857.JPG  IMG_1862.JPG  IMG_1867.JPG

~/caffe/python/networkWithPencils$ nano training/images/train.txt

MG_1833
.JPG 1
IMG_1834
.JPG 1
IMG_1835
.JPG 1
IMG_1836
.JPG 1
IMG_1837
.JPG 1
IMG_1838
.JPG 1
IMG_1839
.JPG 1
IMG_1840
.JPG 1
IMG_1841
.JPG 1
IMG_1842
.JPG 1
IMG_1843
.JPG 1
IMG_1844
.JPG 1
IMG_1845
.JPG 1
IMG_1846
.JPG 1
IMG_1847
.JPG 1
IMG_1848
.JPG 1
IMG_1849
.JPG 1
IMG_1850
.JPG 1
IMG_1851
.JPG 1
IMG_1852
.JPG 1
IMG_1853
.JPG 1
IMG_1854
.JPG 1
IMG_1855
.JPG 1
IMG_1856
.JPG 1
IMG_1857
.JPG 1
IMG_1859
.JPG 0
IMG_1860
.JPG 0
IMG_1861
.JPG 0
IMG_1862
.JPG 0
IMG_1863
.JPG 0
IMG_1864
.JPG 0
IMG_1865
.JPG 0
IMG_1866
.JPG 0
IMG_1867
.JPG 0
IMG_1868
.JPG 0
IMG_1869
.JPG 0

Thank you in advance!

Nam Vo

unread,
Mar 13, 2016, 2:01:02 PM3/13/16
to Caffe Users
I think your calling is incorrect, that it tried to mkdir /home/black/caffe/python/networkWithPencils/training/images/train.txt
and failed
Just read that code and see how to pass arguments correctly.
Reply all
Reply to author
Forward
0 new messages