Dataset Viewer
Auto-converted to Parquet Duplicate
image
image
signal_id
int64
signal
string
go
bool
x1
int64
y1
int64
x2
int64
y2
int64
x1_norm
float64
y1_norm
float64
x2_norm
float64
y2_norm
float64
heading_deg
float64
heading
string
blocked
bool
1
green
true
1,842
1,194
1
2,266
0.4568
0.3948
0.0002
0.7493
59.79
right
false
3
countdown_blank
false
1,801
1,102
2,583
3,024
0.4467
0.3644
0.6406
1
-22.14
left
false
0
red
false
2,485
1,533
4,032
3,005
0.6163
0.5069
1
0.9937
-46.42
left
true
3
countdown_blank
false
2,097
1,312
2,122
3,024
0.5201
0.4339
0.5263
1
-0.84
ahead
false
3
countdown_blank
false
2,588
914
1
2,304
0.6419
0.3022
0.0002
0.7619
61.75
right
false
0
red
false
1,973
1,486
1,998
3,024
0.4893
0.4914
0.4955
1
-0.93
ahead
false
2
countdown_green
false
1,883
1,065
1,351
3,024
0.467
0.3522
0.3351
1
15.19
right
false
0
red
false
2,342
1,375
42
3,024
0.5809
0.4547
0.0104
1
54.36
right
true
4
none
false
897
1,156
4,032
2,533
0.2225
0.3823
1
0.8376
-66.29
left
true
3
countdown_blank
false
2,103
1,437
386
3,024
0.5216
0.4752
0.0957
1
47.25
right
false
0
red
false
2,193
1,426
2,663
3,024
0.5439
0.4716
0.6605
1
-16.39
left
false
0
red
false
2,173
1,298
2,408
3,024
0.5389
0.4292
0.5972
1
-7.75
ahead
false
3
countdown_blank
false
2,032
1,278
2,089
3,024
0.504
0.4226
0.5181
1
-1.87
ahead
false
0
red
false
2,171
1,175
578
3,024
0.5384
0.3886
0.1434
1
40.75
right
false
0
red
false
3,746
1,523
3,564
3,024
0.9291
0.5036
0.8839
1
6.91
ahead
true
4
none
false
2,016
1,136
383
2,650
0.5
0.3757
0.095
0.8763
47.17
right
false
3
countdown_blank
false
1,968
1,486
227
3,024
0.4881
0.4914
0.0563
1
48.54
right
false
0
red
false
2,213
1,509
1,631
3,024
0.5489
0.499
0.4045
1
21.01
right
false
2
countdown_green
false
2,569
1,023
3,076
3,024
0.6372
0.3383
0.7629
1
-14.22
ahead
false
3
countdown_blank
false
3,148
2,643
3,240
3,024
0.7808
0.874
0.8036
1
-13.58
ahead
true
1
green
true
3,020
1,531
1,791
3,024
0.749
0.5063
0.4442
1
39.46
right
false
3
countdown_blank
false
2,201
1,694
2,795
3,024
0.5459
0.5602
0.6932
1
-24.07
left
true
3
countdown_blank
false
2,159
1,019
1,688
3,024
0.5355
0.337
0.4187
1
13.22
ahead
false
0
red
false
2,976
1,375
1
2,726
0.7381
0.4547
0.0002
0.9015
65.58
right
false
4
none
false
1,817
1,409
1,064
2,583
0.4506
0.4659
0.2639
0.8542
32.68
right
false
0
red
false
2,242
1,326
3,314
3,024
0.5561
0.4385
0.8219
1
-32.27
left
false
1
green
true
2,199
1,394
1,212
3,024
0.5454
0.461
0.3006
1
31.2
right
false
3
countdown_blank
false
1,875
1,248
1,862
3,024
0.465
0.4127
0.4618
1
0.42
ahead
false
2
countdown_green
false
1,401
1,132
4,032
2,927
0.3475
0.3743
1
0.9679
-55.7
left
false
1
green
true
2,079
1,620
1,999
3,024
0.5156
0.5357
0.4958
1
3.26
ahead
false
1
green
true
2,294
1,311
206
3,024
0.5689
0.4335
0.0511
1
50.63
right
true
0
red
false
1,926
1,511
1
2,745
0.4777
0.4997
0.0002
0.9077
57.34
right
false
0
red
false
2,086
1,703
955
2,350
0.5174
0.5632
0.2369
0.7771
60.23
right
false
2
countdown_green
false
1,142
1,302
1
2,902
0.2832
0.4306
0.0002
0.9597
35.49
right
false
2
countdown_green
false
2,198
1,064
3,106
3,024
0.5451
0.3519
0.7703
1
-24.86
left
false
1
green
true
2,156
1,569
2,770
3,024
0.5347
0.5188
0.687
1
-22.88
left
false
2
countdown_green
false
2,234
1,585
2,473
3,024
0.5541
0.5241
0.6133
1
-9.43
ahead
false
4
none
false
1,080
436
4,032
2,346
0.2679
0.1442
1
0.7758
-57.1
left
false
0
red
false
1,927
1,289
3,317
3,024
0.4779
0.4263
0.8227
1
-38.7
left
false
0
red
false
2,229
1,634
4,022
2,913
0.5528
0.5403
0.9975
0.9633
-54.5
left
false
0
red
false
2,585
1,464
741
3,024
0.6411
0.4841
0.1838
1
49.77
right
true
4
none
false
1,319
1,180
172
3,024
0.3271
0.3902
0.0427
1
31.88
right
false
0
red
false
1,937
1,638
2,360
3,024
0.4804
0.5417
0.5853
1
-16.97
left
false
0
red
false
2,082
1,203
3,637
3,024
0.5164
0.3978
0.902
1
-40.49
left
true
0
red
false
2,019
1,444
2,124
3,024
0.5007
0.4775
0.5268
1
-3.8
ahead
true
1
green
true
2,255
1,085
2,167
3,019
0.5593
0.3588
0.5375
0.9983
2.61
ahead
false
2
countdown_green
false
1,585
1,238
4,031
2,133
0.3931
0.4094
0.9998
0.7054
-69.9
left
false
0
red
false
1,341
353
4,032
2,529
0.3326
0.1167
1
0.8363
-51.04
left
false
2
countdown_green
false
2,619
863
1
2,905
0.6496
0.2854
0.0002
0.9606
52.05
right
false
3
countdown_blank
false
2,108
1,141
841
3,024
0.5228
0.3773
0.2086
1
33.94
right
false
1
green
true
2,127
954
2
2,441
0.5275
0.3155
0.0005
0.8072
55.02
right
false
3
countdown_blank
false
1,993
1,418
1,539
3,024
0.4943
0.4689
0.3817
1
15.79
right
false
0
red
false
1,970
1,727
2,118
3,024
0.4886
0.5711
0.5253
1
-6.51
ahead
false
0
red
false
2,254
1,364
1,981
3,024
0.559
0.4511
0.4913
1
9.34
ahead
false
1
green
true
1,649
1,167
4,032
2,736
0.409
0.3859
1
0.9048
-56.64
left
false
2
countdown_green
false
2,268
1,369
2,871
3,024
0.5625
0.4527
0.7121
1
-20.02
left
true
0
red
false
1,562
887
4,032
1,775
0.3874
0.2933
1
0.587
-70.23
left
false
4
none
false
2,396
1,314
1,031
3,024
0.5942
0.4345
0.2557
1
38.6
right
false
1
green
true
1,793
1,086
1,479
3,024
0.4447
0.3591
0.3668
1
9.2
ahead
false
1
green
true
1,922
1,602
2,238
3,024
0.4767
0.5298
0.5551
1
-12.53
ahead
true
0
red
false
2,035
1,122
1,638
3,021
0.5047
0.371
0.4062
0.999
11.81
ahead
false
2
countdown_green
false
2,192
1,516
1,405
3,024
0.5437
0.5013
0.3485
1
27.56
right
false
1
green
true
2,080
1,476
1,265
3,024
0.5159
0.4881
0.3137
1
27.77
right
false
2
countdown_green
false
1,720
1,368
454
3,024
0.4266
0.4524
0.1126
1
37.4
right
false
0
red
false
2,457
1,772
2,237
3,015
0.6094
0.586
0.5548
0.997
10.04
ahead
false
0
red
false
1,829
1,866
1,389
3,024
0.4536
0.6171
0.3445
1
20.81
right
true
1
green
true
2,016
1,555
2,379
3,024
0.5
0.5142
0.59
1
-13.88
ahead
true
0
red
false
2,034
1,251
4,025
2,263
0.5045
0.4137
0.9983
0.7483
-63.06
left
true
0
red
false
1,964
1,647
1,349
3,024
0.4871
0.5446
0.3346
1
24.07
right
false
0
red
false
2,667
1,358
1
2,940
0.6615
0.4491
0.0002
0.9722
59.32
right
false
3
countdown_blank
false
2,104
968
735
3,024
0.5218
0.3201
0.1823
1
33.66
right
false
2
countdown_green
false
2,288
944
1
2,396
0.5675
0.3122
0.0002
0.7923
57.59
right
false
0
red
false
1,967
1,760
946
3,024
0.4878
0.582
0.2346
1
38.93
right
false
3
countdown_blank
false
2,204
1,712
4,031
2,795
0.5466
0.5661
0.9998
0.9243
-59.34
left
true
2
countdown_green
false
2,398
1,246
1,675
3,024
0.5947
0.412
0.4154
1
22.13
right
false
4
none
false
1,419
1,437
3,097
3,024
0.3519
0.4752
0.7681
1
-46.6
left
false
2
countdown_green
false
1,137
1,429
1,356
3,024
0.282
0.4726
0.3363
1
-7.82
ahead
false
1
green
true
2,303
1,020
1,833
3,024
0.5712
0.3373
0.4546
1
13.2
ahead
false
1
green
true
2,320
1,172
5
2,111
0.5754
0.3876
0.0012
0.6981
67.92
right
false
2
countdown_green
false
2,127
1,509
4,032
2,844
0.5275
0.499
1
0.9405
-54.98
left
false
4
none
false
2,139
1,496
2,547
2,562
0.5305
0.4947
0.6317
0.8472
-20.94
left
false
1
green
true
1,436
933
4,032
2,394
0.3562
0.3085
1
0.7917
-60.63
left
false
2
countdown_green
false
1,757
1,634
2,008
3,024
0.4358
0.5403
0.498
1
-10.24
ahead
true
4
none
false
2,715
1,793
1,852
3,024
0.6734
0.5929
0.4593
1
35.03
right
false
1
green
true
848
1,403
2,198
3,024
0.2103
0.464
0.5451
1
-39.79
left
true
1
green
true
1,769
1,015
2,166
3,024
0.4387
0.3356
0.5372
1
-11.18
ahead
false
2
countdown_green
false
2,055
1,300
874
3,024
0.5097
0.4299
0.2168
1
34.41
right
false
1
green
true
1,876
1,563
1,807
3,024
0.4653
0.5169
0.4482
1
2.7
ahead
false
2
countdown_green
false
2,689
1,336
609
3,024
0.6669
0.4418
0.151
1
50.94
right
true
3
countdown_blank
false
2,100
1,350
1
2,486
0.5208
0.4464
0.0002
0.8221
61.58
right
true
0
red
false
2,828
1,077
1
2,455
0.7014
0.3562
0.0002
0.8118
64.01
right
false
3
countdown_blank
false
2,263
1,410
4,032
2,382
0.5613
0.4663
1
0.7877
-61.21
left
true
3
countdown_blank
false
1,435
1,446
3,035
3,024
0.3559
0.4782
0.7527
1
-45.4
left
false
3
countdown_blank
false
2,019
1,132
3,513
3,024
0.5007
0.3743
0.8713
1
-38.3
left
false
0
red
false
2,808
1,402
1,670
3,024
0.6964
0.4636
0.4142
1
35.05
right
false
3
countdown_blank
false
1,704
1,112
1,955
3,024
0.4226
0.3677
0.4849
1
-7.48
ahead
false
0
red
false
2,062
1,149
1
1,959
0.5114
0.38
0.0002
0.6478
68.54
right
true
2
countdown_green
false
2,424
1,117
1,298
3,024
0.6012
0.3694
0.3219
1
30.56
right
false
1
green
true
1,975
1,147
1,405
3,024
0.4898
0.3793
0.3485
1
16.89
right
true
1
green
true
2,092
1,058
2,934
3,021
0.5188
0.3499
0.7277
0.999
-23.22
left
true
End of preview. Expand in Data Studio

