Datasets:
|
Download README.md from LiteCalib/CommonsPano: direct link, hf CLI and curl.
- Browser
- Download file 4.89 kB
-
https://huggingface.co/datasets/LiteCalib/CommonsPano/resolve/main/README.md
- Command line
-
hf download hf://datasets/LiteCalib/CommonsPano/README.md
-
curl -L -o README.md https://huggingface.co/datasets/LiteCalib/CommonsPano/resolve/main/README.md
4.89 kB
| 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 | |
| ``` | |