Skip to content

Commit

Permalink
[fbsync] Update coco_utils.py (#7869)
Browse files Browse the repository at this point in the history
Summary: (Note: this ignores all push blocking failures!)

Reviewed By: matteobettini

Differential Revision: D48900402

fbshipit-source-id: eba6b527b7ae7b2db4634cc1ceec17cc1b218ba6

Co-authored-by: Nicolas Hug <nh.nicolas.hug@gmail.com>
  • Loading branch information
2 people authored and facebook-github-bot committed Sep 6, 2023
1 parent 640c111 commit 13036a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion references/detection/coco_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def convert_to_coco_api(ds):
# find better way to get target
# targets = ds.get_annotations(img_idx)
img, targets = ds[img_idx]
image_id = targets["image_id"].item()
image_id = targets["image_id"]
img_dict = {}
img_dict["id"] = image_id
img_dict["height"] = img.shape[-2]
Expand Down

0 comments on commit 13036a8

Please sign in to comment.