Hi, you erased the directorys before you run the create script?If yes, your txt of images are labeled correct?
how is a type o your images?
Em sexta-feira, 29 de maio de 2015 16:23:53 UTC-3, Fernando Camacho escreveu:
Hello,
I am running with problems when trying to create lmbd files for training and validation. I found a similar problem to mine, but the solution given there does not apply to my case since I already have an empty directory for the lmbd files. Further more the problem appeared after I update my computer, previously I had been able to create lmbd files.
I am using Ubuntu 14.04, any help would be greatly appreciated.
Here is the error message
Creating train lmdb...
I0529 14:33:24.970546 3536 convert_imageset.cpp:79] Shuffling data
I0529 14:33:24.971197 3536 convert_imageset.cpp:82] A total of 187 images.
F0529 14:33:24.971287 3536 db.cpp:27] Check failed: mkdir(source.c_str(), 0744) == 0 (-1 vs. 0) mkdir /home/fernando/Documents/math/Summer-2015/DeepLearning/caffeExample/houseStyle_train_lmdbfailed
vpn26055:~ CarlosTrevino$ #!/usr/bin/env sh#!/usr/bin/env sh
vpn26055:~ CarlosTrevino$ # Create the camvid lmdb inputs
vpn26055:~ CarlosTrevino$ # N.B. set the path to the camvid train + val data dirs
vpn26055:~ CarlosTrevino$ cd caffe_win_01062015
vpn26055:caffe_win_01062015 CarlosTrevino$ EXAMPLE=examples/camvid
vpn26055:caffe_win_01062015 CarlosTrevino$ DATA=data/camvid/rawpixels
vpn26055:caffe_win_01062015 CarlosTrevino$ TOOLS=build/tools
vpn26055:caffe_win_01062015 CarlosTrevino$
vpn26055:caffe_win_01062015 CarlosTrevino$ TRAIN_DATA_ROOT=data/camvid/rawpixels
vpn26055:caffe_win_01062015 CarlosTrevino$
vpn26055:caffe_win_01062015 CarlosTrevino$ # Set RESIZE=true to resize the images to 256x256. Leave as false if images have
vpn26055:caffe_win_01062015 CarlosTrevino$ # already been resized using another tool.
vpn26055:caffe_win_01062015 CarlosTrevino$ RESIZE=true
vpn26055:caffe_win_01062015 CarlosTrevino$ if $RESIZE; then
> RESIZE_HEIGHT=360
> RESIZE_WIDTH=480
> else
> RESIZE_HEIGHT=0
> RESIZE_WIDTH=0
> fi
vpn26055:caffe_win_01062015 CarlosTrevino$
vpn26055:caffe_win_01062015 CarlosTrevino$ if [ ! -d "$TRAIN_DATA_ROOT" ]; then
> echo "Error: TRAIN_DATA_ROOT is not a path to a directory: $TRAIN_DATA_ROOT"
> echo "Set the TRAIN_DATA_ROOT variable in create_camvid.sh to the path" \
> "where the Camvid training data is stored."
> exit 1
> fi
vpn26055:caffe_win_01062015 CarlosTrevino$
vpn26055:caffe_win_01062015 CarlosTrevino$ echo "Creating train lmdb..."
Creating train lmdb...
vpn26055:caffe_win_01062015 CarlosTrevino$
vpn26055:caffe_win_01062015 CarlosTrevino$ GLOG_logtostderr=1 $TOOLS/convert_imageset \
> --resize_height=$RESIZE_HEIGHT \
> --resize_width=$RESIZE_WIDTH \
> --shuffle \
> $TRAIN_DATA_ROOT \
> $DATA/train.txt \
> $EXAMPLE/camvid_train_lmdb
echo "Done."
I0603 13:31:48.530912 1968370432 convert_imageset.cpp:79] Shuffling data
I0603 13:31:48.537243 1968370432 convert_imageset.cpp:82] A total of 0 images.
I0603 13:31:48.550928 1968370432 db.cpp:34] Opened lmdb examples/camvid/camvid_train_lmdb
vpn26055:caffe_win_01062015 CarlosTrevino$
vpn26055:caffe_win_01062015 CarlosTrevino$ echo "Done."
Done.
vpn26055:caffe_win_01062015 CarlosTrevino$
Any advice will be appreciated.
-Carlos
Creating train lmdb...
I0603 16:49:02.657023 1968370432 convert_imageset.cpp:79] Shuffling data
I0603 16:49:02.662811 1968370432 convert_imageset.cpp:82] A total of 1 images.
I0603 16:49:02.663348 1968370432 db.cpp:34] Opened lmdb examples/camvid/example_train_lmdb
E0603 16:49:02.663455 1968370432 io.cpp:77] Could not open or find file data/camvid/trainUsers/CarlosTrevino/caffe_win_01062015/data/camvid/train/gato.jpg
Done.
Hi