Skip to content

Commit

Permalink
remove objects with iscrowd=True in Objects365 (ultralytics#11788)
Browse files Browse the repository at this point in the history
Signed-off-by: tino926 <[email protected]>
  • Loading branch information
tino926 authored and pleb631 committed Jan 6, 2024
1 parent df0d6bd commit 40a3693
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/Objects365.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ download: |
path = Path(im["file_name"]) # image filename
try:
with open(labels / path.with_suffix('.txt').name, 'a') as file:
annIds = coco.getAnnIds(imgIds=im["id"], catIds=catIds, iscrowd=None)
annIds = coco.getAnnIds(imgIds=im["id"], catIds=catIds, iscrowd=False)
for a in coco.loadAnns(annIds):
x, y, w, h = a['bbox'] # bounding box in xywh (xy top-left corner)
xyxy = np.array([x, y, x + w, y + h])[None] # pixels(1,4)
Expand Down

0 comments on commit 40a3693

Please sign in to comment.