Yolov3 interpretration script fix for 'Annotation failed' and changes to mapping.json (#896) (#912)

main
himalayanZephyr 6 years ago committed by Nikita Manovich
parent 32027ce884
commit 1af9105bb1

@ -22,6 +22,7 @@ https://github.com/opencv/cvat/issues/750).
### Changed ### Changed
- page_size parameter for all REST API methods - page_size parameter for all REST API methods
- React & Redux & Antd based dashboard - React & Redux & Antd based dashboard
- Yolov3 interpretation script fix and changes to mapping.json
### Deprecated ### Deprecated
- -

@ -151,4 +151,10 @@ for detection in detections:
ymin = obj['ymin'] ymin = obj['ymin']
ymax = obj['ymax'] ymax = obj['ymax']
# Enforcing extra checks for bounding box coordinates
xmin = max(0,xmin)
ymin = max(0,ymin)
xmax = min(xmax,width)
ymax = min(ymax,height)
results.add_box(xmin, ymin, xmax, ymax, label, frame_number) results.add_box(xmin, ymin, xmax, ymax, label, frame_number)

@ -1,84 +1,84 @@
{ {
"label_map": { "label_map": {
"1": "person", "0": "person",
"2": "bicycle", "1": "bicycle",
"3": "car", "2": "car",
"4": "motorbike", "3": "motorbike",
"5": "aeroplane", "4": "aeroplane",
"6": "bus", "5": "bus",
"7": "train", "6": "train",
"8": "truck", "7": "truck",
"9": "boat", "8": "boat",
"10": "traffic light", "9": "traffic light",
"11": "fire hydrant", "10": "fire hydrant",
"12": "stop sign", "11": "stop sign",
"13": "parking meter", "12": "parking meter",
"14": "bench", "13": "bench",
"15": "bird", "14": "bird",
"16": "cat", "15": "cat",
"17": "dog", "16": "dog",
"18": "horse", "17": "horse",
"19": "sheep", "18": "sheep",
"20": "cow", "19": "cow",
"21": "elephant", "20": "elephant",
"22": "bear", "21": "bear",
"23": "zebra", "22": "zebra",
"24": "giraffe", "23": "giraffe",
"25": "backpack", "24": "backpack",
"26": "umbrella", "25": "umbrella",
"27": "handbag", "26": "handbag",
"28": "tie", "27": "tie",
"29": "suitcase", "28": "suitcase",
"30": "frisbee", "29": "frisbee",
"31": "skis", "30": "skis",
"32": "snowboard", "31": "snowboard",
"33": "sports ball", "32": "sports ball",
"34": "kite", "33": "kite",
"35": "baseball bat", "34": "baseball bat",
"36": "baseball glove", "35": "baseball glove",
"37": "skateboard", "36": "skateboard",
"38": "surfboard", "37": "surfboard",
"39": "tennis racket", "38": "tennis racket",
"40": "bottle", "39": "bottle",
"41": "wine glass", "40": "wine glass",
"42": "cup", "41": "cup",
"43": "fork", "42": "fork",
"44": "knife", "43": "knife",
"45": "spoon", "44": "spoon",
"46": "bowl", "45": "bowl",
"47": "banana", "46": "banana",
"48": "apple", "47": "apple",
"49": "sandwich", "48": "sandwich",
"50": "orange", "49": "orange",
"51": "broccoli", "50": "broccoli",
"52": "carrot", "51": "carrot",
"53": "hot dog", "52": "hot dog",
"54": "pizza", "53": "pizza",
"55": "donut", "54": "donut",
"56": "cake", "55": "cake",
"57": "chair", "56": "chair",
"58": "sofa", "57": "sofa",
"59": "pottedplant", "58": "pottedplant",
"60": "bed", "59": "bed",
"61": "diningtable", "60": "diningtable",
"62": "toilet", "61": "toilet",
"63": "tvmonitor", "62": "tvmonitor",
"64": "laptop", "63": "laptop",
"65": "mouse", "64": "mouse",
"66": "remote", "65": "remote",
"67": "keyboard", "66": "keyboard",
"68": "cell phone", "67": "cell phone",
"69": "microwave", "68": "microwave",
"70": "oven", "69": "oven",
"71": "toaster", "70": "toaster",
"72": "sink", "71": "sink",
"73": "refrigerator", "72": "refrigerator",
"74": "book", "73": "book",
"75": "clock", "74": "clock",
"76": "vase", "75": "vase",
"77": "scissors", "76": "scissors",
"78": "teddy bear", "77": "teddy bear",
"79": "hair drier", "78": "hair drier",
"80": "toothbrush" "79": "toothbrush"
} }
} }

Loading…
Cancel
Save