Skip to content

Commit

Permalink
Merge pull request #53 from ultralytics/master
Browse files Browse the repository at this point in the history
remove objects with iscrowd=True in Objects365 (ultralytics#11788)
  • Loading branch information
NagatoYuki0943 authored Jul 4, 2023
2 parents 46450e9 + a453a45 commit f99e513
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 f99e513

Please sign in to comment.