PTL Crossing Check

Street-crossing photos from the pedestrian point of view, for one narrow decision for a blind walker at the kerb: GO (the pedestrian light is steady green) or WAIT. Each photo also has the direction of the crossing and a flag for people or vehicles on the crossing.

This is a re-packaged copy of the Pedestrian-Traffic-Lights (PTL) dataset from the ImVisible project (Samuel Yu, Heon Lee, John Kim / Jung Hoon Kim; photos from Shanghai; GitHub, MIT licence), in the 876x657 resolution. The images, the five signal classes, the zebra endpoints and the blocked tag are the original human labels from the PTL authors. The splits are the original PTL splits (so results compare with the published LytNet numbers). We added only the derived columns that the table below marks as "derived". We did not relabel any image.

split images red green countdown_green countdown_blank none blocked
train 3456 1016 879 648 621 292 742
validation 864 235 239 171 153 66 191
test 739 226 185 144 130 54 145

Columns (metadata.csv in each split folder)

column source meaning
file_name original image file (876x657 JPEG)
signal_id original PTL class: 0 red, 1 green, 2 countdown green, 3 countdown blank, 4 none
signal derived (rename) red, green, countdown_green, countdown_blank, none
go derived (rule) True only when signal == green
x1, y1, x2, y2 original the two endpoints of the zebra-crossing midline, in pixels of the original 4032x3024 photo. In 5058 of 5059 images, (x2, y2) is the lower point (near end, at the walker) and (x1, y1) is the upper point (far end)
x1_norm … y2_norm derived (rule) the same points divided by 4032 (x) and 3024 (y), so they are valid for any resolution
heading_deg derived (rule) angle of the midline from the near end (x2, y2) to the far end (x1, y1): degrees(atan2(x1 - x2, y2 - y1)); 0 = straight up the image, negative = the crossing goes to the left, positive = to the right
heading derived (rule) left if heading_deg < -15, right if heading_deg > 15, else ahead
blocked original (to bool) the PTL block tag: True = blocked, False = not_blocked

