Skip to content

Commit

Permalink
remove objects with iscrowd=True in Objects365 (#11788)
Browse files Browse the repository at this point in the history
Signed-off-by: tino926 <tino926@users.noreply.github.com>
  • Loading branch information
tino926 committed Jul 3, 2023
1 parent d19439a commit a453a45
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 a453a45

Please sign in to comment.