Introduction #
The S2TLD: Small Traffic Light Dataset is the traffic light dataset. The scenes cover a variety of lighting, weather and traffic conditions, including busy street scenes inner-city, dense stop-and-go traffic, strong changes in illumination/exposure, flickering/fluctuating traffic lights, multiple visible traffic lights, images parts that can be confused with traffic lights.
Note, similar S2TLD: Small Traffic Light Dataset datasets are also available on the DatasetNinja.com:
Motivation
Reliable traffic light detection and classification is crucial for automated driving in urban environments. Currently, there are no systems that can reliably perceive traffic lights in real-time, without map-based information, and in sufficient distances needed for smooth urban driving.
Dataset description
The S2TLD contains 5,786 images of approximately 1, 080 × 1, 920 pixels (1,222 images) and 720 × 1, 280 pixels (4,564 images). It also contains 5 categories (namely red, yellow, green, off and wait on) of 14,130 instances. The scenes cover a variety of lighting, weather and traffic conditions, including busy street scenes inner city, dense stop-and-go traffic, strong changes in illumination/exposure, flickering/fluctuating traffic lights, multiple visible traffic lights, image parts that can be confused with traffic lights (e.g. large round tail lights).
Illustrations of the five categories and different lighting and weather conditions in collected S2TLD dataset.
Summary #
S2TLD: SJTU Small Traffic Light Dataset is a dataset for an object detection task. It is used in the automotive industry.
The dataset consists of 5786 images with 14130 labeled objects belonging to 5 different classes including red, green, off, and other: wait on and yellow.
Images in the S2TLD dataset have bounding box annotations. There are 3 (0% of the total) unlabeled images (i.e. without annotations). There are no pre-defined train/val/test splits in the dataset. Alternatively, the dataset could be split into 2 normal: normal 2 (3785 images) and normal 1 (779 images), or into 2 resolution: 720x1280 (4564 images) and 1080x1920 (1222 images). The dataset was released in 2022 by the Shanghai Jiao Tong University, China and Anhui University, China.
![Dataset Poster](https://cdn.datasetninja.com/github/dataset-ninja/s2tld/main/visualizations/poster.png?width=1200)
Explore #
S2TLD dataset has 5786 images. Click on one of the examples below or open "Explore" tool anytime you need to view dataset images with annotations. This tool has extended visualization capabilities like zoom, translation, objects table, custom filters and more. Hover the mouse over the images to hide or show annotations.
![Sample image from S2TLD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/g/s/sY/Lpuhb12OC0ipnKO7qXvOtdOqiL4w8EWGyJ6R07S18bd6FsaMtUBbiXiIRxEYArnqa8gMzb9PPx9h1iQK5DBFs4B7s1QPB1MYn42jLrXkK6w4UdDvJojlcH7hTizD.jpg)
![Sample image from S2TLD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/M/3/hz/42b5g8baDaW8eJvX03HLe3l5R7sMvEpprjysqbkHd1Z9dYESVl7Fnvy6FPgNePf3dM0IzGq75mWACQD6Uj4Gmz3nMGMZD4CPXv9FtdXJ1AVI6tVnCTRYiN1LDANE.jpg)
![Sample image from S2TLD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/Q/H/ct/l55JuNg7ZJQsSjK6m4qH5cT1XKuq21F7AVBZYJbSWSj1E4rusmJkN2nr2T0kYs1vQtkUUF54rsAvFW7Erz19vJaGr25GTa6ilXpgGJ5LBdihPIQteCPqEc6ABWW8.jpg)
![Sample image from S2TLD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/7/I/aK/6ZWSyjARrM579SMOlMC8r14lB1on2PKRe9ya49MMzujzgiBIWZzf4JJQik80qqJUESOXNESL39mNxmArTG0AnFGmoipHuZOFQfmKE54Ti0fkVWwnA9HKocnCVgqW.jpg)
![Sample image from S2TLD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/C/C/Bs/Z5Bx277XIfYtcFcxtRICLxao0Uf14p39vtrbVM0IAQjQpKDJntE63lOq5Gx0sNsHYB2lqrCZ7S0Q2B7yRnGppLeD8k2X8Shs4lWvWSkaDNGkZyPRAeqiVbzsOTSl.jpg)
![Sample image from S2TLD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/h/2/F5/fSTHRhqdKOu4JNLRTe0m4XD95FQBVxbSYJJtvsuwPqGdUdhEekygjwnNxMD6Gpnf49ij2GHCkYwfaABdDsX4zYsQn6eBRgb2icndjzJLc1pHlsaXRnSveYQ0ZGBl.jpg)
![Sample image from S2TLD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/r/o/49/Ii7CzK8k3kvqy3aYmUX8nfu9ctq7TUYz1XmUvVuxQGRpSaTdOm8xJwzFkEg6np1x2PlrLbx1UQl0BWQSn6k5qh5gK0L8PMBybFYK7vg1ysWBQsOpNmAlhghyxU4s.jpg)
![Sample image from S2TLD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/h/Q/U5/7UkSPuKn3tXpZ8pnsCMDeJ75toEC7Z87Y5TXTEpEYNxNES7Dz4u66LKUDFHc0dTB3s7XQIVw4B9MgrGW1d44jmwilIvKXOd1ElSMJx1VhprprIeFGs55MbLp8hqk.jpg)
![Sample image from S2TLD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/a/I/E8/PkN8El8tN1e9EcI6DKJz8uqlSwNx7ic2N3jHD4m4Eu9Dw6ncN6ofdLh5ZfZgsqPRSFdW18DDmppk9dBxKPUEAtFeiRuKI00uh1DeJV8AvQG3gM4htwyhgPRbiaQh.jpg)
![Sample image from S2TLD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/e/D/n0/9D1Gw9wLMZbZTtOtIEJVsJuW3bNGVMsWlT73xshBsPieGiKv92ze3TXkrNOQ1jxyBWykrSPIbksOOllBhDWqNSfrbvOZeexHfmcj4AckqRCB5VljeQlyXUnJ4y21.jpg)
![Sample image from S2TLD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/w/9/gs/rGrPmeQCPxu6Fr8Ue5lKDJXPXqKillSe9kgTIk2BNoa9g0tSOHHNJLdlnvbp2YtssayqatDNHAAogRzCMi4tlRxL8AznF5jD6lu0mKQZWfcyP7uifpXNJRHJQYhl.jpg)
![Sample image from S2TLD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/1/P/yz/meM34Jy0zpYbBYz72hx91b7QqiSxTZ2t5iy2lKbF1WydohD7UYfHx8JDlgf4aELwTa2zawWprBYoUCej9HzmyXFieewWYY0D6WXVa923mDokDB9UzhAV3fY8VxnU.jpg)
![Sample image from S2TLD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/X/o/tw/pybXUMxV0TjWY2Yvxnsjg2VDEMz2Y290Py7MOQgmaFXAQiLKRGTVEXyeHIBbPCUMi2Ts9XtYXEO5MODmNINzwGoRDRnjosa5oOwpaaDQSI99D6ZAeqreXNlwKTqn.jpg)
![Sample image from S2TLD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/L/r/wC/F9xy7ic8CEQZj8dnbyTFuNfvk3iVw5XC8BspsZEdb41nwYIOHfDhzG3GhGBuL95gFhQvzjmZgQlAD0gfWE2R2x0Y8GG8Ob4NVPVWhdkQiiTOFZxaLidu79r2Nzcz.jpg)
![Sample image from S2TLD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/M/5/fN/KC5ZO9cG4QQ5lPGAD5I5Lqw5xu304YqSJDMxWJLolOk31WshPMkVpWMbWM5AUrJRN9HQjOHdVvESHdH5hU2nf0GcGNz0CvHxb3JoxUCLzOlJZ4mM05dtrRAPfy2t.jpg)
![Sample image from S2TLD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/M/y/8q/KBSdZeyjAnM9hJDhdjBLtSOGOQGsHmK1BmeE8rftnxt7i62yNvJQjOKQ0SKzlbhyZKh97MHEQUmEauCxdC9qOWtbzlHqBy3GBZ8dcZytuB1zrywzZTcKa3pRaBAx.jpg)
![Sample image from S2TLD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/e/Q/Bv/d0nkm9pdPWBQP4918OVXrFy75PPC5QG44Ot5SD1beiule2M0NMJZQZ9BwG2sN8hqYO5kinh7P2ptcprKxN2GMJ2pwdTI8EhwNQp6fi4ZdcnXolJDjgYwz9kZpi9y.jpg)
![Sample image from S2TLD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/g/F/2x/z3BaWlPigChBAJUKwbJi9JamP4rnHp0rgeP9PTyww80YVA4tFP0ebPxZSlJTYColgC3I549Qgo7Ix6fvdECPsxccYfOYXaJJELrZZR4nvFnuQ01Yn8UMnn2SOoTD.jpg)
![Sample image from S2TLD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/1/0/pn/pnTZhxQjNOsGxqXCmekSz3NrqTsfjaZuQPdpZHsi7zQvky0evbMerxcDJeXK4ai1jN1pruxALB093KcgtqUXNrLOw5U0qdZwAj8ktZksk3qLPydpTprpvqOENd2Q.jpg)
![Sample image from S2TLD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/S/t/Yn/dhITnHP13A7Qirz55Vd4W2b8MBfPtqO1hpkwiS9gN0xOCWnr40DjuWhc9QESr1Rkq4n3q7EnzdG9Zds3o6dNHJQ9ESsywAlSPjd7DBTqSmHKU50fPhIudiKjmY3H.jpg)
![Sample image from S2TLD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/d/L/kX/pMUxaPCLIWeFJBOUQA1dMFFAtAea7OXZEjXbNNUpjzVgdUa15px9oNAgdJFTT0CrvDOnuDQy2VEldkKEEHAVGNTdGyiQ0jlucIqJJOHMj8ccOp1dtOqx28H7etIu.jpg)
![Sample image from S2TLD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/x/a/eb/ApGw46wp99t3GrkFAwKz7dTpGbnazIwX6ALmyNPrlTV9g3TQrf5Nvm14lW7DJrw4g4hG5oGBYevARbW968gBJLC6RCKZVMUUube2KhuFsb5AuRn78I08H8eNmPZO.jpg)
![Sample image from S2TLD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/k/y/yK/UQnewULtabhP9jQO9FUnRLRVP6kQdlNdMC1smNc8CXfom3Es3YY3OvYiR29TXOUaqrBFSqpRUfa0D7qbufS7hleB1PBLYjxUGDjCvnPQ1J87BfaKM0JBh2nb1u3m.jpg)
![Sample image from S2TLD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/v/b/5I/jGVoASPbHPcvtJ5tKTBQ7HDLtxDsBMsLGgkbEC4nKceAqdkkhkVgTipHAAl40n1s0hnHhWwtWsbfdH9EVXGyk6Krsz0l4rfxR98aQrRV4W7O1LSTwoyTSYVkAbhh.jpg)
![Sample image from S2TLD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/8/v/JY/RTgg1OvOAZAR2nEOwaUXCysTd2i1iN3CpYGfpoLhvo3KbdUSefOuwEDE2cfKG7Tm1zxJrmWHs4UuvHwLrdUs2QP9mH0j3pJGPxHgxHQiPdNPnYd93gztEbdP7L8q.jpg)
![Sample image from S2TLD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/f/x/9j/ug6xbhGtVMZsGS72xRc0QAmT2kiQFgzFdW5PRI8Er6cg7in8aEelxtWQH187fKSlADXnKjdyiWNbSDAxp1lJFr56GM1WIpdeczLg8sxrJOZxLZ1uJbj8Xd161E9q.jpg)
![Sample image from S2TLD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/o/x/5S/RHre6mCyDwLZp3UAg9clyBX0D5F1m96OtnrIgDOGqXKzBTm31RbmmEUBUli9uAFKxM3jBGu6vZXMIShn6sGZYS2f9UqaLAoo6bxsumrLHPsAWHI9dZtajy9BYb3B.jpg)
![Sample image from S2TLD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/L/p/Fw/Xn1zJ4AHcid5LX2Tu7FvTmL1XNXJpS16il1kgJBARx1n1ytFw5iwHVA8WUYXL0imBgo9s8hvrLG7sKAGMx4UBjw2lPmdGLmyzedFVd5VaCGWd0MOhTjZ8q1fT8vr.jpg)
![Sample image from S2TLD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/j/C/gQ/IwlotrgUThZHXkUHi6nsQPWGrluk3POzLynR7kJJorb2KRVg88XehhlJSNg9xViRaAEowpkSXmCYzK6TYBwRdhUj7Iq9GNnvb3hMXzY4HYnxK1THFlP55RQYAXs2.jpg)
![Sample image from S2TLD](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/l/D/rg/z5AKrHEbzzvGvR9WPiHTlaSttrkXZ2ziGjxuSA6HrOoAPo94GcrpO4mrBaCGuDG92N1OvkR2NOVsWXwI16aRtCQXJfXadCqETP0XosKZe8yZDpJ4ekVBZmUa9BjV.jpg)
Class balance #
There are 5 annotation classes in the dataset. Find the general statistics and balances for every class in the table below. Click any row to preview images that have labels of the selected class. Sort by column to find the most rare or prevalent classes.
Class ã…¤ | Images ã…¤ | Objects ã…¤ | Count on image average | Area on image average |
---|---|---|---|---|
redâž” rectangle | 3777 | 7708 | 2.04 | 0.26% |
greenâž” rectangle | 2931 | 5344 | 1.82 | 0.28% |
offâž” rectangle | 328 | 507 | 1.55 | 0.18% |
wait onâž” rectangle | 305 | 306 | 1 | 0.15% |
yellowâž” rectangle | 176 | 265 | 1.51 | 0.22% |
Co-occurrence matrix #
Co-occurrence matrix is an extremely valuable tool that shows you the images for every pair of classes: how many images have objects of both classes at the same time. If you click any cell, you will see those images. We added the tooltip with an explanation for every cell for your convenience, just hover the mouse over a cell to preview the description.
Images #
Explore every single image in the dataset with respect to the number of annotations of each class it has. Click a row to preview selected image. Sort by any column to find anomalies and edge cases. Use horizontal scroll if the table has many columns for a large number of classes in the dataset.
Object distribution #
Interactive heatmap chart for every class with object distribution shows how many images are in the dataset with a certain number of objects of a specific class. Users can click cell and see the list of all corresponding images.
Class sizes #
The table below gives various size properties of objects for every class. Click a row to see the image with annotations of the selected class. Sort columns to find classes with the smallest or largest objects or understand the size differences between classes.
Class | Object count | Avg area | Max area | Min area | Min height | Min height | Max height | Max height | Avg height | Avg height | Min width | Min width | Max width | Max width |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
red rectangle | 7708 | 0.13% | 2.16% | 0% | 1px | 0.09% | 220px | 30.56% | 48px | 6.29% | 6px | 0.36% | 209px | 10.89% |
green rectangle | 5344 | 0.15% | 3.5% | 0.01% | 7px | 0.83% | 273px | 37.92% | 51px | 6.78% | 6px | 0.47% | 177px | 9.22% |
off rectangle | 507 | 0.12% | 1.54% | 0.01% | 14px | 1.48% | 185px | 25.69% | 46px | 6.39% | 6px | 0.47% | 115px | 6.25% |
wait on rectangle | 306 | 0.15% | 0.78% | 0.02% | 9px | 0.83% | 56px | 5.19% | 22px | 2.06% | 36px | 1.88% | 321px | 16.72% |
yellow rectangle | 265 | 0.15% | 1.26% | 0.01% | 11px | 1.02% | 171px | 22.64% | 50px | 6.42% | 8px | 0.62% | 142px | 7.4% |
Spatial Heatmap #
The heatmaps below give the spatial distributions of all objects for every class. These visualizations provide insights into the most probable and rare object locations on the image. It helps analyze objects' placements in a dataset.
![Spatial Heatmap](https://cdn.datasetninja.com/github/dataset-ninja/s2tld/main/stats/classes_heatmaps.png)
Objects #
Table contains all 14130 objects. Click a row to preview an image with annotations, and use search or pagination to navigate. Sort columns to find outliers in the dataset.
Object ID ã…¤ | Class ã…¤ | Image name click row to open | Image size height x width | Height ã…¤ | Height ã…¤ | Width ã…¤ | Width ã…¤ | Area ã…¤ |
---|---|---|---|---|---|---|---|---|
1âž” | red rectangle | 002471.jpg | 720 x 1280 | 68px | 9.44% | 26px | 2.03% | 0.19% |
2âž” | red rectangle | 002471.jpg | 720 x 1280 | 69px | 9.58% | 26px | 2.03% | 0.19% |
3âž” | red rectangle | 002471.jpg | 720 x 1280 | 59px | 8.19% | 24px | 1.88% | 0.15% |
4âž” | red rectangle | 002471.jpg | 720 x 1280 | 59px | 8.19% | 23px | 1.8% | 0.15% |
5âž” | red rectangle | 003633.jpg | 720 x 1280 | 66px | 9.17% | 26px | 2.03% | 0.19% |
6âž” | green rectangle | 003633.jpg | 720 x 1280 | 68px | 9.44% | 26px | 2.03% | 0.19% |
7âž” | green rectangle | 003633.jpg | 720 x 1280 | 51px | 7.08% | 18px | 1.41% | 0.1% |
8âž” | red rectangle | 003633.jpg | 720 x 1280 | 47px | 6.53% | 19px | 1.48% | 0.1% |
9âž” | wait on rectangle | 2020-04-04 11_13_00.777872252.jpg | 1080 x 1920 | 36px | 3.33% | 321px | 16.72% | 0.56% |
10âž” | green rectangle | 2020-04-04 11_13_00.777872252.jpg | 1080 x 1920 | 66px | 6.11% | 168px | 8.75% | 0.53% |
License #
Citation #
If you make use of the S2TLD data, please cite the following reference:
@article{yang2022scrdet++,
title={Scrdet++: Detecting small, cluttered and rotated objects via instance-level feature denoising and rotation loss smoothing},
author={Yang, Xue and Yan, Junchi and Liao, Wenlong and Yang, Xiaokang and Tang, Jin and He, Tao},
journal={IEEE Transactions on Pattern Analysis and Machine Intelligence},
year={2022},
publisher={IEEE}
}
If you are happy with Dataset Ninja and use provided visualizations and tools in your work, please cite us:
@misc{ visualization-tools-for-s2tld-dataset,
title = { Visualization Tools for S2TLD Dataset },
type = { Computer Vision Tools },
author = { Dataset Ninja },
howpublished = { \url{ https://datasetninja.com/s2tld } },
url = { https://datasetninja.com/s2tld },
journal = { Dataset Ninja },
publisher = { Dataset Ninja },
year = { 2024 },
month = { sep },
note = { visited on 2024-09-08 },
}
Download #
Dataset S2TLD can be downloaded in Supervisely format:
As an alternative, it can be downloaded with dataset-tools package:
pip install --upgrade dataset-tools
… using following python code:
import dataset_tools as dtools
dtools.download(dataset='S2TLD', dst_dir='~/dataset-ninja/')
Make sure not to overlook the python code example available on the Supervisely Developer Portal. It will give you a clear idea of how to effortlessly work with the downloaded dataset.
The data in original format can be downloaded here:
Disclaimer #
Our gal from the legal dep told us we need to post this:
Dataset Ninja provides visualizations and statistics for some datasets that can be found online and can be downloaded by general audience. Dataset Ninja is not a dataset hosting platform and can only be used for informational purposes. The platform does not claim any rights for the original content, including images, videos, annotations and descriptions. Joint publishing is prohibited.
You take full responsibility when you use datasets presented at Dataset Ninja, as well as other information, including visualizations and statistics we provide. You are in charge of compliance with any dataset license and all other permissions. You are required to navigate datasets homepage and make sure that you can use it. In case of any questions, get in touch with us at hello@datasetninja.com.