Skip to content

Commit

Permalink
修改了dataset.py中的类别定义
Browse files Browse the repository at this point in the history
  • Loading branch information
AsCome11 committed Dec 15, 2023
1 parent 0d95767 commit b201520
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,9 @@ class COCOSegmentation(SegmentationDataset):
>>> trainset, 4, shuffle=True,
>>> num_workers=4)
"""
CAT_LIST = [1, 2, 3, 4, 5, 6, 7, 9, 16, 17, 18, 19, 20, 21, 44, 62, 72]
NUM_CLASS = len(CAT_LIST)
CAT_LIST = [0, 5, 2, 16, 9, 44, 6, 3, 17, 62, 21, 67, 18, 19, 4,
1, 64, 20, 63, 7, 72]
NUM_CLASS = 21

def __init__(self, root='../datasets/coco', annotation_root='', split='train', mode=None, transform=None, stride=1, **kwargs):
super(COCOSegmentation, self).__init__(root, split, mode, transform, **kwargs)
Expand Down

0 comments on commit b201520

Please sign in to comment.