PaddleX
PaddleX copied to clipboard
labelme 转换 PascalVOC 有问题
paddlepaddle-gpu 2.1.3.post112 paddleslim 2.1.1 paddlex 2.0.0
paddlex --data_conversion --source labelme --to PascalVOC --pics ./pics --annotations ./annotations --save_dir ./converted_dataset_PascalVOC
{
"version": "4.5.13",
"flags": {},
"shapes": [
{
"label": "FAN",
"points": [
[
1310.9375,
139.84375
],
[
1415.625,
143.75
],
[
1425.390625,
164.0625
],
[
1429.6875,
239.453125
],
[
1431.640625,
277.734375
],
[
1444.921875,
292.1875
],
[
1464.0625,
294.140625
],
[
1520.3125,
298.4375
],
[
1528.125,
309.765625
],
[
1530.078125,
330.46875
],
[
1527.34375,
342.96875
],
[
1528.90625,
352.734375
],
[
1531.640625,
2093.75
],
[
1516.796875,
2109.765625
],
[
1494.140625,
2110.15625
],
[
1333.59375,
2114.0625
],
[
1323.4375,
2125.0
],
[
1306.640625,
2108.203125
],
[
1288.671875,
2101.953125
],
[
1162.890625,
2098.4375
],
[
1157.03125,
295.3125
],
[
1274.609375,
293.359375
],
[
1303.125,
287.109375
],
[
1320.703125,
266.796875
],
[
1327.34375,
239.84375
],
[
1328.125,
184.765625
],
[
1323.4375,
155.46875
]
],
"group_id": null,
"shape_type": "polygon",
"flags": {}
}
],
"imagePath": "123.jpg",
"imageData": "............",
"imageHeight": 2304,
"imageWidth": 2664
}
转换之后 只会返回这些,并没有返回我要的坐标
<?xml version="1.0" encoding="utf-8"?>
<annotation>
<folder>JPEGImages</folder>
<filename>123_R.jpg</filename>
<size>
<width>2664</width>
<height>2304</height>
<depth>3</depth>
</size>
</annotation>
试下paddlex 1.3.11是否正常转
一样不行,我怀疑是图片太大了 "imageHeight": 2304, "imageWidth": 2664
要不用PaddleX的源码调试下你的数据集?看下代码走到哪步没有执行下去