labelme
labelme copied to clipboard
labelme2voc.py Skipping shape
Provide environment information
python 3.7 labelme 5.0.1 lxml 4.9.1 PyQt5 5.15.7 PyQt5-Qt5 5.15.2 PyQt5-sip 12.11.0
What OS are you using?
win11
Describe the Bug
Skipping shape
{
"version": "5.0.1",
"flags": {},
"shapes": [
{
"label": "LS",
"points": [
[
587.6430205949656,
356.2929061784897
],
[
600.0,
338.9016018306636
],
[
611.8993135011442,
329.0617848970252
],
[
621.7391304347826,
323.56979405034326
],
[
629.2906178489702,
324.0274599542334
],
[
623.5697940503433,
332.49427917620136
],
[
613.7299771167048,
338.44393592677346
],
[
604.8054919908467,
349.4279176201373
],
[
596.5675057208238,
358.5812356979405
],
[
590.6178489702517,
362.70022883295195
],
[
586.7276887871853,
360.18306636155603
]
],
"group_id": null,
"shape_type": "polygon",
"flags": {}
},
{
"label": "LS",
"points": [
[
632.5842696629213,
373.83627608346706
],
[
634.9919743178169,
366.13162118780093
],
[
635.3130016051364,
358.1059390048154
],
[
641.8940609951845,
347.19101123595505
],
[
652.3274478330658,
336.7576243980738
],
[
655.2166934189405,
344.30176565008026
],
[
654.414125200642,
352.16693418940605
],
[
652.8089887640449,
360.5136436597111
],
[
647.8330658105939,
370.94703049759227
],
[
644.943820224719,
383.62760834670945
],
[
640.4494382022472,
392.6163723916533
],
[
642.6966292134831,
398.07383627608345
],
[
645.1043338683787,
399.8394863563403
],
[
653.290529695024,
401.9261637239165
],
[
659.7110754414125,
402.24719101123594
],
[
672.8731942215088,
394.8635634028892
],
[
668.860353130016,
391.9743178170144
],
[
664.0449438202247,
386.99839486356336
],
[
658.7479935794543,
381.2199036918138
],
[
661.3162118780095,
372.3916532905297
],
[
669.1813804173354,
368.0577849117175
],
[
678.4911717495987,
363.72391653290526
],
[
682.5040128410915,
357.1428571428571
],
[
682.3434991974317,
344.4622792937399
],
[
688.9245585874799,
336.5971107544141
],
[
701.605136436597,
330.0160513643659
],
[
710.4333868378811,
329.0529695024077
],
[
714.1252006420546,
334.83146067415726
],
[
715.0882825040128,
339.8073836276083
],
[
702.7287319422151,
346.5489566613162
],
[
698.0738362760834,
356.01926163723914
],
[
686.0353130016051,
364.3659711075441
],
[
677.6886035313001,
378.6516853932584
],
[
677.207062600321,
384.430176565008
],
[
678.9727126805778,
387.80096308186194
],
[
680.8988764044943,
391.17174959871585
],
[
684.430176565008,
388.7640449438202
],
[
691.1717495987158,
388.28250401284106
],
[
695.6661316211878,
389.56661316211876
],
[
694.2215088282503,
403.53130016051364
],
[
677.5280898876404,
410.9149277688603
],
[
665.008025682183,
415.2487961476725
],
[
651.8459069020867,
418.61958266452643
],
[
643.0176565008026,
418.29855537720704
],
[
633.868378812199,
411.23595505617976
],
[
627.6083467094703,
398.2343499197431
],
[
627.2873194221509,
388.6035313001605
]
],
"group_id": null,
"shape_type": "polygon",
"flags": {}
},
{
"label": "LS",
"points": [
[
698.876404494382,
442.6966292134831
],
[
706.4205457463884,
433.22632423756016
],
[
708.8282504012841,
428.7319422150883
],
[
716.5329052969502,
420.2247191011236
],
[
721.0272873194222,
417.9775280898876
],
[
723.9165329052969,
423.7560192616372
],
[
722.4719101123595,
429.3739967897271
],
[
716.69341894061,
439.8073836276083
],
[
710.4333868378811,
445.5858747993579
],
[
700.0,
451.0433386837881
],
[
698.5553772070625,
447.51203852327444
]
],
"group_id": null,
"shape_type": "polygon",
"flags": {}
}
],
"imagePath": "01.jpg",
"imageData": ".................There was an error creating your Issue: body is too long (maximum is 65536 characters).............................",
"imageHeight": 853,
"imageWidth": 1280
}
Expected Behavior
No response
To Reproduce
python labelme2voc.py 0907_1280 0907_1280_VOC --labels labels.txt
Creating dataset: 0907_1280_VOC
class_names: ('_background_', 'HeiBai', 'HEIHEI', 'LS', 'MOHU', 'TUao', 'Xian')
Saved class_names: 0907_1280_VOC\class_names.txt
Generating dataset from: 0907_1280\01.json
Skipping shape: label=LS, shape_type=polygon
Skipping shape: label=LS, shape_type=polygon
Skipping shape: label=LS, shape_type=polygon
Generating dataset from: 0907_1280\02.json
Skipping shape: label=LS, shape_type=polygon
Skipping shape: label=LS, shape_type=polygon
Skipping shape: label=LS, shape_type=polygon
Generating dataset from: 0907_1280\03.json
Skipping shape: label=HeiBai, shape_type=polygon
Generating dataset from: 0907_1280\04.json
Skipping shape: label=MOHU, shape_type=polygon
Skipping shape: label=HEIHEI, shape_type=polygon
Generating dataset from: 0907_1280\05.json
Skipping shape: label=HEIHEI, shape_type=polygon
Generating dataset from: 0907_1280\06.json
Skipping shape: label=TUao, shape_type=polygon
Generating dataset from: 0907_1280\1.json
Skipping shape: label=LS, shape_type=polygon
Skipping shape: label=LS, shape_type=polygon
Skipping shape: label=LS, shape_type=polygon
Skipping shape: label=LS, shape_type=polygon
Generating dataset from: 0907_1280\2.json
Skipping shape: label=LS, shape_type=polygon
Skipping shape: label=LS, shape_type=polygon
Skipping shape: label=LS, shape_type=polygon
Generating dataset from: 0907_1280\3.json
Skipping shape: label=LS, shape_type=polygon
Skipping shape: label=LS, shape_type=polygon
Skipping shape: label=LS, shape_type=polygon
Generating dataset from: 0907_1280\4.json
Skipping shape: label=HeiBai, shape_type=polygon
Generating dataset from: 0907_1280\5.json
Skipping shape: label=HeiBai, shape_type=polygon
Generating dataset from: 0907_1280\6.json
Skipping shape: label=MOHU, shape_type=polygon
Skipping shape: label=Xian, shape_type=polygon
Generating dataset from: 0907_1280\7.json
Skipping shape: label=HEIHEI, shape_type=polygon
Generating dataset from: 0907_1280\8.json
Skipping shape: label=TUao, shape_type=polygon
Generating dataset from: 0907_1280\Image_20220902104545329.json
Skipping shape: label=LS, shape_type=polygon
Skipping shape: label=LS, shape_type=polygon
Skipping shape: label=LS, shape_type=polygon
Skipping shape: label=LS, shape_type=polygon
Skipping shape: label=LS, shape_type=polygon
Skipping shape: label=LS, shape_type=polygon
Generating dataset from: 0907_1280\Image_20220902104602904.json
Skipping shape: label=LS, shape_type=polygon
Skipping shape: label=LS, shape_type=polygon
Skipping shape: label=LS, shape_type=polygon
Skipping shape: label=LS, shape_type=polygon
Skipping shape: label=LS, shape_type=polygon
Skipping shape: label=LS, shape_type=polygon
Generating dataset from: 0907_1280\Image_20220902104728310.json
Skipping shape: label=HeiBai, shape_type=polygon
Generating dataset from: 0907_1280\Image_20220902104744766.json
Skipping shape: label=HeiBai, shape_type=polygon
Generating dataset from: 0907_1280\Image_20220902104820313.json
Skipping shape: label=MOHU, shape_type=polygon
Skipping shape: label=Xian, shape_type=polygon
Generating dataset from: 0907_1280\Image_20220902104824417.json
Skipping shape: label=MOHU, shape_type=polygon
Skipping shape: label=Xian, shape_type=polygon
Generating dataset from: 0907_1280\Image_20220902104845817.json
Skipping shape: label=HEIHEI, shape_type=polygon
Generating dataset from: 0907_1280\Image_20220902105639548.json
Skipping shape: label=TUao, shape_type=polygon
python labelme2voc.py data_annotated data_dataset_voc --labels labels.txt
Creating dataset: data_dataset_voc
class_names: ('_background_', 'aeroplane', 'bicycle', 'bird', 'boat', 'bottle', 'bus', 'car', 'cat', 'chair', 'cow', 'diningtable', 'dog', 'horse', 'motorbike', 'person', 'potted plant', 'sheep', 'sofa', 'train', 'tv/monitor')
Saved class_names: data_dataset_voc\class_names.txt
Generating dataset from: data_annotated\2011_000003.json
[WARNING] label_file:load:102 - This JSON file (data_annotated\2011_000003.json) may be incompatible with current labelme. version in file: 4.0.0, current version: 5.0.1
Generating dataset from: data_annotated\2011_000006.json
[WARNING] label_file:load:102 - This JSON file (data_annotated\2011_000006.json) may be incompatible with current labelme. version in file: 4.0.0, current version: 5.0.1
Generating dataset from: data_annotated\2011_000025.json
[WARNING] label_file:load:102 - This JSON file (data_annotated\2011_000025.json) may be incompatible with current labelme. version in file: 4.0.0, current version: 5.0.1
The demonstration data is normal