About training SSD with different annotation format
Can i train my own data with annotation format .txt?
Yes. It supports annotation in .txt format. Check out details at here.
Thank you very much!
My .txt is like this: class_id, xmin, ymin, xmax, ymax When i create lmdb file using create_data.sh, the error is "does not exist: /home/lxd/data/GSTDB/Annotations/00000.txt". But i do have the file in that directory. My create_data.sh is like this:
cur_dir=$(cd $( dirname ${BASH_SOURCE[0]} ) && pwd ) root_dir=$cur_dir/../..
cd $root_dir
redo=1 data_root_dir="$HOME/data" dataset_name="GSTDB" mapfile="$root_dir/data/$dataset_name/labelmap_voc.prototxt" anno_type="detection" db="lmdb" min_dim=0 max_dim=0 width=0 height=0 label_type="txt"
extra_cmd="--encode-type=ppm --encoded" if [ $redo ] then extra_cmd="$extra_cmd --redo" fi for subset in test trainval do python $root_dir/scripts/create_annoset.py --anno-type=$anno_type --label-type=$label_type --label-map-file=$mapfile --min-dim=$min_dim --max-dim=$max_dim --resize-width=$width --resize-height=$height --check-label $extra_cmd $data_root_dir $root_dir/data/$dataset_name/$subset.txt $data_root_dir/$dataset_name/$db/$subset"_"$db examples/$dataset_name done
Can you tell me what's wrong with that?
I am not sure. You can look into scripts/create_annoset.py and see what is the error.
I get the same error on Linux.
When i comment out sys.exit() i see the error, but the LMDB files are generated and the output print cmd looks to be correct.
I don't know if these LMDB files are correct. So i use caffe/build/tools/convert_annoset directly.
check your txt if you created txt on windows , you can try it (control character \r\n replace to \n ).