How the derived labels were made

All derived columns come from a fixed rule on the original labels. No model and no person made new labels for them.

  • go: the safety rule of the use case. Countdown green also has a green light, but a blind walker cannot read the number of seconds, so the app does not start a crossing on a countdown. Countdown blank, red and none are WAIT.
  • heading: the ±15° band is our choice for a 3-way spoken cue ("crossing ahead / to your left / to your right"). Use heading_deg if you want a different band. Check the sign convention before you use the cue: the value is the angle as seen in the image, not a compass bearing.

Code: poc/crossing/export_hf.py and poc/crossing/metrics.py (function labels) in our project.

Labels we made that are NOT in this dataset

For an out-of-distribution test, we labelled 105 frames from GuideDog (walking videos from many countries) for the pedestrian signal (walk, walk_countdown, dont_walk, dont_walk_countdown, none, unclear) and the walker position (at_kerb, on_crossing, near, no). Two independent Claude Sonnet passes labelled each frame with a written guide. We kept a frame only when both passes agreed. These are model labels, not human labels. GuideDog is CC BY-NC 4.0 and gated, so we do not redistribute those frames or their labels here.

Use case and results (test split, 739 images)

The walker hears GO only when p(green) ≥ τ. τ is the lowest value with an unsafe-GO rate (GO on red or none) of 1 % or less on validation; the same τ is applied to test.

