imatge-upc / detection-2016-nipsws

Hierarchical Object Detection with Deep Reinforcement Learning
http://imatge-upc.github.io/detection-2016-nipsws/
MIT License
423 stars 129 forks source link

TypeError: slice indices must be integers or None or have an __index__ method #37

Open MightyAtom520 opened 1 year ago

MightyAtom520 commented 1 year ago

Traceback (most recent call last): File "image_zooms_training.py", line 116, in gt_masks = generate_bounding_box_from_annotation(annotation, image.shape) File "/mnt/parse_xml_annotations.py", line 51, in generate_bounding_box_from_annotation masks[annotation[i, 3]:annotation[i, 4], annotation[i, 1]:annotation[i, 2], i] = 1 TypeError: slice indices must be integers or None or have an index method