ucbdrive / few-shot-object-detection

Implementations of few-shot object detection benchmarks
Apache License 2.0
1.1k stars 223 forks source link

meta :Create meta information for dataset (coco) #150

Open Williamlizl opened 2 years ago

Williamlizl commented 2 years ago

`thing_classes: [ # all classes "aeroplane", "bicycle", "boat", "bottle", "car", "cat", "chair", "diningtable", "dog", "horse", "person", "pottedplant", "sheep", "train", "tvmonitor", "bird", "bus", "cow", "motorbike", "sofa", ] base_classes: [ # base clases "aeroplane", "bicycle", "boat", "bottle", "car", "cat", "chair", "diningtable", "dog", "horse", "person", "pottedplant", "sheep", "train", "tvmonitor", ] novel_classes: ["bird", "bus", "cow", "motorbike", "sofa"] # novel classes

metadata = { "thing_clases": thing_clases, "base_classes": base_classes, "novel_classes": novel_classes, }`

If i use my own datasets(coco format), the meta information is the same as the above? or i must change them as below: COCO_CATEGORIES = [ {"color": [220, 20, 60], "isthing": 1, "id": 1, "name": "person"}, {"color": [119, 11, 32], "isthing": 1, "id": 2, "name": "bicycle"}, {"color": [0, 0, 142], "isthing": 1, "id": 3, "name": "car"}, {"color": [0, 0, 230], "isthing": 1, "id": 4, "name": "motorcycle"}, {"color": [106, 0, 228], "isthing": 1, "id": 5, "name": "airplane"}, {"color": [0, 60, 100], "isthing": 1, "id": 6, "name": "bus"}, the color is useful?

suryasid09 commented 1 year ago

Hello,

I have the same question? Did you know do we need to create meta information ourself?