model signal acc macro-F1 heading acc blocked AUC latency p50
d3-flash (8.4B) + LoRA, our fine-tune 0.978 0.976 0.877 0.953 701 ms (H100)
d3 26B, zero-shot 0.708 0.597 0.206 0.864 1143 ms (H100)
LytNet V1 (published weights) 0.938 0.924 0.870 – 2 ms
LytNet V2 (published weights) 0.957 0.948 0.824 – 3 ms

At its validation τ, the fine-tuned d3-flash has unsafe-GO 0.7 % and GO recall 99.5 % on test. LytNet V2 has 0.7 % and 90.3 %. The latencies were measured while the GPU was shared, so they are approximate.

Limit. All photos come from one city (Shanghai). On the 105 GuideDog frames from other countries, the fine-tuned model gave a wrong GO on 8 of 74 dangerous frames. Do not use a model trained on this data as a safety device.

Licence and citation

The PTL data is from the ImVisible repository, which is under the MIT licence. Keep the copyright notice of the original authors. Please cite their papers:

@article{yu2019lytnet,
  title   = {LYTNet: A Convolutional Neural Network for Real-Time Pedestrian Traffic Lights and Zebra Crossing Recognition for the Visually Impaired},
  author  = {Yu, Samuel and Lee, Heon and Kim, John},
  journal = {arXiv preprint arXiv:1907.09706},
  year    = {2019}
}
@article{yu2019lytnetv2,
  title   = {Street Crossing Aid Using Light-weight CNNs for the Visually Impaired},
  author  = {Yu, Samuel and Lee, Heon and Kim, Jung Hoon},
  journal = {arXiv preprint arXiv:1909.09598},
  year    = {2019}
}
Downloads last month
1,695

Papers for ngqtrung/ptl-crossing-check