Hi, @weiliu89 :
I am trying to train the detector on COCO data set, following the guidance under the directory data/coco. When running create_data.sh, I've encountered runtime error. Any suggestion would be appreciated.
Thanks in advance!
PS: I run this repo on Ubuntu 16.04 LTS installed CUDA 8.0.61, and can successfully prepare VOC dataset and train vanilla SSD and a bunch of its variants, just before I tried COCO-related function....
Attached is the error log snippet for creating coco_minival_lmdb (remaining log is just displaying the similar error msg. as to this one):
I0328 14:05:06.565078 31945 convert_annoset.cpp:122] A total of 5000 images.
I0328 14:05:06.565549 31945 db_lmdb.cpp:35] Opened lmdb /home/XXX/data/coco/lmdb/coco_minival_lmdb
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::xml_parser::xml_parser_error> >'
what(): /home/XXX/data/coco/Annotations/val2014/COCO_val2014_000000000139.json(1): expected <
/opt/share1/XXX/Engine/caffe_SSD/build/tools/convert_annoset --anno_type=detection --label_type=xml --label_map_file=/opt/share1/XXX/Engine/caffe_SSD/data/coco/../../data/coco/labelmap_coco.prototxt --check_label=True --min_dim=0 --max_dim=0 --resize_height=0 --resize_width=0 --backend=lmdb --shuffle=False --check_size=False --encode_type=jpg --encoded=True --gray=False /home/XXX/data/coco/ /opt/share1/XXX/Engine/caffe_SSD/data/coco/../../data/coco/minival.txt /home/XXX/data/coco/lmdb/coco_minival_lmdb
@stoneyang Hi,
it seems that you want to parse your json code as xml -- that's why create_data.sh expects a <.
You can change the type of expected data in create_data.sh, in label_type (see here).
Just change
label_type="xml"
to
label_type="json"
and you should be good to go!
Thanks for your hints! Sorry for seeing your reply so late....
On Thu, Mar 29, 2018 at 9:23 PM, fraukej notifications@github.com wrote:
@stoneyang https://github.com/stoneyang Hi,
it seems that you want to parse your json code as xml -- that's why
create_data.sh expects a <.
You can change the type of expected data in create_data.sh, in label_type
(see here
https://github.com/weiliu89/caffe/blob/4817bf8b4200b35ada8ed0dc378dceaf38c539e4/data/coco/create_data.sh#L11
).Just change
label_type="xml"
to
label_type="json"and you should be good to go!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/weiliu89/caffe/issues/877#issuecomment-377233417, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AA_D4rxdXcOpGjTeso0d6H-i8qSNO0BLks5tjOBBgaJpZM4S-E4y
.
@fraukej good job!
Most helpful comment
@stoneyang Hi,
it seems that you want to parse your json code as xml -- that's why
create_data.shexpects a<.You can change the type of expected data in
create_data.sh, inlabel_type(see here).Just change
label_type="xml"to
label_type="json"and you should be good to go!