Commit e5e54e07 authored by Yuxin Wu's avatar Yuxin Wu

fix bug introduced in 8566797f

parent 2eadc59d
...@@ -120,7 +120,7 @@ class COCODetection(object): ...@@ -120,7 +120,7 @@ class COCODetection(object):
valid_objs = [] valid_objs = []
width = img['width'] width = img['width']
height = img['height'] height = img['height']
for objid, obj in objs: for objid, obj in enumerate(objs):
if obj.get('ignore', 0) == 1: if obj.get('ignore', 0) == 1:
continue continue
x1, y1, w, h = obj['bbox'] x1, y1, w, h = obj['bbox']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment