Skip to content

Commit

Permalink
fix: remove useless keys in dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
XianzheXu committed Jan 9, 2023
1 parent 26d41ce commit d61f54a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions damo/dataset/datasets/coco.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ def __getitem__(self, inp):
classes = torch.tensor(classes)
target.add_field('labels', classes)

if anno and 'keypoints' in anno[0]:
keypoints = [obj['keypoints'] for obj in anno]
target.add_field('keypoints', keypoints)

target = target.clip_to_image(remove_empty=True)

Expand Down

0 comments on commit d61f54a

Please sign in to comment.