lh9171338/ULSD
Keypoint Detection • Updated
image imagewidth (px) 250 500 | image_file stringlengths 12 12 | image_size listlengths 2 2 | lines listlengths 5 300 |
|---|---|---|---|
00030043.png | [
500,
375
] | [
[
[
164.16184997558594,
26.806358337402344
],
[
169.25286865234375,
119.97126770019531
]
],
[
[
169.25286865234375,
119.97126770019531
],
[
278.03466796875,
119.29190826416016
]
],
[
[
278.03466796875,
119.291908... | |
00030077.png | [
500,
375
] | [
[
[
499.7041320800781,
298.4467468261719
],
[
458.2840270996094,
267.6775207519531
]
],
[
[
458.2840270996094,
267.6775207519531
],
[
457.1005859375,
305.5473327636719
]
],
[
[
457.1005859375,
305.5473327636719
... | |
00030078.png | [
500,
375
] | [
[
[
62.4277458190918,
1.9508670568466187
],
[
138.15028381347656,
15.823698997497559
]
],
[
[
204.04624938964844,
17.557804107666016
],
[
205.2023162841797,
187.5
]
],
[
[
138.15028381347656,
15.823698997497559
... | |
00030159.png | [
500,
375
] | [
[
[
23.69942283630371,
1.9508670568466187
],
[
48.643409729003906,
246.22093200683594
]
],
[
[
48.643409729003906,
246.22093200683594
],
[
8.720930099487305,
253.1976776123047
]
],
[
[
9.745682716369629,
269.1305... | |
00030210.png | [
375,
500
] | [
[
[
0.9615384340286255,
60.769229888916016
],
[
304.0384521484375,
100
]
],
[
[
304.0384521484375,
100
],
[
313.26922607421875,
94.61538696289062
]
],
[
[
313.26922607421875,
94.61538696289062
],
[
... | |
00030254.png | [
500,
464
] | [
[
[
0.3571428656578064,
79.14286041259766
],
[
116.07142639160156,
102.71428680419922
]
],
[
[
1.0714285373687744,
121.28571319580078
],
[
118.21428680419922,
138.42857360839844
]
],
[
[
0,
174.4311981201172
... | |
00030315.png | [
500,
375
] | [
[
[
0.5780346989631653,
32.58670425415039
],
[
68.20809173583984,
59.176300048828125
]
],
[
[
68.20809173583984,
59.176300048828125
],
[
72.25433349609375,
252.8179168701172
]
],
[
[
72.25433349609375,
252.817916... | |
00030330.png | [
375,
500
] | [
[
[
89.42308044433594,
0.7692307829856873
],
[
232.5,
50
]
],
[
[
232.5,
50
],
[
313.26922607421875,
23.846153259277344
]
],
[
[
232.5,
50
],
[
235.180419921875,
322.9381408691406
]
],
... | |
00030699.png | [
500,
375
] | [
[
[
0.19379845261573792,
5.1356587409973145
],
[
167.24806213378906,
52.03488540649414
]
],
[
[
167.24806213378906,
52.03488540649414
],
[
166.47398376464844,
203.10693359375
]
],
[
[
166.47398376464844,
203.1069... | |
00030700.png | [
500,
375
] | [
[
[
1.1560693979263306,
51.66184997558594
],
[
16.18497085571289,
53.39595413208008
]
],
[
[
16.18497085571289,
53.39595413208008
],
[
23.69942283630371,
252.8179168701172
]
],
[
[
23.69942283630371,
252.81791687... | |
00030710.png | [
500,
400
] | [
[
[
4.211305141448975,
124.06407928466797
],
[
276.65289306640625,
160.12396240234375
]
],
[
[
276.65289306640625,
160.12396240234375
],
[
276.43353271484375,
268.5085144042969
]
],
[
[
276.65289306640625,
160.12... | |
00030725.png | [
500,
375
] | [
[
[
1.1560693979263306,
49.9277458190918
],
[
193.06358337402344,
77.67340850830078
]
],
[
[
193.06358337402344,
77.67340850830078
],
[
235.4166717529297,
77.08333587646484
]
],
[
[
193.06358337402344,
77.6734085... | |
00030727.png | [
500,
375
] | [
[
[
173.410400390625,
0.7947976589202881
],
[
5.780346870422363,
9.465317726135254
]
],
[
[
5.780346870422363,
9.465317726135254
],
[
10.404623985290527,
41.83525848388672
]
],
[
[
10.404623985290527,
41.83525848... | |
00030732.png | [
500,
375
] | [
[
[
108.09248352050781,
1.3728324174880981
],
[
435.2601013183594,
40.67919158935547
]
],
[
[
435.2601013183594,
40.67919158935547
],
[
499.9999084472656,
28.185529708862305
]
],
[
[
354.33526611328125,
15.823698... | |
00030950.png | [
500,
375
] | [
[
[
34.68207931518555,
0.7947976589202881
],
[
230.05780029296875,
28.540462493896484
]
],
[
[
230.05780029296875,
28.540462493896484
],
[
275.1445007324219,
12.355491638183594
]
],
[
[
275.1445007324219,
12.3554... | |
00030952.png | [
500,
375
] | [
[
[
0.5780346989631653,
39.52312088012695
],
[
113.87283325195312,
51.08381652832031
]
],
[
[
113.87283325195312,
51.08381652832031
],
[
119.07514190673828,
149.92774963378906
]
],
[
[
113.87283325195312,
51.0838... | |
00030956.png | [
500,
375
] | [
[
[
82.36434173583984,
0.4844961166381836
],
[
90.11627960205078,
329.55426025390625
]
],
[
[
57.803466796875,
1.9508670568466187
],
[
74.22480773925781,
22.965116500854492
]
],
[
[
74.22480773925781,
22.96511650... | |
00030998.png | [
500,
375
] | [
[
[
0.5780346989631653,
34.89884567260742
],
[
35.83815002441406,
44.14739990234375
]
],
[
[
35.83815002441406,
44.14739990234375
],
[
268.2080993652344,
14.089595794677734
]
],
[
[
268.2080993652344,
14.08959579... | |
00031141.png | [
500,
400
] | [
[
[
0.9259259104728699,
33.33333206176758
],
[
151.543212890625,
109.25926208496094
]
],
[
[
151.543212890625,
109.25926208496094
],
[
440.4320983886719,
106.79012298583984
]
],
[
[
440.4320983886719,
106.7901229... | |
00031328.png | [
500,
333
] | [
[
[
28.443878173828125,
76.95918273925781
],
[
41.924400329589844,
311.3453674316406
]
],
[
[
41.924400329589844,
311.3453674316406
],
[
120.27491760253906,
275.26287841796875
]
],
[
[
120.27491760253906,
275.262... | |
00031487.png | [
500,
334
] | [
[
[
37.129310607910156,
208.28448486328125
],
[
311.2069091796875,
172.34483337402344
]
],
[
[
37.129310607910156,
208.28448486328125
],
[
364.6551818847656,
333.03448486328125
]
],
[
[
31.20689582824707,
113.379... | |
00031495.png | [
500,
333
] | [
[
[
344.6666564941406,
296.0555419921875
],
[
460.6965026855469,
297.0970153808594
]
],
[
[
460.6965026855469,
297.0970153808594
],
[
459.7015075683594,
229.43531799316406
]
],
[
[
459.7015075683594,
229.43531799... | |
00031498.png | [
500,
333
] | [
[
[
220.0617218017578,
223.59877014160156
],
[
175.55555725097656,
243.1666717529297
]
],
[
[
175.55555725097656,
243.1666717529297
],
[
218.82716369628906,
255.69752502441406
]
],
[
[
218.82716369628906,
255.697... | |
00031499.png | [
500,
333
] | [
[
[
96.73539733886719,
61.517181396484375
],
[
98.08673095703125,
110.37754821777344
]
],
[
[
96.73539733886719,
61.517181396484375
],
[
20.103092193603516,
2.0670104026794434
]
],
[
[
264.8888854980469,
229.8333... | |
00031539.png | [
500,
333
] | [
[
[
60.65291976928711,
122.34192657470703
],
[
165.17857360839844,
126.37095642089844
]
],
[
[
165.17857360839844,
126.37095642089844
],
[
196.04811096191406,
121.31099700927734
]
],
[
[
165.17857360839844,
126.3... | |
00031560.png | [
500,
375
] | [
[
[
10.201148986816406,
1.2931034564971924
],
[
34.05172348022461,
57.04022979736328
]
],
[
[
34.05172348022461,
57.04022979736328
],
[
271.0674133300781,
102.38764190673828
]
],
[
[
271.0674133300781,
102.387641... | |
00031582.png | [
500,
333
] | [
[
[
113.57388305664062,
47.427833557128906
],
[
380,
48.94444274902344
]
],
[
[
191.6625213623047,
215.91165161132812
],
[
206.53846740722656,
200.73077392578125
]
],
[
[
316.5384521484375,
215.73077392578125
... | |
00031599.png | [
500,
333
] | [
[
[
93.77777862548828,
43.16666793823242
],
[
150.6666717529297,
44.5
]
],
[
[
150.6666717529297,
44.5
],
[
150.6666717529297,
93.38888549804688
]
],
[
[
150.6666717529297,
93.38888549804688
],
[
94... | |
00031600.png | [
500,
333
] | [
[
[
39.668365478515625,
61.14285659790039
],
[
38.13775634765625,
239.96939086914062
]
],
[
[
0,
245.99526977539062
],
[
427.14776611328125,
183.1666717529297
]
],
[
[
411.683837890625,
181.79209899902344
],
... | |
00031614.png | [
500,
333
] | [
[
[
102.58345794677734,
0.8449419736862183
],
[
131.81065368652344,
36.5
]
],
[
[
131.81065368652344,
36.5
],
[
333.9267578125,
35.173301696777344
]
],
[
[
333.9267578125,
35.173301696777344
],
[
35... |
This is the Wireframe dataset hosted on Hugging Face Hub.
Wireframe dataset with image annotations including line segments.
The dataset is stored as jsonl files (train/metadata.jsonl, test/metadata.jsonl) and images.
Number of samples:
python3 -m pip install huggingface-hub
huggingface-cli download --repo-type dataset lh9171338/Wireframe --local-dir ./
git lfs install
git clone https://huggingface.co/datasets/lh9171338/Wireframe
from datasets import load_dataset
ds = load_dataset("lh9171338/Wireframe")
# or load from `refs/convert/parquet` for acceleration
# from datasets import load_dataset, Features, Image, Sequence, Value
# features = Features({
# "image": Image(),
# "image_file": Value("string"),
# "image_size": Sequence(Value("int32")),
# "lines": Sequence(Sequence(Sequence(Value("float32")))),
# })
# ds = load_dataset("lh9171338/Wireframe", features=features, revision="refs/convert/parquet")
print(ds)
# DatasetDict({
# train: Dataset({
# features: ['image', 'image_file', 'image_size', 'lines'],
# num_rows: 5000
# })
# test: Dataset({
# features: ['image', 'image_file', 'image_size', 'lines'],
# num_rows: 462
# })
# })
print(ds["train"][0].keys())
# dict_keys(['image', 'image_file', 'image_size', 'lines'])
from datasets import load_dataset
ds = load_dataset("imagefolder", data_dir=".")
print(ds)
# DatasetDict({
# train: Dataset({
# features: ['image', 'image_file', 'image_size', 'lines'],
# num_rows: 5000
# })
# test: Dataset({
# features: ['image', 'image_file', 'image_size', 'lines'],
# num_rows: 462
# })
# })
print(ds["train"][0].keys())
# dict_keys(['image', 'image_file', 'image_size', 'lines'])
import jsonlines
with jsonlines.open("train/metadata.jsonl") as reader:
infos = list(reader)
print(infos[0].keys())
# dict_keys(['file_name', 'image_file', 'image_size', 'lines'])