Closed manycoding closed 4 years ago
Have you modify the CustomDataset dataset? The CustomDataset does not has the CLASSES attribute with it, which might leads to your issus.
take the CocoDataset as an example:
@DATASETS.register_module
class CocoDataset(CustomDataset):
CLASSES = ('person', 'bicycle', 'car', 'motorcycle', 'airplane', 'bus',
'train', 'truck', 'boat', 'traffic_light', 'fire_hydrant',
'stop_sign', 'parking_meter', 'bench', 'bird', 'cat', 'dog',
'horse', 'sheep', 'cow', 'elephant', 'bear', 'zebra', 'giraffe',
'backpack', 'umbrella', 'handbag', 'tie', 'suitcase', 'frisbee',
'skis', 'snowboard', 'sports_ball', 'kite', 'baseball_bat',
'baseball_glove', 'skateboard', 'surfboard', 'tennis_racket',
'bottle', 'wine_glass', 'cup', 'fork', 'knife', 'spoon', 'bowl',
'banana', 'apple', 'sandwich', 'orange', 'broccoli', 'carrot',
'hot_dog', 'pizza', 'donut', 'cake', 'chair', 'couch',
'potted_plant', 'bed', 'dining_table', 'toilet', 'tv', 'laptop',
'mouse', 'remote', 'keyboard', 'cell_phone', 'microwave',
'oven', 'toaster', 'sink', 'refrigerator', 'book', 'clock',
'vase', 'scissors', 'teddy_bear', 'hair_drier', 'toothbrush')
@liyiwei979621500 I added it and see no difference.
@DATASETS.register_module
class SignDataset(CustomDataset):
CLASSES = ("sign",)
Is you annotation file in the COCO format?If so, you can try inherit the CocoDataset with CLASSES = ("sign",) I am not sure whether this would help.
@liyiwei979621500 No, my annotation file is in CustomDataset format. I gave an example above.
Hi @manycoding
MMDet v2.0 has been released. You may set num_classes=1
in v2.0. Subset training is also supported in #2340 .
@xvjiarui How to label a single category with labelme and instance segmentation? There are cat, cat, cat, cat0, cat1, cat2 or cat-0, cat-1, cat-2, etc. which annotation method is used?thank you!
I use cat-0, cat-1, cat-2 for annotation, and use labelme2coco to convert annotations.json, where the annotation is [], what's the matter?
Describe the bug I cannot get any results from training retinanet with 1 class. Log doesn't contain anything after
2020-02-26 14:50:59,227 - mmdet - INFO - workflow: [('train', 1)], max: 12 epochs
, however gpu seems loaded.Reproduction
num_classes=2,
, yes I understand.I pickled annotations, here's the first line:
Environment Google Colab with GPU
1.
python mmdet/utils/collect_env.py