SWHL/RapidOCR
Updated
• 29
Error code: DatasetGenerationError
Exception: ArrowNotImplementedError
Message: Cannot write struct type 'flags' with no child field to Parquet. Consider adding a dummy child field.
Traceback: Traceback (most recent call last):
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1766, in _prepare_split_single
writer.write(example, key)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 500, in write
self.write_examples_on_file()
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 458, in write_examples_on_file
self.write_batch(batch_examples=batch_examples)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 572, in write_batch
self.write_table(pa_table, writer_batch_size)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 583, in write_table
self._build_writer(inferred_schema=pa_table.schema)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 404, in _build_writer
self.pa_writer = self._WRITER_CLASS(self.stream, schema)
File "/src/services/worker/.venv/lib/python3.9/site-packages/pyarrow/parquet/core.py", line 1010, in __init__
self.writer = _parquet.ParquetWriter(
File "pyarrow/_parquet.pyx", line 2157, in pyarrow._parquet.ParquetWriter.__cinit__
File "pyarrow/error.pxi", line 154, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 91, in pyarrow.lib.check_status
pyarrow.lib.ArrowNotImplementedError: Cannot write struct type 'flags' with no child field to Parquet. Consider adding a dummy child field.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1775, in _prepare_split_single
num_examples, num_bytes = writer.finalize()
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 599, in finalize
self.write_examples_on_file()
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 458, in write_examples_on_file
self.write_batch(batch_examples=batch_examples)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 572, in write_batch
self.write_table(pa_table, writer_batch_size)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 583, in write_table
self._build_writer(inferred_schema=pa_table.schema)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 404, in _build_writer
self.pa_writer = self._WRITER_CLASS(self.stream, schema)
File "/src/services/worker/.venv/lib/python3.9/site-packages/pyarrow/parquet/core.py", line 1010, in __init__
self.writer = _parquet.ParquetWriter(
File "pyarrow/_parquet.pyx", line 2157, in pyarrow._parquet.ParquetWriter.__cinit__
File "pyarrow/error.pxi", line 154, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 91, in pyarrow.lib.check_status
pyarrow.lib.ArrowNotImplementedError: Cannot write struct type 'flags' with no child field to Parquet. Consider adding a dummy child field.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1529, in compute_config_parquet_and_info_response
parquet_operations = convert_to_parquet(builder)
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1154, in convert_to_parquet
builder.download_and_prepare(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1027, in download_and_prepare
self._download_and_prepare(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1789, in _download_and_prepare
super()._download_and_prepare(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1122, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1627, in _prepare_split
for job_id, done, content in self._prepare_split_single(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1784, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.exceptions.DatasetGenerationError: An error occurred while generating the datasetNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
image image | version string | flags dict | shapes list | imageData null | imageHeight int64 | imageWidth int64 |
|---|---|---|---|---|---|---|
5.4.1 | {} | [
{
"label": "text",
"points": [
[
85.21649484536078,
44.48969072164948
],
[
165.62886597938143,
71.29381443298962
]
],
"group_id": null,
"description": "",
"shape_type": "rectangle",
"flags": {},
"mask": null
},
{
"label"... | null | 323 | 606 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
109.53389830508475,
44.27966101694915
],
[
361.228813559322,
75.63559322033899
]
],
"group_id": null,
"description": "",
"shape_type": "rectangle",
"flags": {},
"mask": null
},
{
"label":... | null | 325 | 500 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
101.58433734939757,
88.81325301204828
],
[
170.8614457831325,
112.30722891566273
]
],
"group_id": null,
"description": "",
"shape_type": "rectangle",
"flags": {},
"mask": null
},
{
"label... | null | 521 | 711 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
239.909090909091,
268.18181818181813
],
[
334.4545454545455,
301.81818181818176
]
],
"group_id": null,
"description": "",
"shape_type": "rectangle",
"flags": {},
"mask": null
},
{
"label"... | null | 800 | 1,068 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
140.60975609756096,
90.65040650406507
],
[
308.9024390243903,
84.95934959349597
],
[
307.6829268292683,
106.91056910569108
],
[
140.60975609756096,
110.97560975609758
... | null | 300 | 480 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
224.36305732484075,
307.96178343949043
],
[
598.8853503184713,
253.82165605095543
],
[
605.891719745223,
282.484076433121
],
[
223.72611464968153,
334.7133757961784
... | null | 500 | 750 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
245.16129032258064,
165.2073732718894
],
[
366.8202764976959,
167.97235023041478
],
[
363.59447004608296,
190.09216589861754
],
[
241.01382488479263,
188.70967741935485
... | null | 600 | 800 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
12.963855421686763,
16.042168674698814
],
[
53.686746987951814,
30.981927710843394
]
],
"group_id": null,
"description": "",
"shape_type": "rectangle",
"flags": {},
"mask": null
},
{
"lab... | null | 181 | 284 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
237.6630434782609,
91.63043478260869
],
[
523.5326086956522,
72.60869565217394
],
[
526.7934782608696,
96.52173913043481
],
[
240.92391304347828,
116.08695652173907
... | null | 430 | 640 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
162.5536480686695,
96.78111587982835
],
[
331.6523605150214,
92.06008583690988
],
[
329.93562231759654,
115.23605150214593
],
[
163.8412017167382,
117.38197424892707
... | null | 400 | 750 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
7.160305343511446,
7.511450381679424
],
[
333.1145038167939,
29.648854961832058
]
],
"group_id": null,
"description": "",
"shape_type": "rectangle",
"flags": {},
"mask": null
},
{
"label"... | null | 528 | 896 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
294.35714285714295,
250.3571428571429
],
[
665.7857142857143,
254.6428571428571
],
[
660.0714285714287,
347.5
],
[
288.6428571428572,
333.2142857142858
]
],
... | null | 1,255 | 1,673 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
0.1630434782609067,
3.0434782608695627
],
[
157.22826086956525,
47.06521739130437
]
],
"group_id": null,
"description": "",
"shape_type": "rectangle",
"flags": {},
"mask": null
},
{
"labe... | null | 480 | 640 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
1135.2564102564104,
6.615384615384755
],
[
1499,
107.79758035391852
]
],
"group_id": null,
"description": "",
"shape_type": "rectangle",
"flags": {},
"mask": null
},
{
"label": "text",
... | null | 844 | 1,500 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
257.1739130434784,
173.13043478260875
],
[
387.60869565217405,
223.13043478260875
]
],
"group_id": null,
"description": "",
"shape_type": "rectangle",
"flags": {},
"mask": null
},
{
"labe... | null | 1,268 | 2,560 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
1339.2307692307693,
14.730769230769283
],
[
1791.5384615384614,
128.5769230769231
]
],
"group_id": null,
"description": "",
"shape_type": "rectangle",
"flags": {},
"mask": null
},
{
"labe... | null | 1,011 | 1,800 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
270.4324324324323,
115.83783783783792
],
[
565.027027027027,
213.13513513513544
]
],
"group_id": null,
"description": "",
"shape_type": "rectangle",
"flags": {},
"mask": null
},
{
"label"... | null | 1,556 | 3,176 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
158.31521739130437,
287.8260869565217
],
[
288.20652173913044,
259.0217391304348
],
[
297.9891304347826,
307.9347826086957
],
[
176.25000000000003,
357.39130434782606
... | null | 480 | 640 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
391.4673913043478,
134.86956521739137
],
[
453.9673913043478,
122.91304347826087
],
[
457.2282608695652,
133.23913043478262
],
[
394.1847826086956,
146.28260869565224
... | null | 298 | 640 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
120.15306122448979,
136.9897959183674
],
[
286.98979591836735,
188.0102040816327
],
[
272.7040816326531,
232.9081632653061
],
[
106.37755102040816,
179.33673469387753
... | null | 375 | 600 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
125,
172.13157894736844
],
[
433.4210526315789,
177.3947368421052
],
[
433.4210526315789,
266.86842105263156
],
[
119.73684210526315,
254.76315789473676
]
],
... | null | 379 | 620 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
323.5119047619048,
546.8571428571429
],
[
441.9642857142857,
552.2142857142858
],
[
438.9880952380953,
584.3571428571429
],
[
324.1071428571429,
579
]
],
"... | null | 933 | 700 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
200.04411764705887,
251.5
],
[
305.9264705882353,
255.91176470588232
],
[
298.57352941176475,
289.7352941176471
],
[
197.1029411764706,
282.38235294117646
]
],... | null | 553 | 867 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
37.41545893719804,
37.671497584541044
],
[
123.88888888888886,
43.95169082125602
],
[
122.92270531400963,
62.3091787439613
],
[
36.93236714975843,
55.54589371980671
... | null | 228 | 570 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
80.84112149532709,
149.24299065420553
],
[
488.7850467289719,
75.41121495327099
],
[
483.1775700934579,
189.42990654205607
],
[
82.71028037383178,
279.14953271028037
... | null | 334 | 550 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
96.11475409836068,
156.1147540983607
],
[
189.22950819672133,
163.00000000000003
],
[
185.62295081967213,
197.0983606557377
],
[
92.18032786885249,
184.6393442622951
... | null | 286 | 386 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
156.8452380952381,
457.85714285714283
],
[
181.25,
457.26190476190476
],
[
195.53571428571428,
457.26190476190476
],
[
196.13095238095238,
469.1666666666667
],
... | null | 930 | 700 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
196.32203389830505,
154.27966101694915
],
[
287.8474576271187,
154.7033898305084
],
[
286.5762711864407,
179.7033898305084
],
[
193.3559322033898,
177.16101694915255
... | null | 295 | 499 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
166.07142857142858,
102.55102040816331
],
[
401.2755102040816,
195.91836734693874
],
[
384.94897959183675,
278.06122448979596
],
[
151.7857142857143,
171.93877551020415
... | null | 350 | 600 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
110.5128205128205,
438.46153846153834
],
[
269.48717948717945,
382.6923076923076
],
[
269.48717948717945,
404.48717948717945
],
[
116.28205128205126,
470.51282051282044
... | null | 500 | 755 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
37.41545893719804,
47.81642512077292
],
[
135.4830917874396,
45.40096618357484
],
[
139.83091787439614,
65.20772946859904
],
[
37.89855072463765,
67.14009661835746
... | null | 228 | 570 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
66.58163265306122,
26.530612244897952
],
[
178.31632653061226,
61.22448979591837
]
],
"group_id": null,
"description": null,
"shape_type": "rectangle",
"flags": {},
"mask": null
},
{
"lab... | null | 450 | 600 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
269.5566502463054,
187.4507389162561
],
[
343.94088669950736,
187.94334975369463
],
[
343.44827586206895,
208.63300492610836
],
[
268.57142857142856,
206.66256157635473
... | null | 435 | 580 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
270.2282608695652,
305.34782608695656
],
[
335.44565217391306,
295.5652173913043
],
[
342.5108695652174,
319.4782608695652
],
[
276.20652173913044,
329.2608695652173
... | null | 477 | 641 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
213.42857142857142,
196.71428571428567
],
[
430.57142857142856,
255
],
[
414,
368.1428571428571
],
[
200.85714285714286,
290.42857142857144
]
],
"group_id"... | null | 542 | 672 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
192.2276995305164,
166.0915492957747
],
[
361.2417840375587,
168.9084507042254
],
[
358.8943661971831,
210.69248826291084
],
[
190.34976525821594,
206.93661971830988
... | null | 335 | 553 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
288.6942675159235,
213.0573248407644
],
[
374.0445859872611,
212.42038216560513
],
[
453.6624203821656,
213.69426751592357
],
[
453.6624203821656,
248.0891719745223
... | null | 300 | 750 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
252.551724137931,
577.9310344827586
],
[
368.41379310344826,
580
],
[
367.7241379310345,
615.1724137931035
],
[
251.1724137931034,
613.7931034482758
]
],
"... | null | 1,280 | 812 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
227.00282485875704,
386.72316384180795
],
[
315.70338983050846,
390.1129943502825
],
[
313.44350282485874,
417.2316384180791
],
[
227.00282485875704,
410.45197740112997
... | null | 500 | 667 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
1023.1190476190476,
814.6031746031747
],
[
1215.1825396825398,
803.4920634920634
],
[
1216.7698412698412,
857.4603174603174
],
[
1031.0555555555554,
871.746031746032
... | null | 1,280 | 1,851 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
397.68367346938777,
269.0102040816327
],
[
470.1326530612245,
255.74489795918367
],
[
474.7244897959184,
280.7448979591837
],
[
402.2755102040816,
294.52040816326536
... | null | 387 | 602 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
212.11956521739134,
258.4347826086957
],
[
405.05434782608694,
258.4347826086957
],
[
401.79347826086956,
305.1739130434782
],
[
212.11956521739134,
304.08695652173907
... | null | 381 | 640 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
503.5714285714285,
594
],
[
802.1428571428571,
595.4285714285713
],
[
796.4285714285713,
674
],
[
500.71428571428567,
672.5714285714284
]
],
"group_id": nu... | null | 1,048 | 1,680 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
210.3813559322034,
177.94915254237287
],
[
256.5677966101695,
177.94915254237287
],
[
257.83898305084745,
190.6610169491526
],
[
211.22881355932205,
189.81355932203388
... | null | 372 | 500 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
115.9239130434783,
193.8695652173913
],
[
215.38043478260872,
206.3695652173913
],
[
210.48913043478265,
240.60869565217394
],
[
110.48913043478264,
223.2173913043478
... | null | 391 | 640 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
308.85869565217394,
265.3260869565217
],
[
356.6847826086956,
265.3260869565217
],
[
353.42391304347825,
287.0652173913043
],
[
307.7717391304348,
285.9782608695652
... | null | 410 | 640 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
517.6178861788618,
272.83333333333337
],
[
709.4878048780488,
241.12601626016271
],
[
715.178861788618,
289.0934959349595
],
[
522.4959349593496,
327.30487804878044
... | null | 479 | 958 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
194.01724137931032,
157.5344827586207
],
[
238.5,
156.84482758620692
],
[
238.8448275862069,
165.12068965517238
],
[
192.29310344827584,
165.4655172413793
]
],... | null | 253 | 407 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
373.5119047619048,
302.38095238095235
],
[
503.2738095238096,
301.7857142857143
],
[
502.67857142857144,
336.90476190476187
],
[
377.08333333333337,
337.49999999999994
... | null | 700 | 700 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
208.96323529411762,
106.36764705882354
],
[
281.0220588235294,
110.41176470588238
],
[
279.5514705882353,
128.05882352941177
],
[
206.38970588235293,
125.11764705882354
... | null | 287 | 433 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
309.48870056497174,
257.909604519774
],
[
437.7372881355932,
244.3502824858757
],
[
439.4322033898305,
278.24858757062145
],
[
309.48870056497174,
290.1129943502825
... | null | 500 | 667 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
544.1284403669725,
394.862385321101
],
[
715.6880733944954,
415.96330275229354
]
],
"group_id": null,
"description": "",
"shape_type": "rectangle",
"flags": {},
"mask": null
},
{
"label":... | null | 720 | 1,080 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
396.5619469026548,
301.61061946902663
],
[
506.7389380530973,
318.424778761062
]
],
"group_id": null,
"description": "",
"shape_type": "rectangle",
"flags": {},
"mask": null
},
{
"label":... | null | 328 | 521 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
240.77380952380952,
463.5238095238095
],
[
383.03571428571433,
498.04761904761904
]
],
"group_id": null,
"description": "",
"shape_type": "rectangle",
"flags": {},
"mask": null
}
] | null | 933 | 700 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
235.96938775510205,
39.79591836734693
],
[
478.3163265306123,
56.122448979591866
]
],
"group_id": null,
"description": "",
"shape_type": "rectangle",
"flags": {},
"mask": null
},
{
"label... | null | 450 | 600 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
206.5677966101695,
230.6440677966101
],
[
278.17796610169495,
250.13559322033893
]
],
"group_id": null,
"description": "",
"shape_type": "rectangle",
"flags": {},
"mask": null
}
] | null | 324 | 500 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
271.39830508474574,
321.135593220339
],
[
293.00847457627117,
332.1525423728814
]
],
"group_id": null,
"description": "",
"shape_type": "rectangle",
"flags": {},
"mask": null
},
{
"label"... | null | 666 | 500 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
152.1551724137931,
231.60919540229887
],
[
524.5689655172414,
181.60919540229887
],
[
529.7413793103448,
225.86206896551724
],
[
156.17816091954023,
278.735632183908
... | null | 900 | 675 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
7.9661016949152526,
42.84745762711867
],
[
42.88135593220339,
59.11864406779665
]
],
"group_id": null,
"description": "",
"shape_type": "rectangle",
"flags": {},
"mask": null
},
{
"label"... | null | 264 | 400 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
135.71428571428572,
86.90476190476193
],
[
178.57142857142858,
105.95238095238096
]
],
"group_id": null,
"description": "",
"shape_type": "rectangle",
"flags": {},
"mask": null
},
{
"labe... | null | 450 | 800 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
33.266129032258064,
40.225806451612925
],
[
75.60483870967741,
59.17741935483872
]
],
"group_id": null,
"description": "",
"shape_type": "rectangle",
"flags": {},
"mask": null
},
{
"label... | null | 299 | 475 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
538.9024390243903,
190
],
[
1257.1951219512196,
283.9024390243901
]
],
"group_id": null,
"description": "",
"shape_type": "rectangle",
"flags": {},
"mask": null
},
{
"label": "text",
... | null | 1,080 | 1,440 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
78.97368421052639,
91.29824561403507
],
[
164.93859649122814,
125.50877192982455
]
],
"group_id": null,
"description": "",
"shape_type": "rectangle",
"flags": {},
"mask": null
},
{
"label... | null | 644 | 1,029 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
436.3945578231292,
70.77551020408157
],
[
509.1836734693877,
87.78231292517
]
],
"group_id": null,
"description": "",
"shape_type": "rectangle",
"flags": {},
"mask": null
},
{
"label": "t... | null | 464 | 800 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
281.74311926605503,
94.18807339449529
],
[
337.70642201834863,
117.12385321100908
]
],
"group_id": null,
"description": "",
"shape_type": "rectangle",
"flags": {},
"mask": null
},
{
"labe... | null | 937 | 1,080 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
38.00781250000003,
44
],
[
80.97656250000003,
63.53125
]
],
"group_id": null,
"description": "",
"shape_type": "rectangle",
"flags": {},
"mask": null
},
{
"label": "text",
"points": [... | null | 288 | 460 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
482.8035714285714,
82.78571428571433
],
[
551.5535714285713,
109.57142857142856
]
],
"group_id": null,
"description": "",
"shape_type": "rectangle",
"flags": {},
"mask": null
},
{
"label"... | null | 712 | 1,054 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
473.7748344370861,
80.63907284768212
],
[
718.8079470198675,
105.14238410596025
]
],
"group_id": null,
"description": "",
"shape_type": "rectangle",
"flags": {},
"mask": null
},
{
"label"... | null | 1,103 | 780 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
189.54081632653063,
137.97959183673476
],
[
411.98979591836735,
165.530612244898
]
],
"group_id": null,
"description": "",
"shape_type": "rectangle",
"flags": {},
"mask": null
},
{
"label... | null | 428 | 600 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
55.06896551724138,
24.20689655172407
],
[
299.89655172413796,
56.96551724137919
]
],
"group_id": null,
"description": "",
"shape_type": "rectangle",
"flags": {},
"mask": null
},
{
"label"... | null | 626 | 1,011 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
330.93220338983053,
161.92372881355925
],
[
675,
211.07627118644064
]
],
"group_id": null,
"description": "",
"shape_type": "rectangle",
"flags": {},
"mask": null
},
{
"label": "text",
... | null | 873 | 1,000 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
380.6594202898552,
140.8840579710145
],
[
1342.9782608695652,
242.33333333333348
]
],
"group_id": null,
"description": "",
"shape_type": "rectangle",
"flags": {},
"mask": null
},
{
"label... | null | 1,218 | 1,699 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
5.738636363636377,
4.999999999999943
],
[
155.73863636363637,
48.18181818181813
]
],
"group_id": null,
"description": "",
"shape_type": "rectangle",
"flags": {},
"mask": null
},
{
"label"... | null | 510 | 670 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
95.94306049822065,
55.361209964412865
],
[
170.3202846975089,
70.6637010676157
]
],
"group_id": null,
"description": "",
"shape_type": "rectangle",
"flags": {},
"mask": null
},
{
"label":... | null | 273 | 420 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
2.582524271844629,
2.475728155339766
],
[
331.7087378640776,
34.514563106796004
]
],
"group_id": null,
"description": "",
"shape_type": "rectangle",
"flags": {},
"mask": null
},
{
"label"... | null | 770 | 1,144 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
2.7090395480225755,
2.5423728813559023
],
[
159.20621468926552,
47.740112994350284
]
],
"group_id": null,
"description": "",
"shape_type": "rectangle",
"flags": {},
"mask": null
},
{
"lab... | null | 500 | 667 | |
5.4.1 | {} | [
{
"label": "text",
"points": [
[
974.2391304347826,
3.9130434782608745
],
[
1275.3260869565217,
89.78260869565213
]
],
"group_id": null,
"description": "",
"shape_type": "rectangle",
"flags": {},
"mask": null
},
{
"label... | null | 960 | 1,280 |
可用于自定义数据集下的模型验证和性能评估等。
from datasets import load_dataset
dataset = load_dataset("SWHL/text_det_test_dataset")
test_data = dataset['test']
print(test_data)
数据来源于网络,如侵删。
数据集使用labelme标注,json格式差别在于imagePath字段改写为了file_name字段。其余相同。
数据集标注为json格式,示例如下:
{
"version": "4.5.6",
"flags": {},
"shapes": [
{
"label": "",
"points": [
[
486.0,
751.0
],
[
588.0,
751.0
],
[
588.0,
779.0
],
[
486.0,
779.0
]
],
"group_id": null,
"shape_type": "polygon",
"flags": {}
},
{
"label": "",
"points": [
[
385.1382113821138,
686.6178861788618
],
[
592.4552845528456,
688.2439024390244
],
[
589.2032520325204,
739.4634146341464
],
[
386.7642276422764,
737.0243902439024
]
],
"group_id": null,
"shape_type": "polygon",
"flags": {}
}
],
"file_name": "19.png",
"imageData": "xxxxxx",
"imageHeight": 784,
"imageWidth": 613
}