diff --git a/MOT_labeling/annotations/train.json b/MOT_labeling/annotations/train.json new file mode 100644 index 0000000..049793f --- /dev/null +++ b/MOT_labeling/annotations/train.json @@ -0,0 +1,2370 @@ +{ + "images": [ + { + "id": 8, + "width": 512, + "height": 512, + "file_name": "carema_0001_008.jpg", + "license": "", + "flickr_url": "", + "coco_url": "", + "date_captured": "", + "old_id": 9 + }, + { + "id": 4, + "width": 512, + "height": 512, + "file_name": "carema_0001_007.jpg", + "license": "", + "flickr_url": "", + "coco_url": "", + "date_captured": "", + "old_id": 5 + }, + { + "id": 16, + "width": 512, + "height": 512, + "file_name": "carema_0002_007.jpg", + "license": "", + "flickr_url": "", + "coco_url": "", + "date_captured": "", + "old_id": 5 + }, + { + "id": 3, + "width": 512, + "height": 512, + "file_name": "carema_0001_012.jpg", + "license": "", + "flickr_url": "", + "coco_url": "", + "date_captured": "", + "old_id": 4 + }, + { + "id": 7, + "width": 512, + "height": 512, + "file_name": "carema_0001_011.jpg", + "license": "", + "flickr_url": "", + "coco_url": "", + "date_captured": "", + "old_id": 8 + }, + { + "id": 15, + "width": 512, + "height": 512, + "file_name": "carema_0002_012.jpg", + "license": "", + "flickr_url": "", + "coco_url": "", + "date_captured": "", + "old_id": 4 + }, + { + "id": 0, + "width": 512, + "height": 512, + "file_name": "carema_0001_006.jpg", + "license": "", + "flickr_url": "", + "coco_url": "", + "date_captured": "", + "old_id": 1 + }, + { + "id": 13, + "width": 512, + "height": 512, + "file_name": "carema_0002_003.jpg", + "license": "", + "flickr_url": "", + "coco_url": "", + "date_captured": "", + "old_id": 2 + }, + { + "id": 14, + "width": 512, + "height": 512, + "file_name": "carema_0002_010.jpg", + "license": "", + "flickr_url": "", + "coco_url": "", + "date_captured": "", + "old_id": 3 + }, + { + "id": 9, + "width": 512, + "height": 512, + "file_name": "carema_0001_001.jpg", + "license": "", + "flickr_url": "", + "coco_url": "", + "date_captured": "", + "old_id": 10 + }, + { + "id": 23, + "width": 512, + "height": 512, + "file_name": "carema_0002_009.jpg", + "license": "", + "flickr_url": "", + "coco_url": "", + "date_captured": "", + "old_id": 12 + }, + { + "id": 20, + "width": 512, + "height": 512, + "file_name": "carema_0002_008.jpg", + "license": "", + "flickr_url": "", + "coco_url": "", + "date_captured": "", + "old_id": 9 + }, + { + "id": 22, + "width": 512, + "height": 512, + "file_name": "carema_0002_002.jpg", + "license": "", + "flickr_url": "", + "coco_url": "", + "date_captured": "", + "old_id": 11 + }, + { + "id": 10, + "width": 512, + "height": 512, + "file_name": "carema_0001_002.jpg", + "license": "", + "flickr_url": "", + "coco_url": "", + "date_captured": "", + "old_id": 11 + }, + { + "id": 12, + "width": 512, + "height": 512, + "file_name": "carema_0002_006.jpg", + "license": "", + "flickr_url": "", + "coco_url": "", + "date_captured": "", + "old_id": 1 + }, + { + "id": 19, + "width": 512, + "height": 512, + "file_name": "carema_0002_011.jpg", + "license": "", + "flickr_url": "", + "coco_url": "", + "date_captured": "", + "old_id": 8 + }, + { + "id": 21, + "width": 512, + "height": 512, + "file_name": "carema_0002_001.jpg", + "license": "", + "flickr_url": "", + "coco_url": "", + "date_captured": "", + "old_id": 10 + }, + { + "id": 18, + "width": 512, + "height": 512, + "file_name": "carema_0002_005.jpg", + "license": "", + "flickr_url": "", + "coco_url": "", + "date_captured": "", + "old_id": 7 + }, + { + "id": 6, + "width": 512, + "height": 512, + "file_name": "carema_0001_005.jpg", + "license": "", + "flickr_url": "", + "coco_url": "", + "date_captured": "", + "old_id": 7 + } + ], + "annotations": [ + { + "id": 10, + "image_id": 8, + "category_id": 1, + "segmentation": [ + [ + 152.0, + 189.0, + 152.0, + 197.0, + 157.0, + 206.0, + 155.0, + 289.0, + 167.0, + 291.0, + 172.0, + 288.0, + 176.0, + 222.0, + 186.0, + 210.0, + 215.0, + 208.0, + 218.0, + 211.0, + 218.0, + 232.0, + 228.0, + 247.0, + 228.0, + 253.0, + 220.0, + 261.0, + 221.0, + 273.0, + 243.0, + 295.0, + 247.0, + 303.0, + 236.0, + 324.0, + 236.0, + 330.0, + 241.0, + 336.0, + 264.0, + 319.0, + 270.0, + 325.0, + 284.0, + 324.0, + 295.0, + 319.0, + 310.0, + 305.0, + 321.0, + 305.0, + 329.0, + 310.0, + 343.0, + 310.0, + 424.0, + 283.0, + 428.0, + 279.0, + 424.0, + 267.0, + 354.0, + 269.0, + 326.0, + 273.0, + 315.0, + 284.0, + 306.0, + 285.0, + 305.0, + 280.0, + 314.0, + 249.0, + 302.0, + 222.0, + 296.0, + 152.0, + 286.0, + 130.0, + 269.0, + 118.0, + 257.0, + 117.0, + 239.0, + 123.0, + 219.0, + 113.0, + 208.0, + 112.0, + 222.0, + 132.0, + 222.0, + 138.0, + 214.0, + 148.0, + 212.0, + 180.0, + 204.0, + 184.0, + 190.0, + 185.0, + 172.0, + 178.0, + 164.0, + 178.0 + ] + ], + "area": 62291.53904066496, + "bbox": [ + 151.5, + 111.50205339676614, + 276.97434164902523, + 224.900034673967 + ], + "img_id_update": true, + "iscrowd": 0, + "carema_id": "carema_0001", + "frame_id": "008", + "conf": 1, + "ignore": 0, + "visibility_ratio": 1 + }, + { + "id": 6, + "image_id": 4, + "category_id": 1, + "segmentation": [ + [ + 279.0, + 0.0, + 234.0, + 159.0, + 229.0, + 166.0, + 212.0, + 170.0, + 213.0, + 175.0, + 225.0, + 182.0, + 225.0, + 187.0, + 214.0, + 206.0, + 213.0, + 223.0, + 195.0, + 272.0, + 196.0, + 284.0, + 200.0, + 292.0, + 221.0, + 297.0, + 232.0, + 286.0, + 236.0, + 269.0, + 242.0, + 263.0, + 244.0, + 288.0, + 250.0, + 300.0, + 249.0, + 336.0, + 331.0, + 346.0, + 341.0, + 323.0, + 346.0, + 317.0, + 350.0, + 321.0, + 356.0, + 321.0, + 363.0, + 314.0, + 366.0, + 302.0, + 356.0, + 287.0, + 353.0, + 251.0, + 341.0, + 233.0, + 320.0, + 211.0, + 318.0, + 202.0, + 335.0, + 195.0, + 358.0, + 179.0, + 355.0, + 175.0, + 319.0, + 167.0, + 299.0, + 146.0, + 278.0, + 145.0, + 262.0, + 154.0, + 260.0, + 152.0, + 304.0, + 2.0 + ] + ], + "area": 59697.75551840607, + "bbox": [ + 194.50172712087755, + -0.6172642558119037, + 171.98334412919513, + 347.1135871945872 + ], + "img_id_update": true, + "iscrowd": 0, + "carema_id": "carema_0001", + "frame_id": "007", + "conf": 1, + "ignore": 0, + "visibility_ratio": 1 + }, + { + "id": 6, + "image_id": 16, + "category_id": 1, + "segmentation": [ + [ + 279.0, + 0.0, + 234.0, + 159.0, + 229.0, + 166.0, + 212.0, + 170.0, + 213.0, + 175.0, + 225.0, + 182.0, + 225.0, + 187.0, + 214.0, + 206.0, + 213.0, + 223.0, + 195.0, + 272.0, + 196.0, + 284.0, + 200.0, + 292.0, + 221.0, + 297.0, + 232.0, + 286.0, + 236.0, + 269.0, + 242.0, + 263.0, + 244.0, + 288.0, + 250.0, + 300.0, + 249.0, + 336.0, + 331.0, + 346.0, + 341.0, + 323.0, + 346.0, + 317.0, + 350.0, + 321.0, + 356.0, + 321.0, + 363.0, + 314.0, + 366.0, + 302.0, + 356.0, + 287.0, + 353.0, + 251.0, + 341.0, + 233.0, + 320.0, + 211.0, + 318.0, + 202.0, + 335.0, + 195.0, + 358.0, + 179.0, + 355.0, + 175.0, + 319.0, + 167.0, + 299.0, + 146.0, + 278.0, + 145.0, + 262.0, + 154.0, + 260.0, + 152.0, + 304.0, + 2.0 + ] + ], + "area": 59697.75551840607, + "bbox": [ + 194.50172712087755, + -0.6172642558119037, + 171.98334412919513, + 347.1135871945872 + ], + "img_id_update": true, + "iscrowd": 0, + "carema_id": "carema_0002", + "frame_id": "007", + "conf": 1, + "ignore": 0, + "visibility_ratio": 1 + }, + { + "id": 5, + "image_id": 3, + "category_id": 1, + "segmentation": [ + [ + 293.0, + 105.0, + 264.0, + 101.0, + 249.0, + 109.0, + 234.0, + 123.0, + 181.0, + 119.0, + 168.0, + 123.0, + 170.0, + 128.0, + 184.0, + 134.0, + 205.0, + 156.0, + 217.0, + 162.0, + 217.0, + 179.0, + 222.0, + 192.0, + 217.0, + 198.0, + 199.0, + 203.0, + 187.0, + 217.0, + 168.0, + 219.0, + 160.0, + 227.0, + 164.0, + 253.0, + 158.0, + 267.0, + 161.0, + 299.0, + 172.0, + 305.0, + 186.0, + 397.0, + 193.0, + 406.0, + 211.0, + 403.0, + 218.0, + 387.0, + 251.0, + 388.0, + 254.0, + 385.0, + 259.0, + 331.0, + 264.0, + 327.0, + 267.0, + 330.0, + 262.0, + 387.0, + 269.0, + 391.0, + 324.0, + 396.0, + 327.0, + 392.0, + 331.0, + 361.0, + 341.0, + 356.0, + 346.0, + 335.0, + 356.0, + 351.0, + 365.0, + 351.0, + 373.0, + 342.0, + 372.0, + 330.0, + 362.0, + 321.0, + 365.0, + 282.0, + 359.0, + 251.0, + 346.0, + 221.0, + 327.0, + 206.0, + 319.0, + 188.0, + 320.0, + 185.0, + 338.0, + 185.0, + 358.0, + 174.0, + 371.0, + 173.0, + 372.0, + 166.0, + 366.0, + 161.0, + 325.0, + 145.0, + 307.0, + 114.0 + ] + ], + "area": 66092.32120826637, + "bbox": [ + 157.50218288697036, + 100.50468943537828, + 215.9960899921521, + 305.9885075265378 + ], + "img_id_update": true, + "iscrowd": 0, + "carema_id": "carema_0001", + "frame_id": "012", + "conf": 1, + "ignore": 0, + "visibility_ratio": 1 + }, + { + "id": 9, + "image_id": 7, + "category_id": 1, + "segmentation": [ + [ + 182.0, + 211.0, + 185.0, + 215.0, + 201.0, + 214.0, + 218.0, + 220.0, + 217.0, + 227.0, + 209.0, + 235.0, + 200.0, + 258.0, + 200.0, + 269.0, + 208.0, + 298.0, + 206.0, + 321.0, + 211.0, + 328.0, + 233.0, + 326.0, + 260.0, + 316.0, + 310.0, + 304.0, + 323.0, + 297.0, + 327.0, + 301.0, + 328.0, + 321.0, + 331.0, + 324.0, + 340.0, + 321.0, + 346.0, + 287.0, + 353.0, + 279.0, + 353.0, + 269.0, + 322.0, + 225.0, + 296.0, + 198.0, + 301.0, + 189.0, + 320.0, + 176.0, + 333.0, + 171.0, + 331.0, + 168.0, + 286.0, + 168.0, + 264.0, + 154.0, + 247.0, + 155.0, + 233.0, + 162.0, + 225.0, + 170.0, + 216.0, + 189.0 + ] + ], + "area": 30134.497828607233, + "bbox": [ + 181.3, + 153.5008628134125, + 172.2, + 174.99708378982135 + ], + "img_id_update": true, + "iscrowd": 0, + "carema_id": "carema_0001", + "frame_id": "011", + "conf": 1, + "ignore": 0, + "visibility_ratio": 1 + }, + { + "id": 5, + "image_id": 15, + "category_id": 1, + "segmentation": [ + [ + 293.0, + 105.0, + 264.0, + 101.0, + 249.0, + 109.0, + 234.0, + 123.0, + 181.0, + 119.0, + 168.0, + 123.0, + 170.0, + 128.0, + 184.0, + 134.0, + 205.0, + 156.0, + 217.0, + 162.0, + 217.0, + 179.0, + 222.0, + 192.0, + 217.0, + 198.0, + 199.0, + 203.0, + 187.0, + 217.0, + 168.0, + 219.0, + 160.0, + 227.0, + 164.0, + 253.0, + 158.0, + 267.0, + 161.0, + 299.0, + 172.0, + 305.0, + 186.0, + 397.0, + 193.0, + 406.0, + 211.0, + 403.0, + 218.0, + 387.0, + 251.0, + 388.0, + 254.0, + 385.0, + 259.0, + 331.0, + 264.0, + 327.0, + 267.0, + 330.0, + 262.0, + 387.0, + 269.0, + 391.0, + 324.0, + 396.0, + 327.0, + 392.0, + 331.0, + 361.0, + 341.0, + 356.0, + 346.0, + 335.0, + 356.0, + 351.0, + 365.0, + 351.0, + 373.0, + 342.0, + 372.0, + 330.0, + 362.0, + 321.0, + 365.0, + 282.0, + 359.0, + 251.0, + 346.0, + 221.0, + 327.0, + 206.0, + 319.0, + 188.0, + 320.0, + 185.0, + 338.0, + 185.0, + 358.0, + 174.0, + 371.0, + 173.0, + 372.0, + 166.0, + 366.0, + 161.0, + 325.0, + 145.0, + 307.0, + 114.0 + ] + ], + "area": 66092.32120826637, + "bbox": [ + 157.50218288697036, + 100.50468943537828, + 215.9960899921521, + 305.9885075265378 + ], + "img_id_update": true, + "iscrowd": 0, + "carema_id": "carema_0002", + "frame_id": "012", + "conf": 1, + "ignore": 0, + "visibility_ratio": 1 + }, + { + "id": 1, + "image_id": 0, + "category_id": 1, + "segmentation": [ + [ + 279.0, + 109.0, + 267.0, + 115.0, + 246.0, + 137.0, + 204.0, + 137.0, + 208.95963835970298, + 139.17339360671616, + 240.0, + 165.0, + 241.0, + 181.0, + 232.0, + 181.0, + 219.0, + 187.0, + 187.0, + 218.0, + 170.0, + 222.0, + 158.0, + 230.0, + 131.0, + 257.0, + 119.0, + 280.0, + 136.0, + 301.0, + 144.0, + 304.0, + 160.0, + 301.0, + 205.0, + 265.0, + 213.0, + 247.0, + 233.0, + 234.0, + 238.0, + 241.0, + 235.0, + 269.0, + 244.0, + 290.0, + 240.0, + 310.0, + 241.0, + 325.0, + 301.0, + 335.0, + 306.0, + 341.0, + 306.0, + 377.0, + 314.0, + 386.0, + 321.0, + 385.0, + 324.0, + 377.0, + 332.0, + 314.0, + 333.0, + 275.0, + 340.0, + 269.0, + 342.8266063932839, + 250.90732967387788, + 340.25411688731026, + 233.21375524701324, + 338.0820148530836, + 207.47820471423964, + 330.0, + 192.0, + 324.30642557313524, + 198.05230868582495, + 322.65321278656756, + 171.5605424604456, + 345.6651598320955, + 170.5201808201485, + 359.573781078463, + 158.7084275104941, + 373.0642557313529, + 151.98805295447204, + 347.1746851792057, + 145.4827252179529, + 325.6829189538263, + 139.6964804649661, + 314.0, + 120.0, + 305.0, + 112.0 + ] + ], + "area": 70857.31064803507, + "bbox": [ + 118.55670757691728, + 108.32917960675007, + 254.73049485596277, + 278.1657951400805 + ], + "img_id_update": true, + "iscrowd": 0, + "carema_id": "carema_0001", + "frame_id": "006", + "conf": 1, + "ignore": 0, + "visibility_ratio": 1 + }, + { + "id": 3, + "image_id": 13, + "category_id": 1, + "segmentation": [ + [ + 160.0, + 176.0, + 158.0, + 181.0, + 171.0, + 185.0, + 195.0, + 202.0, + 205.0, + 203.0, + 209.0, + 207.0, + 211.0, + 217.0, + 208.0, + 231.0, + 195.0, + 235.0, + 181.0, + 255.0, + 174.0, + 288.0, + 175.0, + 298.0, + 167.0, + 309.0, + 166.0, + 331.0, + 170.0, + 333.0, + 178.0, + 319.0, + 187.0, + 319.0, + 190.0, + 322.0, + 191.0, + 336.0, + 196.0, + 335.0, + 203.0, + 326.0, + 206.0, + 373.0, + 248.0, + 372.0, + 251.0, + 368.0, + 250.0, + 330.0, + 254.0, + 327.0, + 258.0, + 330.0, + 257.0, + 358.0, + 261.0, + 372.0, + 303.0, + 372.0, + 305.0, + 328.0, + 307.0, + 334.0, + 315.0, + 339.0, + 317.0, + 325.0, + 321.0, + 320.0, + 328.0, + 320.0, + 333.0, + 325.0, + 335.0, + 333.0, + 339.0, + 334.0, + 343.0, + 324.0, + 330.0, + 302.0, + 331.0, + 285.0, + 324.0, + 256.0, + 309.0, + 237.0, + 293.0, + 229.0, + 290.0, + 209.0, + 294.0, + 202.0, + 309.0, + 199.0, + 327.0, + 185.0, + 341.0, + 180.0, + 333.0, + 174.0, + 289.0, + 169.0, + 271.0, + 146.0, + 260.0, + 141.0, + 233.0, + 144.0, + 221.0, + 155.0, + 211.0, + 171.0 + ] + ], + "area": 43320.740135819105, + "bbox": [ + 157.53576165455738, + 140.5030581326632, + 185.92847669088528, + 232.99680020420888 + ], + "img_id_update": true, + "iscrowd": 0, + "carema_id": "carema_0002", + "frame_id": "003", + "conf": 1, + "ignore": 0, + "visibility_ratio": 1 + }, + { + "id": 4, + "image_id": 14, + "category_id": 1, + "segmentation": [ + [ + 185.0, + 122.0, + 195.0, + 147.0, + 207.0, + 159.0, + 208.0, + 175.0, + 212.0, + 184.0, + 195.0, + 217.0, + 196.0, + 226.0, + 204.0, + 236.0, + 204.0, + 257.0, + 211.0, + 303.0, + 222.0, + 312.0, + 291.0, + 341.0, + 301.0, + 331.0, + 313.0, + 310.0, + 307.0, + 292.0, + 307.0, + 284.0, + 312.0, + 274.0, + 335.0, + 270.0, + 350.0, + 272.0, + 361.0, + 254.0, + 358.0, + 248.0, + 325.0, + 236.0, + 292.0, + 191.0, + 293.0, + 187.0, + 309.0, + 184.0, + 338.0, + 165.0, + 302.0, + 156.0, + 293.0, + 129.0, + 273.0, + 116.0, + 241.0, + 116.0, + 217.0, + 130.0, + 206.0, + 129.0, + 190.0, + 121.0 + ] + ], + "area": 40017.03846171817, + "bbox": [ + 184.35006631638032, + 115.5, + 177.0971472791196, + 225.96094333833645 + ], + "img_id_update": true, + "iscrowd": 0, + "carema_id": "carema_0002", + "frame_id": "010", + "conf": 1, + "ignore": 0, + "visibility_ratio": 1 + }, + { + "id": 11, + "image_id": 9, + "category_id": 1, + "segmentation": [ + [ + 279.0, + 97.0, + 263.0, + 97.0, + 249.0, + 103.0, + 241.0, + 111.0, + 231.0, + 133.0, + 223.0, + 139.0, + 241.0, + 182.0, + 227.0, + 193.0, + 214.0, + 246.0, + 219.0, + 273.0, + 220.0, + 340.0, + 257.0, + 356.0, + 268.0, + 354.0, + 318.0, + 322.0, + 321.0, + 317.0, + 321.0, + 305.0, + 326.0, + 299.0, + 389.0, + 280.0, + 395.0, + 274.0, + 394.0, + 261.0, + 387.0, + 255.0, + 384.919276719406, + 250.73393606716175, + 366.7862447529866, + 258.1733936067161, + 351.0, + 264.0, + 348.13303196641914, + 267.9596383597031, + 338.0, + 253.0, + 324.0, + 248.0, + 319.0, + 224.0, + 316.0, + 181.0, + 322.0, + 160.0, + 321.0, + 132.0, + 320.7232805941235, + 119.03132063287052, + 331.43945753955427, + 116.38714885372936, + 315.7742977074588, + 118.17339360671619, + 304.907329673878, + 106.73393606716178 + ] + ], + "area": 47315.975984875826, + "bbox": [ + 213.50835899750777, + 96.5, + 181.99016824524304, + 259.99193495504994 + ], + "img_id_update": true, + "iscrowd": 0, + "carema_id": "carema_0001", + "frame_id": "001", + "conf": 1, + "ignore": 0, + "visibility_ratio": 1 + }, + { + "id": 13, + "image_id": 23, + "category_id": 1, + "segmentation": [ + [ + 190.0, + 176.0, + 190.0, + 180.0, + 211.0, + 198.0, + 230.0, + 204.0, + 243.0, + 222.0, + 214.0, + 241.0, + 209.0, + 248.0, + 190.0, + 294.0, + 174.0, + 310.0, + 175.0, + 325.0, + 181.0, + 332.0, + 188.0, + 331.0, + 190.0, + 327.0, + 197.0, + 327.0, + 204.0, + 332.0, + 216.0, + 332.0, + 214.0, + 377.0, + 221.0, + 383.0, + 265.0, + 380.0, + 265.0, + 335.0, + 269.0, + 332.0, + 272.0, + 336.0, + 272.0, + 378.0, + 275.0, + 381.0, + 320.0, + 382.0, + 320.0, + 326.0, + 325.0, + 327.0, + 329.0, + 324.0, + 324.0, + 304.0, + 331.0, + 298.0, + 337.0, + 298.0, + 347.0, + 316.0, + 352.0, + 319.0, + 357.0, + 318.0, + 359.0, + 314.0, + 323.0, + 243.0, + 315.0, + 235.0, + 305.0, + 231.0, + 295.0, + 221.0, + 295.0, + 216.0, + 303.0, + 201.0, + 321.0, + 195.0, + 342.0, + 176.0, + 341.0, + 171.0, + 299.0, + 172.0, + 283.0, + 156.0, + 273.0, + 152.0, + 260.0, + 152.0, + 245.0, + 159.0, + 231.0, + 174.0, + 212.0, + 177.0 + ] + ], + "area": 43139.28127830408, + "bbox": [ + 173.5011074210717, + 151.5, + 185.94610617442828, + 231.99884184634078 + ], + "img_id_update": true, + "iscrowd": 0, + "carema_id": "carema_0002", + "frame_id": "009", + "conf": 1, + "ignore": 0, + "visibility_ratio": 1 + }, + { + "id": 10, + "image_id": 20, + "category_id": 1, + "segmentation": [ + [ + 152.0, + 189.0, + 152.0, + 197.0, + 157.0, + 206.0, + 155.0, + 289.0, + 167.0, + 291.0, + 172.0, + 288.0, + 176.0, + 222.0, + 186.0, + 210.0, + 215.0, + 208.0, + 218.0, + 211.0, + 218.0, + 232.0, + 228.0, + 247.0, + 228.0, + 253.0, + 220.0, + 261.0, + 221.0, + 273.0, + 243.0, + 295.0, + 247.0, + 303.0, + 236.0, + 324.0, + 236.0, + 330.0, + 241.0, + 336.0, + 264.0, + 319.0, + 270.0, + 325.0, + 284.0, + 324.0, + 295.0, + 319.0, + 310.0, + 305.0, + 321.0, + 305.0, + 329.0, + 310.0, + 343.0, + 310.0, + 424.0, + 283.0, + 428.0, + 279.0, + 424.0, + 267.0, + 354.0, + 269.0, + 326.0, + 273.0, + 315.0, + 284.0, + 306.0, + 285.0, + 305.0, + 280.0, + 314.0, + 249.0, + 302.0, + 222.0, + 296.0, + 152.0, + 286.0, + 130.0, + 269.0, + 118.0, + 257.0, + 117.0, + 239.0, + 123.0, + 219.0, + 113.0, + 208.0, + 112.0, + 222.0, + 132.0, + 222.0, + 138.0, + 214.0, + 148.0, + 212.0, + 180.0, + 204.0, + 184.0, + 190.0, + 185.0, + 172.0, + 178.0, + 164.0, + 178.0 + ] + ], + "area": 62291.53904066496, + "bbox": [ + 151.5, + 111.50205339676614, + 276.97434164902523, + 224.900034673967 + ], + "img_id_update": true, + "iscrowd": 0, + "carema_id": "carema_0002", + "frame_id": "008", + "conf": 1, + "ignore": 0, + "visibility_ratio": 1 + }, + { + "id": 12, + "image_id": 22, + "category_id": 1, + "segmentation": [ + [ + 169.0, + 160.0, + 168.0, + 164.0, + 180.0, + 169.0, + 197.0, + 183.0, + 215.0, + 189.0, + 221.0, + 205.0, + 219.0, + 216.0, + 202.0, + 223.0, + 189.0, + 243.0, + 183.0, + 284.0, + 173.0, + 303.0, + 173.0, + 317.0, + 178.0, + 320.0, + 201.0, + 320.0, + 207.0, + 316.0, + 211.0, + 320.0, + 211.0, + 361.0, + 258.0, + 361.0, + 258.0, + 324.0, + 261.0, + 319.0, + 265.0, + 320.0, + 266.0, + 361.0, + 312.0, + 361.0, + 315.0, + 327.0, + 318.0, + 330.0, + 325.0, + 330.0, + 325.0, + 320.0, + 333.0, + 312.0, + 342.0, + 317.0, + 345.0, + 325.0, + 351.0, + 324.0, + 352.0, + 315.0, + 341.0, + 289.0, + 342.0, + 276.0, + 335.0, + 245.0, + 318.0, + 223.0, + 304.0, + 216.0, + 300.0, + 196.0, + 303.0, + 190.0, + 321.0, + 185.0, + 352.0, + 165.0, + 343.0, + 160.0, + 300.0, + 154.0, + 284.0, + 134.0, + 270.0, + 127.0, + 251.0, + 127.0, + 242.0, + 130.0, + 220.0, + 154.0 + ] + ], + "area": 43470.77308259124, + "bbox": [ + 167.51492874992732, + 126.5, + 184.9820131174095, + 235.0 + ], + "img_id_update": true, + "iscrowd": 0, + "carema_id": "carema_0002", + "frame_id": "002", + "conf": 1, + "ignore": 0, + "visibility_ratio": 1 + }, + { + "id": 12, + "image_id": 10, + "category_id": 1, + "segmentation": [ + [ + 169.0, + 160.0, + 168.0, + 164.0, + 180.0, + 169.0, + 197.0, + 183.0, + 215.0, + 189.0, + 221.0, + 205.0, + 219.0, + 216.0, + 202.0, + 223.0, + 189.0, + 243.0, + 183.0, + 284.0, + 173.0, + 303.0, + 173.0, + 317.0, + 178.0, + 320.0, + 201.0, + 320.0, + 207.0, + 316.0, + 211.0, + 320.0, + 211.0, + 361.0, + 258.0, + 361.0, + 258.0, + 324.0, + 261.0, + 319.0, + 265.0, + 320.0, + 266.0, + 361.0, + 312.0, + 361.0, + 315.0, + 327.0, + 318.0, + 330.0, + 325.0, + 330.0, + 325.0, + 320.0, + 333.0, + 312.0, + 342.0, + 317.0, + 345.0, + 325.0, + 351.0, + 324.0, + 352.0, + 315.0, + 341.0, + 289.0, + 342.0, + 276.0, + 335.0, + 245.0, + 318.0, + 223.0, + 304.0, + 216.0, + 300.0, + 196.0, + 303.0, + 190.0, + 321.0, + 185.0, + 352.0, + 165.0, + 343.0, + 160.0, + 300.0, + 154.0, + 284.0, + 134.0, + 270.0, + 127.0, + 251.0, + 127.0, + 242.0, + 130.0, + 220.0, + 154.0 + ] + ], + "area": 43470.77308259124, + "bbox": [ + 167.51492874992732, + 126.5, + 184.9820131174095, + 235.0 + ], + "img_id_update": true, + "iscrowd": 0, + "carema_id": "carema_0001", + "frame_id": "002", + "conf": 1, + "ignore": 0, + "visibility_ratio": 1 + }, + { + "id": 1, + "image_id": 12, + "category_id": 1, + "segmentation": [ + [ + 279.0, + 109.0, + 267.0, + 115.0, + 246.0, + 137.0, + 204.0, + 137.0, + 208.95963835970298, + 139.17339360671616, + 240.0, + 165.0, + 241.0, + 181.0, + 232.0, + 181.0, + 219.0, + 187.0, + 187.0, + 218.0, + 170.0, + 222.0, + 158.0, + 230.0, + 131.0, + 257.0, + 119.0, + 280.0, + 136.0, + 301.0, + 144.0, + 304.0, + 160.0, + 301.0, + 205.0, + 265.0, + 213.0, + 247.0, + 233.0, + 234.0, + 238.0, + 241.0, + 235.0, + 269.0, + 244.0, + 290.0, + 240.0, + 310.0, + 241.0, + 325.0, + 301.0, + 335.0, + 306.0, + 341.0, + 306.0, + 377.0, + 314.0, + 386.0, + 321.0, + 385.0, + 324.0, + 377.0, + 332.0, + 314.0, + 333.0, + 275.0, + 340.0, + 269.0, + 342.8266063932839, + 250.90732967387788, + 340.25411688731026, + 233.21375524701324, + 338.0820148530836, + 207.47820471423964, + 330.0, + 192.0, + 324.30642557313524, + 198.05230868582495, + 322.65321278656756, + 171.5605424604456, + 345.6651598320955, + 170.5201808201485, + 359.573781078463, + 158.7084275104941, + 373.0642557313529, + 151.98805295447204, + 347.1746851792057, + 145.4827252179529, + 325.6829189538263, + 139.6964804649661, + 314.0, + 120.0, + 305.0, + 112.0 + ] + ], + "area": 70857.31064803507, + "bbox": [ + 118.55670757691728, + 108.32917960675007, + 254.73049485596277, + 278.1657951400805 + ], + "img_id_update": true, + "iscrowd": 0, + "carema_id": "carema_0002", + "frame_id": "006", + "conf": 1, + "ignore": 0, + "visibility_ratio": 1 + }, + { + "id": 9, + "image_id": 19, + "category_id": 1, + "segmentation": [ + [ + 182.0, + 211.0, + 185.0, + 215.0, + 201.0, + 214.0, + 218.0, + 220.0, + 217.0, + 227.0, + 209.0, + 235.0, + 200.0, + 258.0, + 200.0, + 269.0, + 208.0, + 298.0, + 206.0, + 321.0, + 211.0, + 328.0, + 233.0, + 326.0, + 260.0, + 316.0, + 310.0, + 304.0, + 323.0, + 297.0, + 327.0, + 301.0, + 328.0, + 321.0, + 331.0, + 324.0, + 340.0, + 321.0, + 346.0, + 287.0, + 353.0, + 279.0, + 353.0, + 269.0, + 322.0, + 225.0, + 296.0, + 198.0, + 301.0, + 189.0, + 320.0, + 176.0, + 333.0, + 171.0, + 331.0, + 168.0, + 286.0, + 168.0, + 264.0, + 154.0, + 247.0, + 155.0, + 233.0, + 162.0, + 225.0, + 170.0, + 216.0, + 189.0 + ] + ], + "area": 30134.497828607233, + "bbox": [ + 181.3, + 153.5008628134125, + 172.2, + 174.99708378982135 + ], + "img_id_update": true, + "iscrowd": 0, + "carema_id": "carema_0002", + "frame_id": "011", + "conf": 1, + "ignore": 0, + "visibility_ratio": 1 + }, + { + "id": 11, + "image_id": 21, + "category_id": 1, + "segmentation": [ + [ + 279.0, + 97.0, + 263.0, + 97.0, + 249.0, + 103.0, + 241.0, + 111.0, + 231.0, + 133.0, + 223.0, + 139.0, + 241.0, + 182.0, + 227.0, + 193.0, + 214.0, + 246.0, + 219.0, + 273.0, + 220.0, + 340.0, + 257.0, + 356.0, + 268.0, + 354.0, + 318.0, + 322.0, + 321.0, + 317.0, + 321.0, + 305.0, + 326.0, + 299.0, + 389.0, + 280.0, + 395.0, + 274.0, + 394.0, + 261.0, + 387.0, + 255.0, + 384.919276719406, + 250.73393606716175, + 366.7862447529866, + 258.1733936067161, + 351.0, + 264.0, + 348.13303196641914, + 267.9596383597031, + 338.0, + 253.0, + 324.0, + 248.0, + 319.0, + 224.0, + 316.0, + 181.0, + 322.0, + 160.0, + 321.0, + 132.0, + 320.7232805941235, + 119.03132063287052, + 331.43945753955427, + 116.38714885372936, + 315.7742977074588, + 118.17339360671619, + 304.907329673878, + 106.73393606716178 + ] + ], + "area": 47315.975984875826, + "bbox": [ + 213.50835899750777, + 96.5, + 181.99016824524304, + 259.99193495504994 + ], + "img_id_update": true, + "iscrowd": 0, + "carema_id": "carema_0002", + "frame_id": "001", + "conf": 1, + "ignore": 0, + "visibility_ratio": 1 + }, + { + "id": 8, + "image_id": 18, + "category_id": 1, + "segmentation": [ + [ + 173.0, + 150.0, + 196.0, + 169.0, + 212.0, + 174.0, + 229.0, + 199.0, + 224.0, + 206.0, + 204.0, + 211.0, + 195.0, + 222.0, + 185.0, + 247.0, + 181.0, + 277.0, + 173.0, + 293.0, + 173.0, + 304.0, + 177.0, + 306.0, + 183.0, + 295.0, + 192.0, + 291.0, + 198.0, + 297.0, + 198.0, + 312.0, + 211.0, + 312.0, + 214.0, + 345.0, + 232.0, + 341.0, + 251.0, + 343.0, + 255.0, + 336.0, + 253.0, + 300.0, + 259.0, + 297.0, + 263.0, + 305.0, + 264.0, + 340.0, + 269.0, + 343.0, + 280.0, + 339.0, + 295.0, + 340.0, + 303.0, + 345.0, + 304.0, + 357.0, + 308.0, + 361.0, + 320.0, + 361.0, + 325.0, + 342.0, + 328.0, + 277.0, + 337.0, + 263.0, + 336.0, + 230.0, + 326.0, + 211.0, + 294.0, + 202.0, + 286.0, + 190.0, + 292.0, + 176.0, + 327.0, + 150.0, + 329.0, + 145.0, + 285.0, + 141.0, + 270.0, + 124.0, + 253.0, + 119.0, + 234.0, + 124.0, + 216.0, + 145.0 + ] + ], + "area": 40141.77749789329, + "bbox": [ + 172.2960784006883, + 118.51646273136868, + 165.2036921888844, + 242.98353726863132 + ], + "img_id_update": true, + "iscrowd": 0, + "carema_id": "carema_0002", + "frame_id": "005", + "conf": 1, + "ignore": 0, + "visibility_ratio": 1 + }, + { + "id": 8, + "image_id": 6, + "category_id": 1, + "segmentation": [ + [ + 173.0, + 150.0, + 196.0, + 169.0, + 212.0, + 174.0, + 229.0, + 199.0, + 224.0, + 206.0, + 204.0, + 211.0, + 195.0, + 222.0, + 185.0, + 247.0, + 181.0, + 277.0, + 173.0, + 293.0, + 173.0, + 304.0, + 177.0, + 306.0, + 183.0, + 295.0, + 192.0, + 291.0, + 198.0, + 297.0, + 198.0, + 312.0, + 211.0, + 312.0, + 214.0, + 345.0, + 232.0, + 341.0, + 251.0, + 343.0, + 255.0, + 336.0, + 253.0, + 300.0, + 259.0, + 297.0, + 263.0, + 305.0, + 264.0, + 340.0, + 269.0, + 343.0, + 280.0, + 339.0, + 295.0, + 340.0, + 303.0, + 345.0, + 304.0, + 357.0, + 308.0, + 361.0, + 320.0, + 361.0, + 325.0, + 342.0, + 328.0, + 277.0, + 337.0, + 263.0, + 336.0, + 230.0, + 326.0, + 211.0, + 294.0, + 202.0, + 286.0, + 190.0, + 292.0, + 176.0, + 327.0, + 150.0, + 329.0, + 145.0, + 285.0, + 141.0, + 270.0, + 124.0, + 253.0, + 119.0, + 234.0, + 124.0, + 216.0, + 145.0 + ] + ], + "area": 40141.77749789329, + "bbox": [ + 172.2960784006883, + 118.51646273136868, + 165.2036921888844, + 242.98353726863132 + ], + "img_id_update": true, + "iscrowd": 0, + "carema_id": "carema_0001", + "frame_id": "005", + "conf": 1, + "ignore": 0, + "visibility_ratio": 1 + } + ] +} \ No newline at end of file diff --git a/MOT_labeling/annotations/val.json b/MOT_labeling/annotations/val.json new file mode 100644 index 0000000..e3c9575 --- /dev/null +++ b/MOT_labeling/annotations/val.json @@ -0,0 +1,646 @@ +{ + "images": [ + { + "id": 11, + "width": 512, + "height": 512, + "file_name": "carema_0001_009.jpg", + "license": "", + "flickr_url": "", + "coco_url": "", + "date_captured": "", + "old_id": 12 + }, + { + "id": 1, + "width": 512, + "height": 512, + "file_name": "carema_0001_003.jpg", + "license": "", + "flickr_url": "", + "coco_url": "", + "date_captured": "", + "old_id": 2 + }, + { + "id": 5, + "width": 512, + "height": 512, + "file_name": "carema_0001_004.jpg", + "license": "", + "flickr_url": "", + "coco_url": "", + "date_captured": "", + "old_id": 6 + }, + { + "id": 2, + "width": 512, + "height": 512, + "file_name": "carema_0001_010.jpg", + "license": "", + "flickr_url": "", + "coco_url": "", + "date_captured": "", + "old_id": 3 + }, + { + "id": 17, + "width": 512, + "height": 512, + "file_name": "carema_0002_004.jpg", + "license": "", + "flickr_url": "", + "coco_url": "", + "date_captured": "", + "old_id": 6 + } + ], + "annotations": [ + { + "id": 13, + "image_id": 11, + "category_id": 1, + "segmentation": [ + [ + 190.0, + 176.0, + 190.0, + 180.0, + 211.0, + 198.0, + 230.0, + 204.0, + 243.0, + 222.0, + 214.0, + 241.0, + 209.0, + 248.0, + 190.0, + 294.0, + 174.0, + 310.0, + 175.0, + 325.0, + 181.0, + 332.0, + 188.0, + 331.0, + 190.0, + 327.0, + 197.0, + 327.0, + 204.0, + 332.0, + 216.0, + 332.0, + 214.0, + 377.0, + 221.0, + 383.0, + 265.0, + 380.0, + 265.0, + 335.0, + 269.0, + 332.0, + 272.0, + 336.0, + 272.0, + 378.0, + 275.0, + 381.0, + 320.0, + 382.0, + 320.0, + 326.0, + 325.0, + 327.0, + 329.0, + 324.0, + 324.0, + 304.0, + 331.0, + 298.0, + 337.0, + 298.0, + 347.0, + 316.0, + 352.0, + 319.0, + 357.0, + 318.0, + 359.0, + 314.0, + 323.0, + 243.0, + 315.0, + 235.0, + 305.0, + 231.0, + 295.0, + 221.0, + 295.0, + 216.0, + 303.0, + 201.0, + 321.0, + 195.0, + 342.0, + 176.0, + 341.0, + 171.0, + 299.0, + 172.0, + 283.0, + 156.0, + 273.0, + 152.0, + 260.0, + 152.0, + 245.0, + 159.0, + 231.0, + 174.0, + 212.0, + 177.0 + ] + ], + "area": 43139.28127830408, + "bbox": [ + 173.5011074210717, + 151.5, + 185.94610617442828, + 231.99884184634078 + ], + "img_id_update": true, + "iscrowd": 0, + "carema_id": "carema_0001", + "frame_id": "009", + "conf": 1, + "ignore": 0, + "visibility_ratio": 1 + }, + { + "id": 3, + "image_id": 1, + "category_id": 1, + "segmentation": [ + [ + 160.0, + 176.0, + 158.0, + 181.0, + 171.0, + 185.0, + 195.0, + 202.0, + 205.0, + 203.0, + 209.0, + 207.0, + 211.0, + 217.0, + 208.0, + 231.0, + 195.0, + 235.0, + 181.0, + 255.0, + 174.0, + 288.0, + 175.0, + 298.0, + 167.0, + 309.0, + 166.0, + 331.0, + 170.0, + 333.0, + 178.0, + 319.0, + 187.0, + 319.0, + 190.0, + 322.0, + 191.0, + 336.0, + 196.0, + 335.0, + 203.0, + 326.0, + 206.0, + 373.0, + 248.0, + 372.0, + 251.0, + 368.0, + 250.0, + 330.0, + 254.0, + 327.0, + 258.0, + 330.0, + 257.0, + 358.0, + 261.0, + 372.0, + 303.0, + 372.0, + 305.0, + 328.0, + 307.0, + 334.0, + 315.0, + 339.0, + 317.0, + 325.0, + 321.0, + 320.0, + 328.0, + 320.0, + 333.0, + 325.0, + 335.0, + 333.0, + 339.0, + 334.0, + 343.0, + 324.0, + 330.0, + 302.0, + 331.0, + 285.0, + 324.0, + 256.0, + 309.0, + 237.0, + 293.0, + 229.0, + 290.0, + 209.0, + 294.0, + 202.0, + 309.0, + 199.0, + 327.0, + 185.0, + 341.0, + 180.0, + 333.0, + 174.0, + 289.0, + 169.0, + 271.0, + 146.0, + 260.0, + 141.0, + 233.0, + 144.0, + 221.0, + 155.0, + 211.0, + 171.0 + ] + ], + "area": 43320.740135819105, + "bbox": [ + 157.53576165455738, + 140.5030581326632, + 185.92847669088528, + 232.99680020420888 + ], + "img_id_update": true, + "iscrowd": 0, + "carema_id": "carema_0001", + "frame_id": "003", + "conf": 1, + "ignore": 0, + "visibility_ratio": 1 + }, + { + "id": 7, + "image_id": 5, + "category_id": 1, + "segmentation": [ + [ + 160.0, + 160.0, + 192.0, + 180.0, + 201.0, + 182.0, + 209.0, + 201.0, + 195.0, + 210.0, + 184.0, + 224.0, + 180.0, + 238.0, + 179.0, + 261.0, + 174.0, + 268.0, + 171.0, + 289.0, + 177.0, + 292.0, + 179.0, + 285.0, + 186.0, + 280.0, + 193.0, + 284.0, + 195.0, + 295.0, + 202.0, + 291.0, + 206.0, + 295.0, + 207.0, + 326.0, + 245.0, + 325.0, + 249.0, + 289.0, + 253.0, + 292.0, + 253.0, + 322.0, + 256.0, + 326.0, + 294.0, + 325.0, + 293.0, + 296.0, + 295.0, + 294.0, + 302.0, + 297.0, + 306.0, + 283.0, + 315.0, + 282.0, + 320.0, + 293.0, + 327.0, + 292.0, + 326.0, + 281.0, + 315.0, + 259.0, + 310.0, + 228.0, + 300.0, + 217.0, + 284.0, + 207.0, + 277.0, + 196.0, + 277.0, + 185.0, + 281.0, + 180.0, + 290.0, + 179.0, + 321.0, + 160.0, + 307.0, + 155.0, + 278.0, + 152.0, + 263.0, + 134.0, + 249.0, + 127.0, + 225.0, + 130.0, + 205.0, + 153.0 + ] + ], + "area": 33636.71056176108, + "bbox": [ + 159.31100137799586, + 126.50386106164316, + 168.186945225238, + 199.99596589803323 + ], + "img_id_update": true, + "iscrowd": 0, + "carema_id": "carema_0001", + "frame_id": "004", + "conf": 1, + "ignore": 0, + "visibility_ratio": 1 + }, + { + "id": 4, + "image_id": 2, + "category_id": 1, + "segmentation": [ + [ + 185.0, + 122.0, + 195.0, + 147.0, + 207.0, + 159.0, + 208.0, + 175.0, + 212.0, + 184.0, + 195.0, + 217.0, + 196.0, + 226.0, + 204.0, + 236.0, + 204.0, + 257.0, + 211.0, + 303.0, + 222.0, + 312.0, + 291.0, + 341.0, + 301.0, + 331.0, + 313.0, + 310.0, + 307.0, + 292.0, + 307.0, + 284.0, + 312.0, + 274.0, + 335.0, + 270.0, + 350.0, + 272.0, + 361.0, + 254.0, + 358.0, + 248.0, + 325.0, + 236.0, + 292.0, + 191.0, + 293.0, + 187.0, + 309.0, + 184.0, + 338.0, + 165.0, + 302.0, + 156.0, + 293.0, + 129.0, + 273.0, + 116.0, + 241.0, + 116.0, + 217.0, + 130.0, + 206.0, + 129.0, + 190.0, + 121.0 + ] + ], + "area": 40017.03846171817, + "bbox": [ + 184.35006631638032, + 115.5, + 177.0971472791196, + 225.96094333833645 + ], + "img_id_update": true, + "iscrowd": 0, + "carema_id": "carema_0001", + "frame_id": "010", + "conf": 1, + "ignore": 0, + "visibility_ratio": 1 + }, + { + "id": 7, + "image_id": 17, + "category_id": 1, + "segmentation": [ + [ + 160.0, + 160.0, + 192.0, + 180.0, + 201.0, + 182.0, + 209.0, + 201.0, + 195.0, + 210.0, + 184.0, + 224.0, + 180.0, + 238.0, + 179.0, + 261.0, + 174.0, + 268.0, + 171.0, + 289.0, + 177.0, + 292.0, + 179.0, + 285.0, + 186.0, + 280.0, + 193.0, + 284.0, + 195.0, + 295.0, + 202.0, + 291.0, + 206.0, + 295.0, + 207.0, + 326.0, + 245.0, + 325.0, + 249.0, + 289.0, + 253.0, + 292.0, + 253.0, + 322.0, + 256.0, + 326.0, + 294.0, + 325.0, + 293.0, + 296.0, + 295.0, + 294.0, + 302.0, + 297.0, + 306.0, + 283.0, + 315.0, + 282.0, + 320.0, + 293.0, + 327.0, + 292.0, + 326.0, + 281.0, + 315.0, + 259.0, + 310.0, + 228.0, + 300.0, + 217.0, + 284.0, + 207.0, + 277.0, + 196.0, + 277.0, + 185.0, + 281.0, + 180.0, + 290.0, + 179.0, + 321.0, + 160.0, + 307.0, + 155.0, + 278.0, + 152.0, + 263.0, + 134.0, + 249.0, + 127.0, + 225.0, + 130.0, + 205.0, + 153.0 + ] + ], + "area": 33636.71056176108, + "bbox": [ + 159.31100137799586, + 126.50386106164316, + 168.186945225238, + 199.99596589803323 + ], + "img_id_update": true, + "iscrowd": 0, + "carema_id": "carema_0002", + "frame_id": "004", + "conf": 1, + "ignore": 0, + "visibility_ratio": 1 + } + ] +} \ No newline at end of file diff --git a/MOT_labeling/train/carema_0001_001.jpg b/MOT_labeling/train/carema_0001_001.jpg new file mode 100644 index 0000000..5acd796 Binary files /dev/null and b/MOT_labeling/train/carema_0001_001.jpg differ diff --git a/MOT_labeling/train/carema_0001_002.jpg b/MOT_labeling/train/carema_0001_002.jpg new file mode 100644 index 0000000..53e4a2f Binary files /dev/null and b/MOT_labeling/train/carema_0001_002.jpg differ diff --git a/MOT_labeling/train/carema_0001_005.jpg b/MOT_labeling/train/carema_0001_005.jpg new file mode 100644 index 0000000..36167ed Binary files /dev/null and b/MOT_labeling/train/carema_0001_005.jpg differ diff --git a/MOT_labeling/train/carema_0001_006.jpg b/MOT_labeling/train/carema_0001_006.jpg new file mode 100644 index 0000000..0237876 Binary files /dev/null and b/MOT_labeling/train/carema_0001_006.jpg differ diff --git a/MOT_labeling/train/carema_0001_007.jpg b/MOT_labeling/train/carema_0001_007.jpg new file mode 100644 index 0000000..237b518 Binary files /dev/null and b/MOT_labeling/train/carema_0001_007.jpg differ diff --git a/MOT_labeling/train/carema_0001_008.jpg b/MOT_labeling/train/carema_0001_008.jpg new file mode 100644 index 0000000..756caa8 Binary files /dev/null and b/MOT_labeling/train/carema_0001_008.jpg differ diff --git a/MOT_labeling/train/carema_0001_011.jpg b/MOT_labeling/train/carema_0001_011.jpg new file mode 100644 index 0000000..cbdf6ad Binary files /dev/null and b/MOT_labeling/train/carema_0001_011.jpg differ diff --git a/MOT_labeling/train/carema_0001_012.jpg b/MOT_labeling/train/carema_0001_012.jpg new file mode 100644 index 0000000..e323f36 Binary files /dev/null and b/MOT_labeling/train/carema_0001_012.jpg differ diff --git a/MOT_labeling/train/carema_0002_001.jpg b/MOT_labeling/train/carema_0002_001.jpg new file mode 100644 index 0000000..5acd796 Binary files /dev/null and b/MOT_labeling/train/carema_0002_001.jpg differ diff --git a/MOT_labeling/train/carema_0002_002.jpg b/MOT_labeling/train/carema_0002_002.jpg new file mode 100644 index 0000000..53e4a2f Binary files /dev/null and b/MOT_labeling/train/carema_0002_002.jpg differ diff --git a/MOT_labeling/train/carema_0002_003.jpg b/MOT_labeling/train/carema_0002_003.jpg new file mode 100644 index 0000000..4771ea2 Binary files /dev/null and b/MOT_labeling/train/carema_0002_003.jpg differ diff --git a/MOT_labeling/train/carema_0002_005.jpg b/MOT_labeling/train/carema_0002_005.jpg new file mode 100644 index 0000000..36167ed Binary files /dev/null and b/MOT_labeling/train/carema_0002_005.jpg differ diff --git a/MOT_labeling/train/carema_0002_006.jpg b/MOT_labeling/train/carema_0002_006.jpg new file mode 100644 index 0000000..0237876 Binary files /dev/null and b/MOT_labeling/train/carema_0002_006.jpg differ diff --git a/MOT_labeling/train/carema_0002_007.jpg b/MOT_labeling/train/carema_0002_007.jpg new file mode 100644 index 0000000..237b518 Binary files /dev/null and b/MOT_labeling/train/carema_0002_007.jpg differ diff --git a/MOT_labeling/train/carema_0002_008.jpg b/MOT_labeling/train/carema_0002_008.jpg new file mode 100644 index 0000000..756caa8 Binary files /dev/null and b/MOT_labeling/train/carema_0002_008.jpg differ diff --git a/MOT_labeling/train/carema_0002_009.jpg b/MOT_labeling/train/carema_0002_009.jpg new file mode 100644 index 0000000..b937963 Binary files /dev/null and b/MOT_labeling/train/carema_0002_009.jpg differ diff --git a/MOT_labeling/train/carema_0002_010.jpg b/MOT_labeling/train/carema_0002_010.jpg new file mode 100644 index 0000000..e57f1d2 Binary files /dev/null and b/MOT_labeling/train/carema_0002_010.jpg differ diff --git a/MOT_labeling/train/carema_0002_011.jpg b/MOT_labeling/train/carema_0002_011.jpg new file mode 100644 index 0000000..cbdf6ad Binary files /dev/null and b/MOT_labeling/train/carema_0002_011.jpg differ diff --git a/MOT_labeling/train/carema_0002_012.jpg b/MOT_labeling/train/carema_0002_012.jpg new file mode 100644 index 0000000..e323f36 Binary files /dev/null and b/MOT_labeling/train/carema_0002_012.jpg differ diff --git a/MOT_labeling/val/carema_0001_003.jpg b/MOT_labeling/val/carema_0001_003.jpg new file mode 100644 index 0000000..4771ea2 Binary files /dev/null and b/MOT_labeling/val/carema_0001_003.jpg differ diff --git a/MOT_labeling/val/carema_0001_004.jpg b/MOT_labeling/val/carema_0001_004.jpg new file mode 100644 index 0000000..b8c0249 Binary files /dev/null and b/MOT_labeling/val/carema_0001_004.jpg differ diff --git a/MOT_labeling/val/carema_0001_009.jpg b/MOT_labeling/val/carema_0001_009.jpg new file mode 100644 index 0000000..b937963 Binary files /dev/null and b/MOT_labeling/val/carema_0001_009.jpg differ diff --git a/MOT_labeling/val/carema_0001_010.jpg b/MOT_labeling/val/carema_0001_010.jpg new file mode 100644 index 0000000..e57f1d2 Binary files /dev/null and b/MOT_labeling/val/carema_0001_010.jpg differ diff --git a/MOT_labeling/val/carema_0002_004.jpg b/MOT_labeling/val/carema_0002_004.jpg new file mode 100644 index 0000000..b8c0249 Binary files /dev/null and b/MOT_labeling/val/carema_0002_004.jpg differ diff --git a/lego_labeling_samples/carema_0001/gt/001.png b/lego_labeling_samples/carema_0001/gt/001.png new file mode 100644 index 0000000..a56bc89 Binary files /dev/null and b/lego_labeling_samples/carema_0001/gt/001.png differ diff --git a/lego_labeling_samples/carema_0001/gt/001_matting.png b/lego_labeling_samples/carema_0001/gt/001_matting.png new file mode 100644 index 0000000..1f3010b Binary files /dev/null and b/lego_labeling_samples/carema_0001/gt/001_matting.png differ diff --git a/lego_labeling_samples/carema_0001/gt/001_pseudo.png b/lego_labeling_samples/carema_0001/gt/001_pseudo.png new file mode 100644 index 0000000..b523945 Binary files /dev/null and b/lego_labeling_samples/carema_0001/gt/001_pseudo.png differ diff --git a/lego_labeling_samples/carema_0001/gt/002.png b/lego_labeling_samples/carema_0001/gt/002.png new file mode 100644 index 0000000..97dd7d6 Binary files /dev/null and b/lego_labeling_samples/carema_0001/gt/002.png differ diff --git a/lego_labeling_samples/carema_0001/gt/002_matting.png b/lego_labeling_samples/carema_0001/gt/002_matting.png new file mode 100644 index 0000000..8dbca24 Binary files /dev/null and b/lego_labeling_samples/carema_0001/gt/002_matting.png differ diff --git a/lego_labeling_samples/carema_0001/gt/002_pseudo.png b/lego_labeling_samples/carema_0001/gt/002_pseudo.png new file mode 100644 index 0000000..71b0b04 Binary files /dev/null and b/lego_labeling_samples/carema_0001/gt/002_pseudo.png differ diff --git a/lego_labeling_samples/carema_0001/gt/003.png b/lego_labeling_samples/carema_0001/gt/003.png new file mode 100644 index 0000000..5edada9 Binary files /dev/null and b/lego_labeling_samples/carema_0001/gt/003.png differ diff --git a/lego_labeling_samples/carema_0001/gt/003_matting.png b/lego_labeling_samples/carema_0001/gt/003_matting.png new file mode 100644 index 0000000..b98416d Binary files /dev/null and b/lego_labeling_samples/carema_0001/gt/003_matting.png differ diff --git a/lego_labeling_samples/carema_0001/gt/003_pseudo.png b/lego_labeling_samples/carema_0001/gt/003_pseudo.png new file mode 100644 index 0000000..334eddf Binary files /dev/null and b/lego_labeling_samples/carema_0001/gt/003_pseudo.png differ diff --git a/lego_labeling_samples/carema_0001/gt/004.png b/lego_labeling_samples/carema_0001/gt/004.png new file mode 100644 index 0000000..b3eb34d Binary files /dev/null and b/lego_labeling_samples/carema_0001/gt/004.png differ diff --git a/lego_labeling_samples/carema_0001/gt/004_matting.png b/lego_labeling_samples/carema_0001/gt/004_matting.png new file mode 100644 index 0000000..515f714 Binary files /dev/null and b/lego_labeling_samples/carema_0001/gt/004_matting.png differ diff --git a/lego_labeling_samples/carema_0001/gt/004_pseudo.png b/lego_labeling_samples/carema_0001/gt/004_pseudo.png new file mode 100644 index 0000000..e448cc2 Binary files /dev/null and b/lego_labeling_samples/carema_0001/gt/004_pseudo.png differ diff --git a/lego_labeling_samples/carema_0001/gt/005.png b/lego_labeling_samples/carema_0001/gt/005.png new file mode 100644 index 0000000..a16e7ec Binary files /dev/null and b/lego_labeling_samples/carema_0001/gt/005.png differ diff --git a/lego_labeling_samples/carema_0001/gt/005_matting.png b/lego_labeling_samples/carema_0001/gt/005_matting.png new file mode 100644 index 0000000..fb1678c Binary files /dev/null and b/lego_labeling_samples/carema_0001/gt/005_matting.png differ diff --git a/lego_labeling_samples/carema_0001/gt/005_pseudo.png b/lego_labeling_samples/carema_0001/gt/005_pseudo.png new file mode 100644 index 0000000..2a8a584 Binary files /dev/null and b/lego_labeling_samples/carema_0001/gt/005_pseudo.png differ diff --git a/lego_labeling_samples/carema_0001/gt/006.png b/lego_labeling_samples/carema_0001/gt/006.png new file mode 100644 index 0000000..07d5c46 Binary files /dev/null and b/lego_labeling_samples/carema_0001/gt/006.png differ diff --git a/lego_labeling_samples/carema_0001/gt/006_matting.png b/lego_labeling_samples/carema_0001/gt/006_matting.png new file mode 100644 index 0000000..3b656f3 Binary files /dev/null and b/lego_labeling_samples/carema_0001/gt/006_matting.png differ diff --git a/lego_labeling_samples/carema_0001/gt/006_pseudo.png b/lego_labeling_samples/carema_0001/gt/006_pseudo.png new file mode 100644 index 0000000..402d6de Binary files /dev/null and b/lego_labeling_samples/carema_0001/gt/006_pseudo.png differ diff --git a/lego_labeling_samples/carema_0001/gt/007.png b/lego_labeling_samples/carema_0001/gt/007.png new file mode 100644 index 0000000..c245664 Binary files /dev/null and b/lego_labeling_samples/carema_0001/gt/007.png differ diff --git a/lego_labeling_samples/carema_0001/gt/007_matting.png b/lego_labeling_samples/carema_0001/gt/007_matting.png new file mode 100644 index 0000000..5ece2ec Binary files /dev/null and b/lego_labeling_samples/carema_0001/gt/007_matting.png differ diff --git a/lego_labeling_samples/carema_0001/gt/007_pseudo.png b/lego_labeling_samples/carema_0001/gt/007_pseudo.png new file mode 100644 index 0000000..abfc609 Binary files /dev/null and b/lego_labeling_samples/carema_0001/gt/007_pseudo.png differ diff --git a/lego_labeling_samples/carema_0001/gt/008.png b/lego_labeling_samples/carema_0001/gt/008.png new file mode 100644 index 0000000..8ee809f Binary files /dev/null and b/lego_labeling_samples/carema_0001/gt/008.png differ diff --git a/lego_labeling_samples/carema_0001/gt/008_matting.png b/lego_labeling_samples/carema_0001/gt/008_matting.png new file mode 100644 index 0000000..b865c4f Binary files /dev/null and b/lego_labeling_samples/carema_0001/gt/008_matting.png differ diff --git a/lego_labeling_samples/carema_0001/gt/008_pseudo.png b/lego_labeling_samples/carema_0001/gt/008_pseudo.png new file mode 100644 index 0000000..b150ef1 Binary files /dev/null and b/lego_labeling_samples/carema_0001/gt/008_pseudo.png differ diff --git a/lego_labeling_samples/carema_0001/gt/009.png b/lego_labeling_samples/carema_0001/gt/009.png new file mode 100644 index 0000000..69e8fd2 Binary files /dev/null and b/lego_labeling_samples/carema_0001/gt/009.png differ diff --git a/lego_labeling_samples/carema_0001/gt/009_matting.png b/lego_labeling_samples/carema_0001/gt/009_matting.png new file mode 100644 index 0000000..43632fe Binary files /dev/null and b/lego_labeling_samples/carema_0001/gt/009_matting.png differ diff --git a/lego_labeling_samples/carema_0001/gt/009_pseudo.png b/lego_labeling_samples/carema_0001/gt/009_pseudo.png new file mode 100644 index 0000000..1fe5788 Binary files /dev/null and b/lego_labeling_samples/carema_0001/gt/009_pseudo.png differ diff --git a/lego_labeling_samples/carema_0001/gt/010.png b/lego_labeling_samples/carema_0001/gt/010.png new file mode 100644 index 0000000..3d6a3fd Binary files /dev/null and b/lego_labeling_samples/carema_0001/gt/010.png differ diff --git a/lego_labeling_samples/carema_0001/gt/010_matting.png b/lego_labeling_samples/carema_0001/gt/010_matting.png new file mode 100644 index 0000000..7b93282 Binary files /dev/null and b/lego_labeling_samples/carema_0001/gt/010_matting.png differ diff --git a/lego_labeling_samples/carema_0001/gt/010_pseudo.png b/lego_labeling_samples/carema_0001/gt/010_pseudo.png new file mode 100644 index 0000000..0da0707 Binary files /dev/null and b/lego_labeling_samples/carema_0001/gt/010_pseudo.png differ diff --git a/lego_labeling_samples/carema_0001/gt/011.png b/lego_labeling_samples/carema_0001/gt/011.png new file mode 100644 index 0000000..67b661c Binary files /dev/null and b/lego_labeling_samples/carema_0001/gt/011.png differ diff --git a/lego_labeling_samples/carema_0001/gt/011_matting.png b/lego_labeling_samples/carema_0001/gt/011_matting.png new file mode 100644 index 0000000..acfd755 Binary files /dev/null and b/lego_labeling_samples/carema_0001/gt/011_matting.png differ diff --git a/lego_labeling_samples/carema_0001/gt/011_pseudo.png b/lego_labeling_samples/carema_0001/gt/011_pseudo.png new file mode 100644 index 0000000..4edd08a Binary files /dev/null and b/lego_labeling_samples/carema_0001/gt/011_pseudo.png differ diff --git a/lego_labeling_samples/carema_0001/gt/012.png b/lego_labeling_samples/carema_0001/gt/012.png new file mode 100644 index 0000000..bc8f723 Binary files /dev/null and b/lego_labeling_samples/carema_0001/gt/012.png differ diff --git a/lego_labeling_samples/carema_0001/gt/012_matting.png b/lego_labeling_samples/carema_0001/gt/012_matting.png new file mode 100644 index 0000000..2d12431 Binary files /dev/null and b/lego_labeling_samples/carema_0001/gt/012_matting.png differ diff --git a/lego_labeling_samples/carema_0001/gt/012_pseudo.png b/lego_labeling_samples/carema_0001/gt/012_pseudo.png new file mode 100644 index 0000000..638a251 Binary files /dev/null and b/lego_labeling_samples/carema_0001/gt/012_pseudo.png differ diff --git a/lego_labeling_samples/carema_0001/gt/autosave_label.txt b/lego_labeling_samples/carema_0001/gt/autosave_label.txt new file mode 100644 index 0000000..3e0d602 --- /dev/null +++ b/lego_labeling_samples/carema_0001/gt/autosave_label.txt @@ -0,0 +1,2 @@ +1 space_mini_figure 67 159 36 +2 town_mini_figure 204 43 41 diff --git a/lego_labeling_samples/carema_0001/gt/coco.json b/lego_labeling_samples/carema_0001/gt/coco.json new file mode 100644 index 0000000..c10b73e --- /dev/null +++ b/lego_labeling_samples/carema_0001/gt/coco.json @@ -0,0 +1,7 @@ +{"categories": [{"id": 1, "name": "space_mini_figure", "color": [67, 159, 36], "supercategory": ""}, {"id": 2, "name": "town_mini_figure", "color": [204, 43, 41], "supercategory": ""}], + "images": [{"id": 1, "width": 512, "height": 512, "file_name": "006.jpg", "license": "", "flickr_url": "", "coco_url": "", "date_captured": ""}, {"id": 2, "width": 512, "height": 512, "file_name": "003.jpg", "license": "", "flickr_url": "", "coco_url": "", "date_captured": ""}, {"id": 3, "width": 512, "height": 512, "file_name": "010.jpg", "license": "", "flickr_url": "", "coco_url": "", "date_captured": ""}, {"id": 4, "width": 512, "height": 512, "file_name": "012.jpg", "license": "", "flickr_url": "", "coco_url": "", "date_captured": ""}, {"id": 5, "width": 512, "height": 512, "file_name": "007.jpg", "license": "", "flickr_url": "", "coco_url": "", "date_captured": ""}, {"id": 6, "width": 512, "height": 512, "file_name": "004.jpg", "license": "", "flickr_url": "", "coco_url": "", "date_captured": ""}, {"id": 7, "width": 512, "height": 512, "file_name": "005.jpg", "license": "", "flickr_url": "", "coco_url": "", "date_captured": ""}, {"id": 8, "width": 512, "height": 512, "file_name": "011.jpg", "license": "", "flickr_url": "", "coco_url": "", "date_captured": ""}, {"id": 9, "width": 512, "height": 512, "file_name": "008.jpg", "license": "", "flickr_url": "", "coco_url": "", "date_captured": ""}, {"id": 10, "width": 512, "height": 512, "file_name": "001.jpg", "license": "", "flickr_url": "", "coco_url": "", "date_captured": ""}, {"id": 11, "width": 512, "height": 512, "file_name": "002.jpg", "license": "", "flickr_url": "", "coco_url": "", "date_captured": ""}, {"id": 12, "width": 512, "height": 512, "file_name": "009.jpg", "license": "", "flickr_url": "", "coco_url": "", "date_captured": ""}], + "annotations": [ + {"id": 1, "image_id": 1, "category_id": 1, "segmentation": [[279.0, 109.0, 267.0, 115.0, 246.0, 137.0, 204.0, 137.0, 208.95963835970298, 139.17339360671616, 240.0, 165.0, 241.0, 181.0, 232.0, 181.0, 219.0, 187.0, 187.0, 218.0, 170.0, 222.0, 158.0, 230.0, 131.0, 257.0, 119.0, 280.0, 136.0, 301.0, 144.0, 304.0, 160.0, 301.0, 205.0, 265.0, 213.0, 247.0, 233.0, 234.0, 238.0, 241.0, 235.0, 269.0, 244.0, 290.0, 240.0, 310.0, 241.0, 325.0, 301.0, 335.0, 306.0, 341.0, 306.0, 377.0, 314.0, 386.0, 321.0, 385.0, 324.0, 377.0, 332.0, 314.0, 333.0, 275.0, 340.0, 269.0, 342.8266063932839, 250.90732967387788, 340.25411688731026, 233.21375524701324, 338.0820148530836, 207.47820471423964, 330.0, 192.0, 324.30642557313524, 198.05230868582495, 322.65321278656756, 171.5605424604456, 345.6651598320955, 170.5201808201485, 359.573781078463, 158.7084275104941, 373.0642557313529, 151.98805295447204, 347.1746851792057, 145.4827252179529, 325.6829189538263, 139.6964804649661, 314.0, 120.0, 305.0, 112.0]], "area": 0, "bbox": [118.55670757691728, 386.49497474683056, 254.73049485596277, 278.1657951400805]}, + {"id": 2, "image_id": 2, "category_id": 1, "segmentation": [[163.0, 176.0, 160.0, 181.0, 172.0, 185.0, 195.0, 201.0, 207.0, 203.0, 213.0, 221.0, 211.0, 230.0, 206.0, 234.0, 197.0, 235.0, 181.0, 257.0, 175.0, 286.0, 176.0, 296.0, 168.0, 310.0, 167.0, 329.0, 172.0, 331.0, 180.0, 319.0, 187.0, 319.0, 196.0, 334.0, 201.0, 325.0, 204.0, 328.0, 205.0, 366.0, 208.0, 373.0, 248.0, 371.0, 254.0, 366.0, 262.0, 370.0, 302.0, 373.0, 305.0, 368.0, 305.0, 325.0, 306.0, 331.0, 316.0, 336.0, 318.0, 325.0, 326.0, 320.0, 340.0, 333.0, 343.0, 325.0, 331.0, 301.0, 332.0, 286.0, 326.0, 259.0, 310.0, 237.0, 294.0, 229.0, 291.0, 206.0, 294.0, 202.0, 312.0, 197.0, 326.0, 186.0, 341.0, 180.0, 333.0, 174.0, 290.0, 170.0, 272.0, 147.0, 257.0, 142.0, 232.0, 146.0, 222.0, 155.0, 211.0, 172.0]], "area": 0, "bbox": [159.57125353714372, 373.4993761694389, 183.8969110516408, 231.99309648539725]}, + {"id": 3, "image_id": 2, "category_id": 1, "segmentation": [[160.0, 176.0, 158.0, 181.0, 171.0, 185.0, 195.0, 202.0, 205.0, 203.0, 209.0, 207.0, 211.0, 217.0, 208.0, 231.0, 195.0, 235.0, 181.0, 255.0, 174.0, 288.0, 175.0, 298.0, 167.0, 309.0, 166.0, 331.0, 170.0, 333.0, 178.0, 319.0, 187.0, 319.0, 190.0, 322.0, 191.0, 336.0, 196.0, 335.0, 203.0, 326.0, 206.0, 373.0, 248.0, 372.0, 251.0, 368.0, 250.0, 330.0, 254.0, 327.0, 258.0, 330.0, 257.0, 358.0, 261.0, 372.0, 303.0, 372.0, 305.0, 328.0, 307.0, 334.0, 315.0, 339.0, 317.0, 325.0, 321.0, 320.0, 328.0, 320.0, 333.0, 325.0, 335.0, 333.0, 339.0, 334.0, 343.0, 324.0, 330.0, 302.0, 331.0, 285.0, 324.0, 256.0, 309.0, 237.0, 293.0, 229.0, 290.0, 209.0, 294.0, 202.0, 309.0, 199.0, 327.0, 185.0, 341.0, 180.0, 333.0, 174.0, 289.0, 169.0, 271.0, 146.0, 260.0, 141.0, 233.0, 144.0, 221.0, 155.0, 211.0, 171.0]], "area": 0, "bbox": [157.53576165455738, 373.4998583368721, 185.92847669088528, 232.99680020420888]}, + {"id": 4, "image_id": 3, "category_id": 1, "segmentation": [[185.0, 122.0, 195.0, 147.0, 207.0, 159.0, 208.0, 175.0, 212.0, 184.0, 195.0, 217.0, 196.0, 226.0, 204.0, 236.0, 204.0, 257.0, 211.0, 303.0, 222.0, 312.0, 291.0, 341.0, 301.0, 331.0, 313.0, 310.0, 307.0, 292.0, 307.0, 284.0, 312.0, 274.0, 335.0, 270.0, 350.0, 272.0, 361.0, 254.0, 358.0, 248.0, 325.0, 236.0, 292.0, 191.0, 293.0, 187.0, 309.0, 184.0, 338.0, 165.0, 302.0, 156.0, 293.0, 129.0, 273.0, 116.0, 241.0, 116.0, 217.0, 130.0, 206.0, 129.0, 190.0, 121.0]], "area": 0, "bbox": [184.35006631638032, 341.46094333833645, 177.0971472791196, 225.96094333833645]}, {"id": 5, "image_id": 4, "category_id": 1, "segmentation": [[293.0, 105.0, 264.0, 101.0, 249.0, 109.0, 234.0, 123.0, 181.0, 119.0, 168.0, 123.0, 170.0, 128.0, 184.0, 134.0, 205.0, 156.0, 217.0, 162.0, 217.0, 179.0, 222.0, 192.0, 217.0, 198.0, 199.0, 203.0, 187.0, 217.0, 168.0, 219.0, 160.0, 227.0, 164.0, 253.0, 158.0, 267.0, 161.0, 299.0, 172.0, 305.0, 186.0, 397.0, 193.0, 406.0, 211.0, 403.0, 218.0, 387.0, 251.0, 388.0, 254.0, 385.0, 259.0, 331.0, 264.0, 327.0, 267.0, 330.0, 262.0, 387.0, 269.0, 391.0, 324.0, 396.0, 327.0, 392.0, 331.0, 361.0, 341.0, 356.0, 346.0, 335.0, 356.0, 351.0, 365.0, 351.0, 373.0, 342.0, 372.0, 330.0, 362.0, 321.0, 365.0, 282.0, 359.0, 251.0, 346.0, 221.0, 327.0, 206.0, 319.0, 188.0, 320.0, 185.0, 338.0, 185.0, 358.0, 174.0, 371.0, 173.0, 372.0, 166.0, 366.0, 161.0, 325.0, 145.0, 307.0, 114.0]], "area": 0, "bbox": [157.50218288697036, 406.49319696191606, 215.9960899921521, 305.9885075265378]}, {"id": 6, "image_id": 5, "category_id": 1, "segmentation": [[279.0, 0.0, 234.0, 159.0, 229.0, 166.0, 212.0, 170.0, 213.0, 175.0, 225.0, 182.0, 225.0, 187.0, 214.0, 206.0, 213.0, 223.0, 195.0, 272.0, 196.0, 284.0, 200.0, 292.0, 221.0, 297.0, 232.0, 286.0, 236.0, 269.0, 242.0, 263.0, 244.0, 288.0, 250.0, 300.0, 249.0, 336.0, 331.0, 346.0, 341.0, 323.0, 346.0, 317.0, 350.0, 321.0, 356.0, 321.0, 363.0, 314.0, 366.0, 302.0, 356.0, 287.0, 353.0, 251.0, 341.0, 233.0, 320.0, 211.0, 318.0, 202.0, 335.0, 195.0, 358.0, 179.0, 355.0, 175.0, 319.0, 167.0, 299.0, 146.0, 278.0, 145.0, 262.0, 154.0, 260.0, 152.0, 304.0, 2.0]], "area": 0, "bbox": [194.50172712087755, 346.4963229387753, 171.98334412919513, 347.1135871945872]}, {"id": 7, "image_id": 6, "category_id": 1, "segmentation": [[160.0, 160.0, 192.0, 180.0, 201.0, 182.0, 209.0, 201.0, 195.0, 210.0, 184.0, 224.0, 180.0, 238.0, 179.0, 261.0, 174.0, 268.0, 171.0, 289.0, 177.0, 292.0, 179.0, 285.0, 186.0, 280.0, 193.0, 284.0, 195.0, 295.0, 202.0, 291.0, 206.0, 295.0, 207.0, 326.0, 245.0, 325.0, 249.0, 289.0, 253.0, 292.0, 253.0, 322.0, 256.0, 326.0, 294.0, 325.0, 293.0, 296.0, 295.0, 294.0, 302.0, 297.0, 306.0, 283.0, 315.0, 282.0, 320.0, 293.0, 327.0, 292.0, 326.0, 281.0, 315.0, 259.0, 310.0, 228.0, 300.0, 217.0, 284.0, 207.0, 277.0, 196.0, 277.0, 185.0, 281.0, 180.0, 290.0, 179.0, 321.0, 160.0, 307.0, 155.0, 278.0, 152.0, 263.0, 134.0, 249.0, 127.0, 225.0, 130.0, 205.0, 153.0]], "area": 0, "bbox": [159.31100137799586, 326.4998269596764, 168.186945225238, 199.99596589803323]}, {"id": 8, "image_id": 7, "category_id": 1, "segmentation": [[173.0, 150.0, 196.0, 169.0, 212.0, 174.0, 229.0, 199.0, 224.0, 206.0, 204.0, 211.0, 195.0, 222.0, 185.0, 247.0, 181.0, 277.0, 173.0, 293.0, 173.0, 304.0, 177.0, 306.0, 183.0, 295.0, 192.0, 291.0, 198.0, 297.0, 198.0, 312.0, 211.0, 312.0, 214.0, 345.0, 232.0, 341.0, 251.0, 343.0, 255.0, 336.0, 253.0, 300.0, 259.0, 297.0, 263.0, 305.0, 264.0, 340.0, 269.0, 343.0, 280.0, 339.0, 295.0, 340.0, 303.0, 345.0, 304.0, 357.0, 308.0, 361.0, 320.0, 361.0, 325.0, 342.0, 328.0, 277.0, 337.0, 263.0, 336.0, 230.0, 326.0, 211.0, 294.0, 202.0, 286.0, 190.0, 292.0, 176.0, 327.0, 150.0, 329.0, 145.0, 285.0, 141.0, 270.0, 124.0, 253.0, 119.0, 234.0, 124.0, 216.0, 145.0]], "area": 0, "bbox": [172.2960784006883, 361.5, 165.2036921888844, 242.98353726863132]}, {"id": 9, "image_id": 8, "category_id": 1, "segmentation": [[182.0, 211.0, 185.0, 215.0, 201.0, 214.0, 218.0, 220.0, 217.0, 227.0, 209.0, 235.0, 200.0, 258.0, 200.0, 269.0, 208.0, 298.0, 206.0, 321.0, 211.0, 328.0, 233.0, 326.0, 260.0, 316.0, 310.0, 304.0, 323.0, 297.0, 327.0, 301.0, 328.0, 321.0, 331.0, 324.0, 340.0, 321.0, 346.0, 287.0, 353.0, 279.0, 353.0, 269.0, 322.0, 225.0, 296.0, 198.0, 301.0, 189.0, 320.0, 176.0, 333.0, 171.0, 331.0, 168.0, 286.0, 168.0, 264.0, 154.0, 247.0, 155.0, 233.0, 162.0, 225.0, 170.0, 216.0, 189.0]], "area": 0, "bbox": [181.3, 328.49794660323386, 172.2, 174.99708378982135]}, {"id": 10, "image_id": 9, "category_id": 1, "segmentation": [[152.0, 189.0, 152.0, 197.0, 157.0, 206.0, 155.0, 289.0, 167.0, 291.0, 172.0, 288.0, 176.0, 222.0, 186.0, 210.0, 215.0, 208.0, 218.0, 211.0, 218.0, 232.0, 228.0, 247.0, 228.0, 253.0, 220.0, 261.0, 221.0, 273.0, 243.0, 295.0, 247.0, 303.0, 236.0, 324.0, 236.0, 330.0, 241.0, 336.0, 264.0, 319.0, 270.0, 325.0, 284.0, 324.0, 295.0, 319.0, 310.0, 305.0, 321.0, 305.0, 329.0, 310.0, 343.0, 310.0, 424.0, 283.0, 428.0, 279.0, 424.0, 267.0, 354.0, 269.0, 326.0, 273.0, 315.0, 284.0, 306.0, 285.0, 305.0, 280.0, 314.0, 249.0, 302.0, 222.0, 296.0, 152.0, 286.0, 130.0, 269.0, 118.0, 257.0, 117.0, 239.0, 123.0, 219.0, 113.0, 208.0, 112.0, 222.0, 132.0, 222.0, 138.0, 214.0, 148.0, 212.0, 180.0, 204.0, 184.0, 190.0, 185.0, 172.0, 178.0, 164.0, 178.0]], "area": 0, "bbox": [151.5, 336.40208807073316, 276.97434164902523, 224.900034673967]}, {"id": 11, "image_id": 10, "category_id": 1, "segmentation": [[279.0, 97.0, 263.0, 97.0, 249.0, 103.0, 241.0, 111.0, 231.0, 133.0, 223.0, 139.0, 241.0, 182.0, 227.0, 193.0, 214.0, 246.0, 219.0, 273.0, 220.0, 340.0, 257.0, 356.0, 268.0, 354.0, 318.0, 322.0, 321.0, 317.0, 321.0, 305.0, 326.0, 299.0, 389.0, 280.0, 395.0, 274.0, 394.0, 261.0, 387.0, 255.0, 384.919276719406, 250.73393606716175, 366.7862447529866, 258.1733936067161, 351.0, 264.0, 348.13303196641914, 267.9596383597031, 338.0, 253.0, 324.0, 248.0, 319.0, 224.0, 316.0, 181.0, 322.0, 160.0, 321.0, 132.0, 320.7232805941235, 119.03132063287052, 331.43945753955427, 116.38714885372936, 315.7742977074588, 118.17339360671619, 304.907329673878, 106.73393606716178]], "area": 0, "bbox": [213.50835899750777, 356.49193495504994, 181.99016824524304, 259.99193495504994]}, {"id": 12, "image_id": 11, "category_id": 1, "segmentation": [[169.0, 160.0, 168.0, 164.0, 180.0, 169.0, 197.0, 183.0, 215.0, 189.0, 221.0, 205.0, 219.0, 216.0, 202.0, 223.0, 189.0, 243.0, 183.0, 284.0, 173.0, 303.0, 173.0, 317.0, 178.0, 320.0, 201.0, 320.0, 207.0, 316.0, 211.0, 320.0, 211.0, 361.0, 258.0, 361.0, 258.0, 324.0, 261.0, 319.0, 265.0, 320.0, 266.0, 361.0, 312.0, 361.0, 315.0, 327.0, 318.0, 330.0, 325.0, 330.0, 325.0, 320.0, 333.0, 312.0, 342.0, 317.0, 345.0, 325.0, 351.0, 324.0, 352.0, 315.0, 341.0, 289.0, 342.0, 276.0, 335.0, 245.0, 318.0, 223.0, 304.0, 216.0, 300.0, 196.0, 303.0, 190.0, 321.0, 185.0, 352.0, 165.0, 343.0, 160.0, 300.0, 154.0, 284.0, 134.0, 270.0, 127.0, 251.0, 127.0, 242.0, 130.0, 220.0, 154.0]], "area": 0, "bbox": [167.51492874992732, 361.5, 184.9820131174095, 235.0]}, {"id": 13, "image_id": 12, "category_id": 1, "segmentation": [[190.0, 176.0, 190.0, 180.0, 211.0, 198.0, 230.0, 204.0, 243.0, 222.0, 214.0, 241.0, 209.0, 248.0, 190.0, 294.0, 174.0, 310.0, 175.0, 325.0, 181.0, 332.0, 188.0, 331.0, 190.0, 327.0, 197.0, 327.0, 204.0, 332.0, 216.0, 332.0, 214.0, 377.0, 221.0, 383.0, 265.0, 380.0, 265.0, 335.0, 269.0, 332.0, 272.0, 336.0, 272.0, 378.0, 275.0, 381.0, 320.0, 382.0, 320.0, 326.0, 325.0, 327.0, 329.0, 324.0, 324.0, 304.0, 331.0, 298.0, 337.0, 298.0, 347.0, 316.0, 352.0, 319.0, 357.0, 318.0, 359.0, 314.0, 323.0, 243.0, 315.0, 235.0, 305.0, 231.0, 295.0, 221.0, 295.0, 216.0, 303.0, 201.0, 321.0, 195.0, 342.0, 176.0, 341.0, 171.0, 299.0, 172.0, 283.0, 156.0, 273.0, 152.0, 260.0, 152.0, 245.0, 159.0, 231.0, 174.0, 212.0, 177.0]], "area": 0, "bbox": [173.5011074210717, 383.4988418463408, 185.94610617442828, 231.99884184634078]}], "info": "info", "licenses": "licenses"} \ No newline at end of file diff --git a/lego_labeling_samples/carema_0001/img/001.jpg b/lego_labeling_samples/carema_0001/img/001.jpg new file mode 100644 index 0000000..5acd796 Binary files /dev/null and b/lego_labeling_samples/carema_0001/img/001.jpg differ diff --git a/lego_labeling_samples/carema_0001/img/002.jpg b/lego_labeling_samples/carema_0001/img/002.jpg new file mode 100644 index 0000000..53e4a2f Binary files /dev/null and b/lego_labeling_samples/carema_0001/img/002.jpg differ diff --git a/lego_labeling_samples/carema_0001/img/003.jpg b/lego_labeling_samples/carema_0001/img/003.jpg new file mode 100644 index 0000000..4771ea2 Binary files /dev/null and b/lego_labeling_samples/carema_0001/img/003.jpg differ diff --git a/lego_labeling_samples/carema_0001/img/004.jpg b/lego_labeling_samples/carema_0001/img/004.jpg new file mode 100644 index 0000000..b8c0249 Binary files /dev/null and b/lego_labeling_samples/carema_0001/img/004.jpg differ diff --git a/lego_labeling_samples/carema_0001/img/005.jpg b/lego_labeling_samples/carema_0001/img/005.jpg new file mode 100644 index 0000000..36167ed Binary files /dev/null and b/lego_labeling_samples/carema_0001/img/005.jpg differ diff --git a/lego_labeling_samples/carema_0001/img/006.jpg b/lego_labeling_samples/carema_0001/img/006.jpg new file mode 100644 index 0000000..0237876 Binary files /dev/null and b/lego_labeling_samples/carema_0001/img/006.jpg differ diff --git a/lego_labeling_samples/carema_0001/img/007.jpg b/lego_labeling_samples/carema_0001/img/007.jpg new file mode 100644 index 0000000..237b518 Binary files /dev/null and b/lego_labeling_samples/carema_0001/img/007.jpg differ diff --git a/lego_labeling_samples/carema_0001/img/008.jpg b/lego_labeling_samples/carema_0001/img/008.jpg new file mode 100644 index 0000000..756caa8 Binary files /dev/null and b/lego_labeling_samples/carema_0001/img/008.jpg differ diff --git a/lego_labeling_samples/carema_0001/img/009.jpg b/lego_labeling_samples/carema_0001/img/009.jpg new file mode 100644 index 0000000..b937963 Binary files /dev/null and b/lego_labeling_samples/carema_0001/img/009.jpg differ diff --git a/lego_labeling_samples/carema_0001/img/010.jpg b/lego_labeling_samples/carema_0001/img/010.jpg new file mode 100644 index 0000000..e57f1d2 Binary files /dev/null and b/lego_labeling_samples/carema_0001/img/010.jpg differ diff --git a/lego_labeling_samples/carema_0001/img/011.jpg b/lego_labeling_samples/carema_0001/img/011.jpg new file mode 100644 index 0000000..cbdf6ad Binary files /dev/null and b/lego_labeling_samples/carema_0001/img/011.jpg differ diff --git a/lego_labeling_samples/carema_0001/img/012.jpg b/lego_labeling_samples/carema_0001/img/012.jpg new file mode 100644 index 0000000..e323f36 Binary files /dev/null and b/lego_labeling_samples/carema_0001/img/012.jpg differ diff --git a/lego_labeling_samples/carema_0002/gt/001.png b/lego_labeling_samples/carema_0002/gt/001.png new file mode 100644 index 0000000..a56bc89 Binary files /dev/null and b/lego_labeling_samples/carema_0002/gt/001.png differ diff --git a/lego_labeling_samples/carema_0002/gt/001_matting.png b/lego_labeling_samples/carema_0002/gt/001_matting.png new file mode 100644 index 0000000..1f3010b Binary files /dev/null and b/lego_labeling_samples/carema_0002/gt/001_matting.png differ diff --git a/lego_labeling_samples/carema_0002/gt/001_pseudo.png b/lego_labeling_samples/carema_0002/gt/001_pseudo.png new file mode 100644 index 0000000..b523945 Binary files /dev/null and b/lego_labeling_samples/carema_0002/gt/001_pseudo.png differ diff --git a/lego_labeling_samples/carema_0002/gt/002.png b/lego_labeling_samples/carema_0002/gt/002.png new file mode 100644 index 0000000..97dd7d6 Binary files /dev/null and b/lego_labeling_samples/carema_0002/gt/002.png differ diff --git a/lego_labeling_samples/carema_0002/gt/002_matting.png b/lego_labeling_samples/carema_0002/gt/002_matting.png new file mode 100644 index 0000000..8dbca24 Binary files /dev/null and b/lego_labeling_samples/carema_0002/gt/002_matting.png differ diff --git a/lego_labeling_samples/carema_0002/gt/002_pseudo.png b/lego_labeling_samples/carema_0002/gt/002_pseudo.png new file mode 100644 index 0000000..71b0b04 Binary files /dev/null and b/lego_labeling_samples/carema_0002/gt/002_pseudo.png differ diff --git a/lego_labeling_samples/carema_0002/gt/003.png b/lego_labeling_samples/carema_0002/gt/003.png new file mode 100644 index 0000000..5edada9 Binary files /dev/null and b/lego_labeling_samples/carema_0002/gt/003.png differ diff --git a/lego_labeling_samples/carema_0002/gt/003_matting.png b/lego_labeling_samples/carema_0002/gt/003_matting.png new file mode 100644 index 0000000..b98416d Binary files /dev/null and b/lego_labeling_samples/carema_0002/gt/003_matting.png differ diff --git a/lego_labeling_samples/carema_0002/gt/003_pseudo.png b/lego_labeling_samples/carema_0002/gt/003_pseudo.png new file mode 100644 index 0000000..334eddf Binary files /dev/null and b/lego_labeling_samples/carema_0002/gt/003_pseudo.png differ diff --git a/lego_labeling_samples/carema_0002/gt/004.png b/lego_labeling_samples/carema_0002/gt/004.png new file mode 100644 index 0000000..b3eb34d Binary files /dev/null and b/lego_labeling_samples/carema_0002/gt/004.png differ diff --git a/lego_labeling_samples/carema_0002/gt/004_matting.png b/lego_labeling_samples/carema_0002/gt/004_matting.png new file mode 100644 index 0000000..515f714 Binary files /dev/null and b/lego_labeling_samples/carema_0002/gt/004_matting.png differ diff --git a/lego_labeling_samples/carema_0002/gt/004_pseudo.png b/lego_labeling_samples/carema_0002/gt/004_pseudo.png new file mode 100644 index 0000000..e448cc2 Binary files /dev/null and b/lego_labeling_samples/carema_0002/gt/004_pseudo.png differ diff --git a/lego_labeling_samples/carema_0002/gt/005.png b/lego_labeling_samples/carema_0002/gt/005.png new file mode 100644 index 0000000..a16e7ec Binary files /dev/null and b/lego_labeling_samples/carema_0002/gt/005.png differ diff --git a/lego_labeling_samples/carema_0002/gt/005_matting.png b/lego_labeling_samples/carema_0002/gt/005_matting.png new file mode 100644 index 0000000..fb1678c Binary files /dev/null and b/lego_labeling_samples/carema_0002/gt/005_matting.png differ diff --git a/lego_labeling_samples/carema_0002/gt/005_pseudo.png b/lego_labeling_samples/carema_0002/gt/005_pseudo.png new file mode 100644 index 0000000..2a8a584 Binary files /dev/null and b/lego_labeling_samples/carema_0002/gt/005_pseudo.png differ diff --git a/lego_labeling_samples/carema_0002/gt/006.png b/lego_labeling_samples/carema_0002/gt/006.png new file mode 100644 index 0000000..07d5c46 Binary files /dev/null and b/lego_labeling_samples/carema_0002/gt/006.png differ diff --git a/lego_labeling_samples/carema_0002/gt/006_matting.png b/lego_labeling_samples/carema_0002/gt/006_matting.png new file mode 100644 index 0000000..3b656f3 Binary files /dev/null and b/lego_labeling_samples/carema_0002/gt/006_matting.png differ diff --git a/lego_labeling_samples/carema_0002/gt/006_pseudo.png b/lego_labeling_samples/carema_0002/gt/006_pseudo.png new file mode 100644 index 0000000..402d6de Binary files /dev/null and b/lego_labeling_samples/carema_0002/gt/006_pseudo.png differ diff --git a/lego_labeling_samples/carema_0002/gt/007.png b/lego_labeling_samples/carema_0002/gt/007.png new file mode 100644 index 0000000..c245664 Binary files /dev/null and b/lego_labeling_samples/carema_0002/gt/007.png differ diff --git a/lego_labeling_samples/carema_0002/gt/007_matting.png b/lego_labeling_samples/carema_0002/gt/007_matting.png new file mode 100644 index 0000000..5ece2ec Binary files /dev/null and b/lego_labeling_samples/carema_0002/gt/007_matting.png differ diff --git a/lego_labeling_samples/carema_0002/gt/007_pseudo.png b/lego_labeling_samples/carema_0002/gt/007_pseudo.png new file mode 100644 index 0000000..abfc609 Binary files /dev/null and b/lego_labeling_samples/carema_0002/gt/007_pseudo.png differ diff --git a/lego_labeling_samples/carema_0002/gt/008.png b/lego_labeling_samples/carema_0002/gt/008.png new file mode 100644 index 0000000..8ee809f Binary files /dev/null and b/lego_labeling_samples/carema_0002/gt/008.png differ diff --git a/lego_labeling_samples/carema_0002/gt/008_matting.png b/lego_labeling_samples/carema_0002/gt/008_matting.png new file mode 100644 index 0000000..b865c4f Binary files /dev/null and b/lego_labeling_samples/carema_0002/gt/008_matting.png differ diff --git a/lego_labeling_samples/carema_0002/gt/008_pseudo.png b/lego_labeling_samples/carema_0002/gt/008_pseudo.png new file mode 100644 index 0000000..b150ef1 Binary files /dev/null and b/lego_labeling_samples/carema_0002/gt/008_pseudo.png differ diff --git a/lego_labeling_samples/carema_0002/gt/009.png b/lego_labeling_samples/carema_0002/gt/009.png new file mode 100644 index 0000000..69e8fd2 Binary files /dev/null and b/lego_labeling_samples/carema_0002/gt/009.png differ diff --git a/lego_labeling_samples/carema_0002/gt/009_matting.png b/lego_labeling_samples/carema_0002/gt/009_matting.png new file mode 100644 index 0000000..43632fe Binary files /dev/null and b/lego_labeling_samples/carema_0002/gt/009_matting.png differ diff --git a/lego_labeling_samples/carema_0002/gt/009_pseudo.png b/lego_labeling_samples/carema_0002/gt/009_pseudo.png new file mode 100644 index 0000000..1fe5788 Binary files /dev/null and b/lego_labeling_samples/carema_0002/gt/009_pseudo.png differ diff --git a/lego_labeling_samples/carema_0002/gt/010.png b/lego_labeling_samples/carema_0002/gt/010.png new file mode 100644 index 0000000..3d6a3fd Binary files /dev/null and b/lego_labeling_samples/carema_0002/gt/010.png differ diff --git a/lego_labeling_samples/carema_0002/gt/010_matting.png b/lego_labeling_samples/carema_0002/gt/010_matting.png new file mode 100644 index 0000000..7b93282 Binary files /dev/null and b/lego_labeling_samples/carema_0002/gt/010_matting.png differ diff --git a/lego_labeling_samples/carema_0002/gt/010_pseudo.png b/lego_labeling_samples/carema_0002/gt/010_pseudo.png new file mode 100644 index 0000000..0da0707 Binary files /dev/null and b/lego_labeling_samples/carema_0002/gt/010_pseudo.png differ diff --git a/lego_labeling_samples/carema_0002/gt/011.png b/lego_labeling_samples/carema_0002/gt/011.png new file mode 100644 index 0000000..67b661c Binary files /dev/null and b/lego_labeling_samples/carema_0002/gt/011.png differ diff --git a/lego_labeling_samples/carema_0002/gt/011_matting.png b/lego_labeling_samples/carema_0002/gt/011_matting.png new file mode 100644 index 0000000..acfd755 Binary files /dev/null and b/lego_labeling_samples/carema_0002/gt/011_matting.png differ diff --git a/lego_labeling_samples/carema_0002/gt/011_pseudo.png b/lego_labeling_samples/carema_0002/gt/011_pseudo.png new file mode 100644 index 0000000..4edd08a Binary files /dev/null and b/lego_labeling_samples/carema_0002/gt/011_pseudo.png differ diff --git a/lego_labeling_samples/carema_0002/gt/012.png b/lego_labeling_samples/carema_0002/gt/012.png new file mode 100644 index 0000000..bc8f723 Binary files /dev/null and b/lego_labeling_samples/carema_0002/gt/012.png differ diff --git a/lego_labeling_samples/carema_0002/gt/012_matting.png b/lego_labeling_samples/carema_0002/gt/012_matting.png new file mode 100644 index 0000000..2d12431 Binary files /dev/null and b/lego_labeling_samples/carema_0002/gt/012_matting.png differ diff --git a/lego_labeling_samples/carema_0002/gt/012_pseudo.png b/lego_labeling_samples/carema_0002/gt/012_pseudo.png new file mode 100644 index 0000000..638a251 Binary files /dev/null and b/lego_labeling_samples/carema_0002/gt/012_pseudo.png differ diff --git a/lego_labeling_samples/carema_0002/gt/autosave_label.txt b/lego_labeling_samples/carema_0002/gt/autosave_label.txt new file mode 100644 index 0000000..3e0d602 --- /dev/null +++ b/lego_labeling_samples/carema_0002/gt/autosave_label.txt @@ -0,0 +1,2 @@ +1 space_mini_figure 67 159 36 +2 town_mini_figure 204 43 41 diff --git a/lego_labeling_samples/carema_0002/gt/coco.json b/lego_labeling_samples/carema_0002/gt/coco.json new file mode 100644 index 0000000..c10b73e --- /dev/null +++ b/lego_labeling_samples/carema_0002/gt/coco.json @@ -0,0 +1,7 @@ +{"categories": [{"id": 1, "name": "space_mini_figure", "color": [67, 159, 36], "supercategory": ""}, {"id": 2, "name": "town_mini_figure", "color": [204, 43, 41], "supercategory": ""}], + "images": [{"id": 1, "width": 512, "height": 512, "file_name": "006.jpg", "license": "", "flickr_url": "", "coco_url": "", "date_captured": ""}, {"id": 2, "width": 512, "height": 512, "file_name": "003.jpg", "license": "", "flickr_url": "", "coco_url": "", "date_captured": ""}, {"id": 3, "width": 512, "height": 512, "file_name": "010.jpg", "license": "", "flickr_url": "", "coco_url": "", "date_captured": ""}, {"id": 4, "width": 512, "height": 512, "file_name": "012.jpg", "license": "", "flickr_url": "", "coco_url": "", "date_captured": ""}, {"id": 5, "width": 512, "height": 512, "file_name": "007.jpg", "license": "", "flickr_url": "", "coco_url": "", "date_captured": ""}, {"id": 6, "width": 512, "height": 512, "file_name": "004.jpg", "license": "", "flickr_url": "", "coco_url": "", "date_captured": ""}, {"id": 7, "width": 512, "height": 512, "file_name": "005.jpg", "license": "", "flickr_url": "", "coco_url": "", "date_captured": ""}, {"id": 8, "width": 512, "height": 512, "file_name": "011.jpg", "license": "", "flickr_url": "", "coco_url": "", "date_captured": ""}, {"id": 9, "width": 512, "height": 512, "file_name": "008.jpg", "license": "", "flickr_url": "", "coco_url": "", "date_captured": ""}, {"id": 10, "width": 512, "height": 512, "file_name": "001.jpg", "license": "", "flickr_url": "", "coco_url": "", "date_captured": ""}, {"id": 11, "width": 512, "height": 512, "file_name": "002.jpg", "license": "", "flickr_url": "", "coco_url": "", "date_captured": ""}, {"id": 12, "width": 512, "height": 512, "file_name": "009.jpg", "license": "", "flickr_url": "", "coco_url": "", "date_captured": ""}], + "annotations": [ + {"id": 1, "image_id": 1, "category_id": 1, "segmentation": [[279.0, 109.0, 267.0, 115.0, 246.0, 137.0, 204.0, 137.0, 208.95963835970298, 139.17339360671616, 240.0, 165.0, 241.0, 181.0, 232.0, 181.0, 219.0, 187.0, 187.0, 218.0, 170.0, 222.0, 158.0, 230.0, 131.0, 257.0, 119.0, 280.0, 136.0, 301.0, 144.0, 304.0, 160.0, 301.0, 205.0, 265.0, 213.0, 247.0, 233.0, 234.0, 238.0, 241.0, 235.0, 269.0, 244.0, 290.0, 240.0, 310.0, 241.0, 325.0, 301.0, 335.0, 306.0, 341.0, 306.0, 377.0, 314.0, 386.0, 321.0, 385.0, 324.0, 377.0, 332.0, 314.0, 333.0, 275.0, 340.0, 269.0, 342.8266063932839, 250.90732967387788, 340.25411688731026, 233.21375524701324, 338.0820148530836, 207.47820471423964, 330.0, 192.0, 324.30642557313524, 198.05230868582495, 322.65321278656756, 171.5605424604456, 345.6651598320955, 170.5201808201485, 359.573781078463, 158.7084275104941, 373.0642557313529, 151.98805295447204, 347.1746851792057, 145.4827252179529, 325.6829189538263, 139.6964804649661, 314.0, 120.0, 305.0, 112.0]], "area": 0, "bbox": [118.55670757691728, 386.49497474683056, 254.73049485596277, 278.1657951400805]}, + {"id": 2, "image_id": 2, "category_id": 1, "segmentation": [[163.0, 176.0, 160.0, 181.0, 172.0, 185.0, 195.0, 201.0, 207.0, 203.0, 213.0, 221.0, 211.0, 230.0, 206.0, 234.0, 197.0, 235.0, 181.0, 257.0, 175.0, 286.0, 176.0, 296.0, 168.0, 310.0, 167.0, 329.0, 172.0, 331.0, 180.0, 319.0, 187.0, 319.0, 196.0, 334.0, 201.0, 325.0, 204.0, 328.0, 205.0, 366.0, 208.0, 373.0, 248.0, 371.0, 254.0, 366.0, 262.0, 370.0, 302.0, 373.0, 305.0, 368.0, 305.0, 325.0, 306.0, 331.0, 316.0, 336.0, 318.0, 325.0, 326.0, 320.0, 340.0, 333.0, 343.0, 325.0, 331.0, 301.0, 332.0, 286.0, 326.0, 259.0, 310.0, 237.0, 294.0, 229.0, 291.0, 206.0, 294.0, 202.0, 312.0, 197.0, 326.0, 186.0, 341.0, 180.0, 333.0, 174.0, 290.0, 170.0, 272.0, 147.0, 257.0, 142.0, 232.0, 146.0, 222.0, 155.0, 211.0, 172.0]], "area": 0, "bbox": [159.57125353714372, 373.4993761694389, 183.8969110516408, 231.99309648539725]}, + {"id": 3, "image_id": 2, "category_id": 1, "segmentation": [[160.0, 176.0, 158.0, 181.0, 171.0, 185.0, 195.0, 202.0, 205.0, 203.0, 209.0, 207.0, 211.0, 217.0, 208.0, 231.0, 195.0, 235.0, 181.0, 255.0, 174.0, 288.0, 175.0, 298.0, 167.0, 309.0, 166.0, 331.0, 170.0, 333.0, 178.0, 319.0, 187.0, 319.0, 190.0, 322.0, 191.0, 336.0, 196.0, 335.0, 203.0, 326.0, 206.0, 373.0, 248.0, 372.0, 251.0, 368.0, 250.0, 330.0, 254.0, 327.0, 258.0, 330.0, 257.0, 358.0, 261.0, 372.0, 303.0, 372.0, 305.0, 328.0, 307.0, 334.0, 315.0, 339.0, 317.0, 325.0, 321.0, 320.0, 328.0, 320.0, 333.0, 325.0, 335.0, 333.0, 339.0, 334.0, 343.0, 324.0, 330.0, 302.0, 331.0, 285.0, 324.0, 256.0, 309.0, 237.0, 293.0, 229.0, 290.0, 209.0, 294.0, 202.0, 309.0, 199.0, 327.0, 185.0, 341.0, 180.0, 333.0, 174.0, 289.0, 169.0, 271.0, 146.0, 260.0, 141.0, 233.0, 144.0, 221.0, 155.0, 211.0, 171.0]], "area": 0, "bbox": [157.53576165455738, 373.4998583368721, 185.92847669088528, 232.99680020420888]}, + {"id": 4, "image_id": 3, "category_id": 1, "segmentation": [[185.0, 122.0, 195.0, 147.0, 207.0, 159.0, 208.0, 175.0, 212.0, 184.0, 195.0, 217.0, 196.0, 226.0, 204.0, 236.0, 204.0, 257.0, 211.0, 303.0, 222.0, 312.0, 291.0, 341.0, 301.0, 331.0, 313.0, 310.0, 307.0, 292.0, 307.0, 284.0, 312.0, 274.0, 335.0, 270.0, 350.0, 272.0, 361.0, 254.0, 358.0, 248.0, 325.0, 236.0, 292.0, 191.0, 293.0, 187.0, 309.0, 184.0, 338.0, 165.0, 302.0, 156.0, 293.0, 129.0, 273.0, 116.0, 241.0, 116.0, 217.0, 130.0, 206.0, 129.0, 190.0, 121.0]], "area": 0, "bbox": [184.35006631638032, 341.46094333833645, 177.0971472791196, 225.96094333833645]}, {"id": 5, "image_id": 4, "category_id": 1, "segmentation": [[293.0, 105.0, 264.0, 101.0, 249.0, 109.0, 234.0, 123.0, 181.0, 119.0, 168.0, 123.0, 170.0, 128.0, 184.0, 134.0, 205.0, 156.0, 217.0, 162.0, 217.0, 179.0, 222.0, 192.0, 217.0, 198.0, 199.0, 203.0, 187.0, 217.0, 168.0, 219.0, 160.0, 227.0, 164.0, 253.0, 158.0, 267.0, 161.0, 299.0, 172.0, 305.0, 186.0, 397.0, 193.0, 406.0, 211.0, 403.0, 218.0, 387.0, 251.0, 388.0, 254.0, 385.0, 259.0, 331.0, 264.0, 327.0, 267.0, 330.0, 262.0, 387.0, 269.0, 391.0, 324.0, 396.0, 327.0, 392.0, 331.0, 361.0, 341.0, 356.0, 346.0, 335.0, 356.0, 351.0, 365.0, 351.0, 373.0, 342.0, 372.0, 330.0, 362.0, 321.0, 365.0, 282.0, 359.0, 251.0, 346.0, 221.0, 327.0, 206.0, 319.0, 188.0, 320.0, 185.0, 338.0, 185.0, 358.0, 174.0, 371.0, 173.0, 372.0, 166.0, 366.0, 161.0, 325.0, 145.0, 307.0, 114.0]], "area": 0, "bbox": [157.50218288697036, 406.49319696191606, 215.9960899921521, 305.9885075265378]}, {"id": 6, "image_id": 5, "category_id": 1, "segmentation": [[279.0, 0.0, 234.0, 159.0, 229.0, 166.0, 212.0, 170.0, 213.0, 175.0, 225.0, 182.0, 225.0, 187.0, 214.0, 206.0, 213.0, 223.0, 195.0, 272.0, 196.0, 284.0, 200.0, 292.0, 221.0, 297.0, 232.0, 286.0, 236.0, 269.0, 242.0, 263.0, 244.0, 288.0, 250.0, 300.0, 249.0, 336.0, 331.0, 346.0, 341.0, 323.0, 346.0, 317.0, 350.0, 321.0, 356.0, 321.0, 363.0, 314.0, 366.0, 302.0, 356.0, 287.0, 353.0, 251.0, 341.0, 233.0, 320.0, 211.0, 318.0, 202.0, 335.0, 195.0, 358.0, 179.0, 355.0, 175.0, 319.0, 167.0, 299.0, 146.0, 278.0, 145.0, 262.0, 154.0, 260.0, 152.0, 304.0, 2.0]], "area": 0, "bbox": [194.50172712087755, 346.4963229387753, 171.98334412919513, 347.1135871945872]}, {"id": 7, "image_id": 6, "category_id": 1, "segmentation": [[160.0, 160.0, 192.0, 180.0, 201.0, 182.0, 209.0, 201.0, 195.0, 210.0, 184.0, 224.0, 180.0, 238.0, 179.0, 261.0, 174.0, 268.0, 171.0, 289.0, 177.0, 292.0, 179.0, 285.0, 186.0, 280.0, 193.0, 284.0, 195.0, 295.0, 202.0, 291.0, 206.0, 295.0, 207.0, 326.0, 245.0, 325.0, 249.0, 289.0, 253.0, 292.0, 253.0, 322.0, 256.0, 326.0, 294.0, 325.0, 293.0, 296.0, 295.0, 294.0, 302.0, 297.0, 306.0, 283.0, 315.0, 282.0, 320.0, 293.0, 327.0, 292.0, 326.0, 281.0, 315.0, 259.0, 310.0, 228.0, 300.0, 217.0, 284.0, 207.0, 277.0, 196.0, 277.0, 185.0, 281.0, 180.0, 290.0, 179.0, 321.0, 160.0, 307.0, 155.0, 278.0, 152.0, 263.0, 134.0, 249.0, 127.0, 225.0, 130.0, 205.0, 153.0]], "area": 0, "bbox": [159.31100137799586, 326.4998269596764, 168.186945225238, 199.99596589803323]}, {"id": 8, "image_id": 7, "category_id": 1, "segmentation": [[173.0, 150.0, 196.0, 169.0, 212.0, 174.0, 229.0, 199.0, 224.0, 206.0, 204.0, 211.0, 195.0, 222.0, 185.0, 247.0, 181.0, 277.0, 173.0, 293.0, 173.0, 304.0, 177.0, 306.0, 183.0, 295.0, 192.0, 291.0, 198.0, 297.0, 198.0, 312.0, 211.0, 312.0, 214.0, 345.0, 232.0, 341.0, 251.0, 343.0, 255.0, 336.0, 253.0, 300.0, 259.0, 297.0, 263.0, 305.0, 264.0, 340.0, 269.0, 343.0, 280.0, 339.0, 295.0, 340.0, 303.0, 345.0, 304.0, 357.0, 308.0, 361.0, 320.0, 361.0, 325.0, 342.0, 328.0, 277.0, 337.0, 263.0, 336.0, 230.0, 326.0, 211.0, 294.0, 202.0, 286.0, 190.0, 292.0, 176.0, 327.0, 150.0, 329.0, 145.0, 285.0, 141.0, 270.0, 124.0, 253.0, 119.0, 234.0, 124.0, 216.0, 145.0]], "area": 0, "bbox": [172.2960784006883, 361.5, 165.2036921888844, 242.98353726863132]}, {"id": 9, "image_id": 8, "category_id": 1, "segmentation": [[182.0, 211.0, 185.0, 215.0, 201.0, 214.0, 218.0, 220.0, 217.0, 227.0, 209.0, 235.0, 200.0, 258.0, 200.0, 269.0, 208.0, 298.0, 206.0, 321.0, 211.0, 328.0, 233.0, 326.0, 260.0, 316.0, 310.0, 304.0, 323.0, 297.0, 327.0, 301.0, 328.0, 321.0, 331.0, 324.0, 340.0, 321.0, 346.0, 287.0, 353.0, 279.0, 353.0, 269.0, 322.0, 225.0, 296.0, 198.0, 301.0, 189.0, 320.0, 176.0, 333.0, 171.0, 331.0, 168.0, 286.0, 168.0, 264.0, 154.0, 247.0, 155.0, 233.0, 162.0, 225.0, 170.0, 216.0, 189.0]], "area": 0, "bbox": [181.3, 328.49794660323386, 172.2, 174.99708378982135]}, {"id": 10, "image_id": 9, "category_id": 1, "segmentation": [[152.0, 189.0, 152.0, 197.0, 157.0, 206.0, 155.0, 289.0, 167.0, 291.0, 172.0, 288.0, 176.0, 222.0, 186.0, 210.0, 215.0, 208.0, 218.0, 211.0, 218.0, 232.0, 228.0, 247.0, 228.0, 253.0, 220.0, 261.0, 221.0, 273.0, 243.0, 295.0, 247.0, 303.0, 236.0, 324.0, 236.0, 330.0, 241.0, 336.0, 264.0, 319.0, 270.0, 325.0, 284.0, 324.0, 295.0, 319.0, 310.0, 305.0, 321.0, 305.0, 329.0, 310.0, 343.0, 310.0, 424.0, 283.0, 428.0, 279.0, 424.0, 267.0, 354.0, 269.0, 326.0, 273.0, 315.0, 284.0, 306.0, 285.0, 305.0, 280.0, 314.0, 249.0, 302.0, 222.0, 296.0, 152.0, 286.0, 130.0, 269.0, 118.0, 257.0, 117.0, 239.0, 123.0, 219.0, 113.0, 208.0, 112.0, 222.0, 132.0, 222.0, 138.0, 214.0, 148.0, 212.0, 180.0, 204.0, 184.0, 190.0, 185.0, 172.0, 178.0, 164.0, 178.0]], "area": 0, "bbox": [151.5, 336.40208807073316, 276.97434164902523, 224.900034673967]}, {"id": 11, "image_id": 10, "category_id": 1, "segmentation": [[279.0, 97.0, 263.0, 97.0, 249.0, 103.0, 241.0, 111.0, 231.0, 133.0, 223.0, 139.0, 241.0, 182.0, 227.0, 193.0, 214.0, 246.0, 219.0, 273.0, 220.0, 340.0, 257.0, 356.0, 268.0, 354.0, 318.0, 322.0, 321.0, 317.0, 321.0, 305.0, 326.0, 299.0, 389.0, 280.0, 395.0, 274.0, 394.0, 261.0, 387.0, 255.0, 384.919276719406, 250.73393606716175, 366.7862447529866, 258.1733936067161, 351.0, 264.0, 348.13303196641914, 267.9596383597031, 338.0, 253.0, 324.0, 248.0, 319.0, 224.0, 316.0, 181.0, 322.0, 160.0, 321.0, 132.0, 320.7232805941235, 119.03132063287052, 331.43945753955427, 116.38714885372936, 315.7742977074588, 118.17339360671619, 304.907329673878, 106.73393606716178]], "area": 0, "bbox": [213.50835899750777, 356.49193495504994, 181.99016824524304, 259.99193495504994]}, {"id": 12, "image_id": 11, "category_id": 1, "segmentation": [[169.0, 160.0, 168.0, 164.0, 180.0, 169.0, 197.0, 183.0, 215.0, 189.0, 221.0, 205.0, 219.0, 216.0, 202.0, 223.0, 189.0, 243.0, 183.0, 284.0, 173.0, 303.0, 173.0, 317.0, 178.0, 320.0, 201.0, 320.0, 207.0, 316.0, 211.0, 320.0, 211.0, 361.0, 258.0, 361.0, 258.0, 324.0, 261.0, 319.0, 265.0, 320.0, 266.0, 361.0, 312.0, 361.0, 315.0, 327.0, 318.0, 330.0, 325.0, 330.0, 325.0, 320.0, 333.0, 312.0, 342.0, 317.0, 345.0, 325.0, 351.0, 324.0, 352.0, 315.0, 341.0, 289.0, 342.0, 276.0, 335.0, 245.0, 318.0, 223.0, 304.0, 216.0, 300.0, 196.0, 303.0, 190.0, 321.0, 185.0, 352.0, 165.0, 343.0, 160.0, 300.0, 154.0, 284.0, 134.0, 270.0, 127.0, 251.0, 127.0, 242.0, 130.0, 220.0, 154.0]], "area": 0, "bbox": [167.51492874992732, 361.5, 184.9820131174095, 235.0]}, {"id": 13, "image_id": 12, "category_id": 1, "segmentation": [[190.0, 176.0, 190.0, 180.0, 211.0, 198.0, 230.0, 204.0, 243.0, 222.0, 214.0, 241.0, 209.0, 248.0, 190.0, 294.0, 174.0, 310.0, 175.0, 325.0, 181.0, 332.0, 188.0, 331.0, 190.0, 327.0, 197.0, 327.0, 204.0, 332.0, 216.0, 332.0, 214.0, 377.0, 221.0, 383.0, 265.0, 380.0, 265.0, 335.0, 269.0, 332.0, 272.0, 336.0, 272.0, 378.0, 275.0, 381.0, 320.0, 382.0, 320.0, 326.0, 325.0, 327.0, 329.0, 324.0, 324.0, 304.0, 331.0, 298.0, 337.0, 298.0, 347.0, 316.0, 352.0, 319.0, 357.0, 318.0, 359.0, 314.0, 323.0, 243.0, 315.0, 235.0, 305.0, 231.0, 295.0, 221.0, 295.0, 216.0, 303.0, 201.0, 321.0, 195.0, 342.0, 176.0, 341.0, 171.0, 299.0, 172.0, 283.0, 156.0, 273.0, 152.0, 260.0, 152.0, 245.0, 159.0, 231.0, 174.0, 212.0, 177.0]], "area": 0, "bbox": [173.5011074210717, 383.4988418463408, 185.94610617442828, 231.99884184634078]}], "info": "info", "licenses": "licenses"} \ No newline at end of file diff --git a/lego_labeling_samples/carema_0002/img/001.jpg b/lego_labeling_samples/carema_0002/img/001.jpg new file mode 100644 index 0000000..5acd796 Binary files /dev/null and b/lego_labeling_samples/carema_0002/img/001.jpg differ diff --git a/lego_labeling_samples/carema_0002/img/002.jpg b/lego_labeling_samples/carema_0002/img/002.jpg new file mode 100644 index 0000000..53e4a2f Binary files /dev/null and b/lego_labeling_samples/carema_0002/img/002.jpg differ diff --git a/lego_labeling_samples/carema_0002/img/003.jpg b/lego_labeling_samples/carema_0002/img/003.jpg new file mode 100644 index 0000000..4771ea2 Binary files /dev/null and b/lego_labeling_samples/carema_0002/img/003.jpg differ diff --git a/lego_labeling_samples/carema_0002/img/004.jpg b/lego_labeling_samples/carema_0002/img/004.jpg new file mode 100644 index 0000000..b8c0249 Binary files /dev/null and b/lego_labeling_samples/carema_0002/img/004.jpg differ diff --git a/lego_labeling_samples/carema_0002/img/005.jpg b/lego_labeling_samples/carema_0002/img/005.jpg new file mode 100644 index 0000000..36167ed Binary files /dev/null and b/lego_labeling_samples/carema_0002/img/005.jpg differ diff --git a/lego_labeling_samples/carema_0002/img/006.jpg b/lego_labeling_samples/carema_0002/img/006.jpg new file mode 100644 index 0000000..0237876 Binary files /dev/null and b/lego_labeling_samples/carema_0002/img/006.jpg differ diff --git a/lego_labeling_samples/carema_0002/img/007.jpg b/lego_labeling_samples/carema_0002/img/007.jpg new file mode 100644 index 0000000..237b518 Binary files /dev/null and b/lego_labeling_samples/carema_0002/img/007.jpg differ diff --git a/lego_labeling_samples/carema_0002/img/008.jpg b/lego_labeling_samples/carema_0002/img/008.jpg new file mode 100644 index 0000000..756caa8 Binary files /dev/null and b/lego_labeling_samples/carema_0002/img/008.jpg differ diff --git a/lego_labeling_samples/carema_0002/img/009.jpg b/lego_labeling_samples/carema_0002/img/009.jpg new file mode 100644 index 0000000..b937963 Binary files /dev/null and b/lego_labeling_samples/carema_0002/img/009.jpg differ diff --git a/lego_labeling_samples/carema_0002/img/010.jpg b/lego_labeling_samples/carema_0002/img/010.jpg new file mode 100644 index 0000000..e57f1d2 Binary files /dev/null and b/lego_labeling_samples/carema_0002/img/010.jpg differ diff --git a/lego_labeling_samples/carema_0002/img/011.jpg b/lego_labeling_samples/carema_0002/img/011.jpg new file mode 100644 index 0000000..cbdf6ad Binary files /dev/null and b/lego_labeling_samples/carema_0002/img/011.jpg differ diff --git a/lego_labeling_samples/carema_0002/img/012.jpg b/lego_labeling_samples/carema_0002/img/012.jpg new file mode 100644 index 0000000..e323f36 Binary files /dev/null and b/lego_labeling_samples/carema_0002/img/012.jpg differ diff --git a/tools/eiseg2coco_MOT.py b/tools/eiseg2coco_MOT.py new file mode 100644 index 0000000..8ec1105 --- /dev/null +++ b/tools/eiseg2coco_MOT.py @@ -0,0 +1,213 @@ +import argparse +import glob +import json +import os +import shutil +# follow openMMDet path processing patterns +from pathlib import Path +import numpy as np +import PIL.ImageDraw + +from sklearn.model_selection import train_test_split + +from mtmc.config import settings + +useQtBottomLeft = True # should be Qt TopLeft + +""" +Add MOT configuration, with following fields: + +By now the given data has no occlusion issues. And all labeling are visible. +Considering that we may need inference result of detection, set conf=1 to match inference +set ignore = 0 and visibility_ratio = 1 to use all annotations +carema_id and frame_id are extracted automatically from folder and filename + +In MTMC we may need to consider how multiple caremas associate together. +So we split dataset after merging all annotations and image. +This requires a refactor of the current annotation structures. +""" + +class MyEncoder(json.JSONEncoder): + def default(self, val): + if isinstance(val, np.integer): + return int(val) + elif isinstance(val, np.floating): + return float(val) + elif isinstance(val, np.ndarray): + return val.tolist() + else: + return super(MyEncoder, self).default(val) + + +def merge_coco_annotation(coco_annotation_paths): + data_coco = { + "images": [], + "annotations": [] + } + coco_image_id = 0 + imgs_info_indexed_by_img_name = {} + imgs_info_indexed_by_img_idx = {} + + # print('Generating dataset from:', coco_annotation_path) + for coco_annotation_path in coco_annotation_paths: + with open(coco_annotation_path) as f: + data = json.load(f) + # fetch categroies, info and licenses fields + # data_coco["categories"] = data["categories"] + # data_coco["info"] = data["info"] + # data_coco["licenses"] = data["licenses"] + # fetch images and annotations + camera_id = coco_annotation_path.split("/")[-3] + for idx, img_info in enumerate(data['images']): + # For image, make sure you update id and filename + img_name = img_info["file_name"] + img_info["old_id"] = img_info["id"] + img_name = camera_id + "_" + img_name + img_info["file_name"] = img_name + img_info["id"] = coco_image_id + if imgs_info_indexed_by_img_name.get(img_name, None) is None: + imgs_info_indexed_by_img_name[img_name] = {} + imgs_info_indexed_by_img_name[img_name]["img_info"] = img_info + imgs_info_indexed_by_img_idx[img_info["id"]] = img_info + for record in data["annotations"]: + if "img_id_update" not in record and record["image_id"] == img_info["old_id"]: + record["image_id"] = img_info["id"] + record["img_id_update"] = True + coco_image_id += 1 + + for annotation in data['annotations']: + # if you update image_id, then reflect in annotations + # update image_id and file_name and camera_id + # rest is fine. Do whatever you want + # need post visualization on this + img_idx = annotation["image_id"] + img_info = imgs_info_indexed_by_img_idx[img_idx] + img_name = img_info["file_name"] + print("img:",img_name) + # annotation polygon + epsilon = 1e-5 + if 'iscrowd' not in annotation: + annotation['iscrowd'] = 0 + if annotation['area'] < epsilon: + annotation['area'] = annotation['bbox'][2] * annotation['bbox'][3] + if useQtBottomLeft: + annotation['bbox'][1] = annotation['bbox'][1] - annotation['bbox'][3] + + annotation["carema_id"] = camera_id + annotation["frame_id"] = img_name.split("_")[-1].split(".")[0] + annotation["conf"] = 1 + annotation["ignore"] = 0 + annotation["visibility_ratio"] = 1 + imgs_info_indexed_by_img_name[img_name]["img_annotation"] = annotation + return imgs_info_indexed_by_img_name + +def save_coco_annotations(dataset, imgs_info_indexed_by_img_name): + data_coco = { + "images": [], + "annotations": [] + } + for img_path in dataset: + img_file = Path(img_path) + img_name = img_path.split("/")[-3] + "_" + img_file.name + img_info_with_annotation = imgs_info_indexed_by_img_name[img_name] + print(img_name) + data_coco["images"].append(img_info_with_annotation["img_info"]) + data_coco["annotations"].append(img_info_with_annotation["img_annotation"]) + return data_coco + + +def main(): + parser = argparse.ArgumentParser( + formatter_class=argparse.ArgumentDefaultsHelpFormatter) + parser.add_argument('--dataset_type', default='eiseg', help='type of dataset is supported is EISeg') + parser.add_argument('--json_input_dir', default='%s/data/%s' % (settings.PROJECT_ROOT, settings.TEST_DATASET), + help='input annotation directory') + parser.add_argument('--image_input_dir', default='%s/data/%s' % (settings.PROJECT_ROOT, settings.TEST_DATASET), + help='image directory') + parser.add_argument('--output_dir', + default='%s/data/MOT_labeling' % (settings.PROJECT_ROOT), + help='output dataset directory') + + args = parser.parse_args() + try: + assert args.dataset_type in ['coco', 'eiseg', 'labelme'] + except AssertionError as e: + print('Only coco and EISeg dataset is supported for the moment!') + return -1 + + coco_annotation_dir = args.json_input_dir + camera_available = [] + for root, dirs, files in os.walk(coco_annotation_dir, topdown=True): + camera_available.append(dirs) + break + camera_available = camera_available[0] + + + assert (settings.TRAIN_PROPORTION > 0 and settings.TRAIN_PROPORTION < 1) + assert (settings.TRAIN_PROPORTION + settings.VALIDATION_PROPORTION == 1) + + setattr(settings, 'coco_dataset_path', args.output_dir) + train_path = os.path.join(settings.coco_dataset_path, "train") + val_path = os.path.join(settings.coco_dataset_path, "val") + annotation_path = os.path.join(settings.coco_dataset_path, "annotations") + if not os.path.exists(settings.coco_dataset_path): + os.makedirs(train_path) + os.makedirs(val_path) + os.makedirs(annotation_path) + + setattr(settings, 'DATA_DIR', args.image_input_dir) + comb_images = [] + for camera in camera_available: + raw_images = list(glob.iglob(os.path.join(settings.DATA_DIR, camera, "img", "*.jpg"))) + raw_images = sorted(raw_images, key=lambda x: int(os.path.split(x)[1].split('.')[0])) + comb_images += raw_images + + train_dataset, val_dataset = train_test_split(comb_images, train_size=settings.TRAIN_PROPORTION) + # Disk task : move images and annotation files to coco files hierarchy + # TODO: new_name: add carema id to current filename update image_id and filename accordingly + for img_path in train_dataset: + img_name = Path(img_path).name # similar to boot api + img_name_to = img_path.split("/")[-3] + "_" + img_name + shutil.copyfile( + img_path, + os.path.join(train_path, img_name_to) + ) + + for img_path in val_dataset: + img_name = Path(img_path).name # similar to boot api + img_name_to = img_path.split("/")[-3] + "_" + img_name + shutil.copyfile( + img_path, + os.path.join(val_path, img_name_to) + ) + + coco_annotation_files = [] + for camera in camera_available: + # carema -> carema_0001 + coco_annotation_file = os.path.join(coco_annotation_dir, camera, "gt", "coco.json") + coco_annotation_files.append(coco_annotation_file) + + dataset = merge_coco_annotation(coco_annotation_files) + train_coco_col = save_coco_annotations(train_dataset, dataset) + val_coco_col = save_coco_annotations(val_dataset, dataset) + + train_json_path = os.path.join(annotation_path, "train.json") + json.dump( + train_coco_col, + open(train_json_path, 'w'), + indent=4, + cls=MyEncoder + ) + + val_json_path = os.path.join(annotation_path, "val.json") + json.dump( + val_coco_col, + open(val_json_path, 'w'), + indent=4, + cls=MyEncoder + ) + return 0 + +if __name__ == '__main__': + import sys + sys.exit(main())