Summary #
CitySegmentation is a dataset for instance segmentation, semantic segmentation, and object detection tasks. Possible applications of the dataset could be in the geospatial domain.
The dataset consists of 50 images with 9306 labeled objects belonging to 2 different classes including building and road.
Images in the CitySegmentation dataset have pixel-level instance segmentation annotations. Due to the nature of the instance segmentation task, it can be automatically transformed into a semantic segmentation (only one mask for every class) or object detection (bounding boxes for every object) tasks. All images are labeled (i.e. with annotations). There are no pre-defined train/val/test splits in the dataset. Additionally, images have city tag: Berlin or London. The dataset was released in 2019.
![Dataset Poster](https://cdn.datasetninja.com/github/dataset-ninja/city-segmentation/main/visualizations/poster.png?width=1200)
Explore #
CitySegmentation dataset has 50 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 CitySegmentation](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/T/q/mr/i3KzMp64dKmdwAi9uIUkGBOye6KPdDCfkbqnvNItcHulDz2O5L2IQTk4VME9fF2Sx3wEiy39Jb3Nitceb6hj19S3CSgZhwW6LV2Nf3kJwjvSFSUYfwRN067WUPpX.png)
![Sample image from CitySegmentation](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/f/D/aq/RQ5LQ45O20Gs5HGFgKgHEoUJJf5jokvH9KbxClwzjI1znSE9LLzXIlX6Kru8NdYoawBYoXbjRkMrSCbYVKJeQynDcfQfeyp2YzX5sJepy6yKM52dgKSan3V7LkvP.png)
![Sample image from CitySegmentation](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/c/t/K9/HQwhGZNgmBq6qC9Aq0Z57cwkaLbRHv5BDjzl04gOPYa8pJ713vzFmoxCsmy3OxUULFs4Cd1A39Kev7YZmFlYUWPyhzHKREyhwFD0OG2z2aWLwYk3vDjgZaGs73md.png)
![Sample image from CitySegmentation](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/r/i/DU/aXWB5kyr8Zx4WLu75F0V2LCYwVVNQgb4yyqkrEKZTh48wIoi14kb3xSG0jCtoN5DQwT3wcDVKsOxQmqNGouYDf4k0fl8jxf0sEGRYU2hEfLhAkG77NBngsIkQyEc.png)
![Sample image from CitySegmentation](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/L/c/9R/hnNksDQdGRIhxIC5JTzAxj9NyHM6ryFFd4VboYZqMLR3VUEUPJm9WV7vCxGQk1xUOtWMd6Nde7IIkjue7IX9EYyEzlh2wcVBLkBK9ZKkTqHvv0rboQISwJikwlAD.png)
![Sample image from CitySegmentation](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/x/D/AG/qZryNPj9JOdGoiYQfXPNcRvqLILkOUMkAhwdDWK4QT6zSJ3TmBK0TmHhYLUfGFA4blvM797WnPWlcQnZemZ7resXgMC3i4dBTCLmeFTLaf2lpFNTFsfH7RLZ6KfH.png)
![Sample image from CitySegmentation](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/C/z/BK/m28H0sKvCgv31nYJWorijEgnKudGjmDDTftcReBEm6z5dD5PIABBzbcA5xTr3eeuaGGrWsFS14W8oGU5pF9Xl3Cp1ZCCtFUmuIsAj0bdftAutxkwlBoVTpS6K9aM.png)
![Sample image from CitySegmentation](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/0/V/9b/TaR4Kh26qGnHZIt8JCGbEG5ySQR7MgNx98ef2gq2MocPT4ydciIC8y3lGKGtYU1lMiH98bVT40Vk94xZRw4NW02dIRKy6hXzM98GtT2CaHKIymM0a7ushdB3DL2r.png)
![Sample image from CitySegmentation](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/U/V/CX/D4iKJ9dcWc7YbP9hgzy2swaDjLsIzkIZpMTPZKL4tXFIiOCqWm5g3WKC8HiHRjkJxeOHLmrXKO3HCfxjHlWymZYVHJenV2y5hOjJoubwApX3gL4UvYvlCPZ5PciB.png)
![Sample image from CitySegmentation](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/V/1/mI/SYLaOj1CqgTDgXHxdf0bqwjOC0y6WqtlATZCM9972vvIyziXoS2mQU2E7QCMceDvrqiLxesRyVONAVzWe6HiaX8orvuj4RqAJ866V0PmPzs8CtRChrX7vFxqtWu6.png)
![Sample image from CitySegmentation](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/M/P/ji/og3X5V7VocDXO3v6NygTE9Zx9c3BNJYn8TmwdPlpEx0NrQP6Mpl29JyuNz28YSAwfvyjESJOqm2MrZSzMvsuPahWqrD9A6tZkM6EigDlqXmdooiEQZKTIR9EKrto.png)
![Sample image from CitySegmentation](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/j/e/kt/w9Uq1veoOTAfwHetWUjkYGYJMYPXiHOVPV63w5F3tzyfTuQMP5tKOVTBPUgC2UK2W7OmVmkzoy07V6uwjOchlbdVQ7NmcYzH8KXQL4upyXilg2HZWHIXiGebjeWp.png)
![Sample image from CitySegmentation](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/q/Q/lh/6zT1qiAnLJQk9daRwIOBhfcgPsBY4kcozKzyxKpj3vdf0woO0rOPctQFNyUgDA3u8aTfwz7qZvsWlsg4aS7IF34pZlW4n1hxNSISl3Y8wR2oE1IY5zVQZHHVV3cE.png)
![Sample image from CitySegmentation](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/R/e/FT/zFuqF29bas0fvFsheArDTGB7MMoiyFqiisvBIDXYMMjJb9yH57XVCNuyqJAMxWfD6cTSPY7A494zkkIHyQTcb7upIJHEGMqfnSmCvT6r9cvI7Tr8vVKKszjrSltG.png)
![Sample image from CitySegmentation](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/K/1/XD/qkHwhZvLdyzcgx4d6cjaIBg8pYit4CZWOU2n78TbgtHq3KU7R5zx9vQod3JSWC3kmEHNBfJdvIlQM3yFMa46hzrBDI7E9vbCunERwwil7mcEIS1aVoHXcT6alQRo.png)
![Sample image from CitySegmentation](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/B/G/MR/qZ3WKny5rbsuDe5lBXpx5pGxPOVMXoE1MtD2GT4qK25u73rGGjEN1lzykThEG9wrT6FsmmptBdXwaGlQXwNZeJxCuZZ57AifY3GR2Uozw8pZ4OCncLqtVsFgU9VS.png)
![Sample image from CitySegmentation](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/p/O/gq/HgBlKRwCRLitCInqAWIrgrPEe8rYbca5SlLDKk76FLdlW7cEbuw1C7fLoTAYi2N1CwEMudo8lbszBMRYv3C3g3QDfrvfVromddtP3wUvn8GZysVINRo9qTRYfKd9.png)
![Sample image from CitySegmentation](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/e/8/L9/jGVOUb9uVDCmSytd34XCxolvVwRWqZthBGMKAbLX30AJUIbFqhitJUc2DB00UztU42QwleJOXzrGOfRPYZIBBKD37HwGcrZATBnVM0AB4V6nS1rLkJq81RylFib5.png)
![Sample image from CitySegmentation](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/a/h/Ka/uuYRKPAPIRPBVHJBEFRRwc8hpA6YCxTAB2zU0Ibj571uDuUqdyAegvxwiOV1tQi968128shX9XiYgKtLetcaM8SbeNLBixXfqWVe6eWv9AnBC7Q8AEWK3MSV1qmz.png)
![Sample image from CitySegmentation](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/e/w/0L/RT2ZGwho8NQ678KOb5cGEhMjaAf9c0AMw2bFGvOEf4r1cyInEacTFr6PJHX2VEdSIK3RUfARLvh7ixrV70Qak2iTvkqPS1vnmuJm6JCs668GftK6Pm47XFiTs9i2.png)
![Sample image from CitySegmentation](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/q/T/eC/2dSJY2Q0ubViG95z7Y7TcaGAuxInjIAfYv8ngX2VuaJqcvOvuK3LXaIj3cqTU69jvoPwAlvgk1XRmRbE0Hoy0F6cBrmg0tRbXYNJoZeullz0X9eeZ7wqohR4zFjx.png)
![Sample image from CitySegmentation](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/F/7/xo/889wLy2MyVEXQBto8J3MUKDC9ZsPdGUrjPV3JXIIhHx83FfjlypQyHG5eoIDwbLmMlFPwfTIUFtXgXdIbpvRNk32NaSlqvnE8UWmMg4IBzO8NVXhp6LD9GXuhOw1.png)
![Sample image from CitySegmentation](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/z/A/y3/TGoHHQ7qAI70JgyyZHhb3wzMGetsEjOhNmWyrVTAjWiEiLJ7PjuklPb8t7UwitbyVyLDbezdmoXPqBMd8uuu1ItkJ5p1KvkoxxUBAo0GtOURFCDKJlbHvF7fjtUa.png)
![Sample image from CitySegmentation](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/5/o/eT/rpH3VQua0MEAaKJofs5wfsaOwuXKBEEIL65kiVW8RRGUKafV8zscyq5qn3jIM8k22LqgglTcuyRLwxAiFYp1RcfYpw1ikWqzT48QfEKHS9VpMc3rmlqoVagwv2QS.png)
![Sample image from CitySegmentation](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/g/V/zy/U6sYmKyVeF36G2NFdPFEKUKEzWlIXyLA5YzLooGQLzszOipgMQbRKVBSNMA4CBq8dTVU8Dp2gtNBKUQajh6J16zrZI3y4wthAyjf90E1SqyYPx4p5orVp0fVVNl6.png)
![Sample image from CitySegmentation](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/Q/8/Hr/nqf2Vir8k6F5dnFJIjeRqaLx3E6Sz5AnPDDAOtSU4QefPRCNJOJ4RFfh9vtptOz2nrlZ6u4JM4jEVFXm9lVNDS7m7WsCHhkHPyLQATSCJcX7JkWYZVfbvZfPVeXS.png)
![Sample image from CitySegmentation](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/e/6/30/Hc3CfR7QOK9BwXUKTqw9r5n9U8dgSC0YfYSpG4roMsZ88spEKmSwGyCbn6F4df0linukmiwt6thZpLvoVBvIWcexGuV9KkdpGoN92KuB1ngnavL42ZXKbtG4MQTR.png)
![Sample image from CitySegmentation](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/A/t/O6/KKCGHop0zA47hj8xkfGAsduc3ny5K3gC3cYLaLO8YHtoQChs26Q8EQMhaQ0dIWqc8jA26zfHn6QXpohB1r0tHMmjwUgxncQuR1x925RUcN7HrDBJGId7jvzS1kkH.png)
![Sample image from CitySegmentation](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/8/V/xd/exSaXjcrnEpYoetYDgVxP0yw9FwbYnA1yETv6RyGmOhmVQSDZCohgDohTz4FB2Ig1yBOOPDzrzhwBcqdoxiM7r2JygAboRDtMoR1wM54U1CTsgmBXimyxIvBYAWb.png)
![Sample image from CitySegmentation](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/2/h/Bh/w89q9eqKGt1962Po5IWCWylRiyigGVUVA7VuCgA8xq6LOh0p0e7HwC7zz7aQnxo3p9KNiscObZW0U1ngMiE01NCrIRs6nxFqNGUeRSGc6aTkIfLulpzZkK6huqrH.png)
Class balance #
There are 2 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 |
---|---|---|---|---|
roadâž” mask | 50 | 955 | 19.1 | 9.83% |
buildingâž” mask | 50 | 8351 | 167.02 | 31.78% |
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.
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
building mask | 8351 | 0.19% | 7.06% | 0% | 2px | 0.06% | 2871px | 59.81% | 164px | 4.36% | 3px | 0.06% | 3994px | 79.5% |
road mask | 955 | 0.52% | 14.05% | 0% | 2px | 0.06% | 4800px | 100% | 379px | 9.27% | 9px | 0.18% | 5024px | 100% |
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/city-segmentation/main/stats/classes_heatmaps.png)
Objects #
Table contains all 9306 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âž” | building mask | london_4_1_raster.png.tiff | 3216 x 4288 | 107px | 3.33% | 245px | 5.71% | 0.05% |
2âž” | building mask | london_4_1_raster.png.tiff | 3216 x 4288 | 51px | 1.59% | 175px | 4.08% | 0.03% |
3âž” | building mask | london_4_1_raster.png.tiff | 3216 x 4288 | 114px | 3.54% | 353px | 8.23% | 0.11% |
4âž” | building mask | london_4_1_raster.png.tiff | 3216 x 4288 | 29px | 0.9% | 132px | 3.08% | 0.02% |
5âž” | building mask | london_4_1_raster.png.tiff | 3216 x 4288 | 377px | 11.72% | 198px | 4.62% | 0.13% |
6âž” | building mask | london_4_1_raster.png.tiff | 3216 x 4288 | 351px | 10.91% | 638px | 14.88% | 0.11% |
7âž” | building mask | london_4_1_raster.png.tiff | 3216 x 4288 | 51px | 1.59% | 212px | 4.94% | 0.04% |
8âž” | building mask | london_4_1_raster.png.tiff | 3216 x 4288 | 127px | 3.95% | 340px | 7.93% | 0.21% |
9âž” | building mask | london_4_1_raster.png.tiff | 3216 x 4288 | 454px | 14.12% | 903px | 21.06% | 0.43% |
10âž” | building mask | london_4_1_raster.png.tiff | 3216 x 4288 | 47px | 1.46% | 238px | 5.55% | 0.03% |
License #
Citation #
If you make use of the CitySegmentation data, please cite the following reference:
@dataset{CitySegmentation,
author={},
title={CitySegmentation},
year={2019},
url={https://www.kaggle.com/datasets/cceekkigg/berlin-aoi-dataset}
}
If you are happy with Dataset Ninja and use provided visualizations and tools in your work, please cite us:
@misc{ visualization-tools-for-city-segmentation-dataset,
title = { Visualization Tools for CitySegmentation Dataset },
type = { Computer Vision Tools },
author = { Dataset Ninja },
howpublished = { \url{ https://datasetninja.com/city-segmentation } },
url = { https://datasetninja.com/city-segmentation },
journal = { Dataset Ninja },
publisher = { Dataset Ninja },
year = { 2024 },
month = { sep },
note = { visited on 2024-09-08 },
}
Download #
Dataset CitySegmentation 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='CitySegmentation', 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.