Datasets:
File size: 4,885 Bytes
3cfe4fb 9fe40c7 3cfe4fb 9fe40c7 3cfe4fb 7f868a9 3cfe4fb 9fe40c7 3cfe4fb 9fe40c7 3cfe4fb 9fe40c7 3cfe4fb 9fe40c7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 | ---
pretty_name: CommonsPano
license:
- cc0-1.0
- cc-by-2.0
- cc-by-2.5
- cc-by-3.0
- cc-by-4.0
- cc-by-sa-3.0
- cc-by-sa-4.0
- other
tags:
- camera-calibration
- panorama
- "360"
- equirectangular
- wikimedia-commons
size_categories:
- 1K<n<10K
configs:
- config_name: by
default: true
data_files:
- split: train
path: by/train/*
- split: validation
path: by/validation/*
- config_name: by-sa
data_files:
- split: train
path: by-sa/train/*
- split: validation
path: by-sa/validation/*
---
# CommonsPano
**CommonsPano** contains 9,891 images with a 2:1 aspect ratio from [Wikimedia Commons](https://commons.wikimedia.org),
almost all of them equirectangular 360° panoramas, used as training data for single-image camera calibration in
**LiteCalib: Fast, Model-Agnostic Single-View Camera Calibration** (Viktor Kocur, Lukáš Bujňák, Lukáš Gajdošech,
Torsten Sattler, Zuzana Kukelova). Training views with sampled camera models are rendered from the panoramas.
[**paper** (TODO)]() | [**code**](https://github.com/kocurvik/litecalib)
## Dataset Structure
```
CommonsPano
├── by/ # public domain, CC0, CC BY
│ ├── train/ # 4,384 images + metadata.csv
│ └── validation/ # 301 images + metadata.csv
├── by-sa/ # CC BY-SA
│ ├── train/ # 4,952 images + metadata.csv
│ └── validation/ # 254 images + metadata.csv
├── attribution.csv # all 9,891 images
└── removed_duplicates.csv # 465 panoramas removed in deduplication (not included)
```
Images are `commons_<pageid>.jpg`, 4,096 to 8,192 px wide, width / height = 2 within 1 %.
## Dataset Fields
`attribution.csv` and each `metadata.csv` have one row per image:
- `file_name`, `subset`, `split`
- `pageid`, `title`, `page_url`: the Commons file page
- `author`, `attribution`: the author and the requested attribution text from Commons
- `license_name`, `license_url`: the licence of the file on Commons
- `uploader`: the Commons account that uploaded the file
- `width`, `height`
- `modified`: what we changed in the file
- `commons_restrictions`: the Commons `Restrictions` field (`personality` for 21 files, `none` otherwise; empty
instead of `none` in `attribution.csv`)
## Licence and Attribution
Each image keeps the licence of its Commons file; there is no single licence for the images (`license_name`, `license_url` in `attribution.csv`):
| subset | licence (images) | images |
|---|---|---|
| `by` | Public domain (63), CC0 (1,843), CC BY 2.0 (285), CC BY 2.5 (1), CC BY 3.0 (376), CC BY 4.0 (2,117) | 4,685 |
| `by-sa` | CC BY-SA 2.0 (86), CC BY-SA 3.0 (189), CC BY-SA 3.0 de (20), CC BY-SA 3.0 au (38), CC BY-SA 4.0 (4,873) | 5,206 |
CC BY and CC BY-SA require attribution: use the `author`, `attribution`, `license_name`, `license_url`, `page_url`
and `modified` columns, and keep `attribution.csv` with anything you share that is derived from this dataset.
Adaptations of CC BY-SA images must be shared under the terms of their licence.
The CSV files and this card are licensed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/), except the values taken from Wikimedia Commons
(titles, authors, attribution texts, licences).
All images were re-encoded as JPEG (quality 92) without metadata; images wider than 8,192 px were downscaled to
8,192 × 4,096.
## Collection
Downloaded from Wikimedia Commons with `data_utils/scrapers/commons_panos.py` (TODO: link), at most 500 panoramas
per uploader. Panoramas from Poly Haven and ambientCG (part of OpenPano v2) and duplicates found by image content
were removed (`removed_duplicates.csv`). Train / validation are split by uploader.
## Known Issues
- The panoramas were not curated and may be tilted; they include street-level captures from vehicles, aerial
panoramas and a few images that are not photographs.
- Panoramas may show identifiable people or licence plates. To request the removal of an image, contact
Viktor Kocur (viktor.kocur@fmph.uniba.sk) or open a discussion on this repository.
## Usage
Both subsets as one dataset (9,336 training and 555 validation images; the `subset` column tells them apart):
```python
from datasets import DatasetDict, concatenate_datasets, load_dataset
by = load_dataset("LiteCalib/CommonsPano", "by")
by_sa = load_dataset("LiteCalib/CommonsPano", "by-sa")
ds = DatasetDict({split: concatenate_datasets([by[split], by_sa[split]]) for split in by})
```
One subset only:
```python
from datasets import load_dataset
ds = load_dataset("LiteCalib/CommonsPano", "by") # or "by-sa"
```
All files (images and CSVs) as they are stored:
```python
from huggingface_hub import snapshot_download
path = snapshot_download("LiteCalib/CommonsPano", repo_type="dataset")
```
## Citation
```bibtex
TODO
```
|