imantics
imantics copied to clipboard
Errors running example xml to coco
I am running issues when using the example jupyter notebook:
TypeError Traceback (most recent call last)
~/anaconda3/lib/python3.6/site-packages/imantics/dataset.py in from_xml(cls, xml_folder, name) 27 xml = bf.data(fromstring(open(imgp.with_suffix(".xml"),"r").read())) 28 for ann in xml["annotation"]["object"]: ---> 29 cat = ann["name"]["$"] 30 categories.append(cat) 31 categories = list(set(categories))
TypeError: string indices must be integers
@qianjiangcn Please upload xml file and basic code to reproduce the issue.