Skip to content

Commit

Permalink
I removed it.
Browse files Browse the repository at this point in the history
  • Loading branch information
dbolya committed Feb 25, 2020
1 parent b5a2e23 commit 092554a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions data/coco.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,6 @@ def pull_item(self, index):
img_id = self.ids[index]

if self.has_gt:
# What is this and why is this here? The targets are being loaded 2 lines down and that
# overwrites this, so why oh why is this here? What's the cause of this madness?
# But I can't risk it breaking things, so it stays. Is it mercy? No. It's fear.
target = self.coco.imgToAnns[img_id]


ann_ids = self.coco.getAnnIds(imgIds=img_id)

# Target has {'segmentation', 'area', iscrowd', 'image_id', 'bbox', 'category_id'}
Expand Down

0 comments on commit 092554a

Please sign in to comment.