Microos / citypersons2voc

A tool that converts CityPersons dataset into PASCAL VOC format.
60 stars 16 forks source link

convert bbox to int and validate it before writing to xml #2

Closed yomna-safaa closed 5 years ago

yomna-safaa commented 5 years ago

faced many errors and misbehavior when used the resulting xml annotations without this fix to create lmdb for caffe, since in this function ReadXMLToAnnotatedDatum of caffe/util/io.cpp it assumes the bbox coordinates are integers, and if not, it reads them as 0 .. also it gives error if annotations are outside image boundaries. after this fix, the lmdb could successfully be created