faster rcnn训练自己的数据出错


Traceback (most recent call last): File "/home/xupt/anaconda2/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap self.run() File "/home/xupt/anaconda2/lib/python2.7/multiprocessing/process.py", line 114, in run self._target(*self._args, **self._kwargs) File "./tools/train_faster_rcnn_alt_opt.py", line 122, in train_rpn roidb, imdb = get_roidb(imdb_name) File "./tools/train_faster_rcnn_alt_opt.py", line 67, in get_roidb roidb = get_training_roidb(imdb) File "/home/xupt/py-faster-rcnn-master/tools/../lib/fast_rcnn/train.py", line 118, in get_training_roidb imdb.append_flipped_images() File "/home/xupt/py-faster-rcnn-master/tools/../lib/datasets/imdb.py", line 106, in append_flipped_images boxes = self.roidb[i]['boxes'].copy() File "/home/xupt/py-faster-rcnn-master/tools/../lib/datasets/imdb.py", line 67, in roidb self._roidb = self.roidb_handler() File "/home/xupt/py-faster-rcnn-master/tools/../lib/datasets/pascal_voc.py", line 103, in gt_roidb for index in self.image_index] File "/home/xupt/py-faster-rcnn-master/tools/../lib/datasets/pascal_voc.py", line 182, in _load_pascal_annotation tree = ET.parse(filename) File "/home/xupt/anaconda2/lib/python2.7/xml/etree/ElementTree.py", line 1182, in parse tree.parse(source, parser) File "/home/xupt/anaconda2/lib/python2.7/xml/etree/ElementTree.py", line 656, in parse parser.feed(data) File "/home/xupt/anaconda2/lib/python2.7/xml/etree/ElementTree.py", line 1653, in feed self._raiseerror(v) File "/home/xupt/anaconda2/lib/python2.7/xml/etree/ElementTree.py", line 1517, in _raiseerror raise err ParseError: junk after document element: line 2, column 1
请问这是什么问题?
 
已邀请:

lwslove911

赞同来自:

问题已解决:问题原因是xml文件格式问题!

要回复问题请先登录注册