coco-annotator
coco-annotator copied to clipboard
importing coco not working?
Hi I am trying to import my coco annotations and it seems to hang. Under tasks I see:
[29-09-2021 13:32:26] [INFO] ===== Importing Categories =====
[29-09-2021 13:32:26] [INFO] Importing 1 categories, 3092 images, and 2484 annotations
[29-09-2021 13:32:26] [INFO] Beginning Import
and thats it, nothing else happens. I don't see any errors, is there any way for me to debug?
I have created a database and placed my images into the corresponding folder. I did not scan for images as the images are in the coco annotations.
Make sure your json like this
{
"licenses":[
{
"id":1,
"url":"http://creativecommons.org/licenses/by-nc-nd/4.0"
}
],
"info":{
"contributor":"OOO",
"date_created":"OOO",
"description":"OOO",
"url":"OOO",
"version":"0.1",
"year":2021
},
"images":[
{
"id":4,
"dataset_id":1,
"category_ids":[
],
"path":"/datasets/\u9ede\u77f3\u9f4b\u5716\u7247/0002\u8f15\u5165\u91cd\u5730.jpg",
"width":1762,
"height":1478,
"file_name":"0002\u8f15\u5165\u91cd\u5730.jpg",
"num_annotations":0,
"metadata":{
},
"deleted":false,
"milliseconds":0,
"events":[
],
"regenerate_thumbnail":false
}
],
"categories":[
{
"id":1,
"name":"\u4eba",
"supercategory":"",
"color":"#a60f2f",
}
],
"annotations":[
{
"id":2,
"image_id":4,
"category_id":1,
"segmentation":[
[
784.5,
1075.6,
771.7,
1078.4,
757.0,
1078.4,
723.9,
1073.3,
707.2,
1062.2,
701.7,
1053.6,
698.7,
1046.5,
697.6,
1038.6,
697.6,
1023.9,
699.4,
1013.8,
704.3,
1005.1,
706.4,
991.4,
712.3,
982.1,
715.0,
969.1,
722.1,
959.3,
723.5,
949.7,
727.3,
941.8,
733.1,
935.4,
740.5,
930.9,
741.8,
915.9,
746.6,
907.3,
753.9,
900.7,
763.0,
896.8,
765.3,
883.3,
771.7,
873.7,
777.8,
869.7,
784.0,
861.5,
807.3,
846.1,
832.5,
837.5,
836.8,
834.6,
848.5,
832.3,
859.8,
834.5,
874.6,
830.7,
886.0,
830.7,
899.3,
833.7,
909.5,
842.0,
918.5,
853.8,
921.5,
860.9,
932.3,
930.9,
931.3,
964.9,
923.2,
988.9,
917.6,
997.2,
909.7,
1029.0,
903.2,
1037.7,
893.9,
1043.6,
882.7,
1045.8,
868.5,
1041.7,
864.8,
1043.5,
855.8,
1053.4,
843.1,
1058.5,
820.7,
1063.7,
808.3,
1062.8,
799.5,
1068.0,
790.7,
1070.1
]
],
"area":42288,
"bbox":[
698.0,
831.0,
234.0,
247.0
],
"iscrowd":false,
"isbbox":false,
"color":"#4142db",
"metadata":{
}
}
]
}