Datasets:
lihao57 commited on
Commit ·
f02e00a
0
Parent(s):
initial commit
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +60 -0
- README.md +125 -0
- test/images/1_000004.png +3 -0
- test/images/1_000009.png +3 -0
- test/images/1_000012.png +3 -0
- test/images/1_000013.png +3 -0
- test/images/1_000016.png +3 -0
- test/images/1_000022.png +3 -0
- test/images/1_000024.png +3 -0
- test/images/1_000029.png +3 -0
- test/images/1_000032.png +3 -0
- test/images/1_000034.png +3 -0
- test/images/1_000037.png +3 -0
- test/images/1_000038.png +3 -0
- test/images/1_000041.png +3 -0
- test/images/1_000044.png +3 -0
- test/images/1_000047.png +3 -0
- test/images/1_000052.png +3 -0
- test/images/1_000057.png +3 -0
- test/images/1_000063.png +3 -0
- test/images/1_000064.png +3 -0
- test/images/1_000077.png +3 -0
- test/images/1_000084.png +3 -0
- test/images/1_000093.png +3 -0
- test/images/1_000096.png +3 -0
- test/images/1_000100.png +3 -0
- test/images/1_000102.png +3 -0
- test/images/1_000107.png +3 -0
- test/images/1_000112.png +3 -0
- test/images/1_000114.png +3 -0
- test/images/1_000116.png +3 -0
- test/images/1_000117.png +3 -0
- test/images/1_000119.png +3 -0
- test/images/1_000122.png +3 -0
- test/images/1_000129.png +3 -0
- test/images/1_000142.png +3 -0
- test/images/1_000146.png +3 -0
- test/images/1_000149.png +3 -0
- test/images/1_000151.png +3 -0
- test/images/1_000155.png +3 -0
- test/images/1_000158.png +3 -0
- test/images/1_000159.png +3 -0
- test/images/1_000160.png +3 -0
- test/images/1_000162.png +3 -0
- test/images/1_000171.png +3 -0
- test/images/1_000176.png +3 -0
- test/images/1_000177.png +3 -0
- test/images/1_000186.png +3 -0
- test/images/1_000187.png +3 -0
- test/images/1_000188.png +3 -0
.gitattributes
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.mds filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
# Audio files - uncompressed
|
| 39 |
+
*.pcm filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
*.sam filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
*.raw filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
# Audio files - compressed
|
| 43 |
+
*.aac filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
*.flac filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
*.ogg filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
*.wav filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
# Image files - uncompressed
|
| 49 |
+
*.bmp filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
*.gif filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
*.tiff filter=lfs diff=lfs merge=lfs -text
|
| 53 |
+
# Image files - compressed
|
| 54 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 55 |
+
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 56 |
+
*.webp filter=lfs diff=lfs merge=lfs -text
|
| 57 |
+
# Video files - compressed
|
| 58 |
+
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 59 |
+
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 60 |
+
*.jsonl filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
datasets: lh9171338/SS180
|
| 3 |
+
pretty_name: SS180 Dataset
|
| 4 |
+
license: mit
|
| 5 |
+
tags:
|
| 6 |
+
- computer-vision
|
| 7 |
+
- line-segment-detection
|
| 8 |
+
- wireframe-parsing
|
| 9 |
+
- fisheye image
|
| 10 |
+
size_categories: 1K<n<10
|
| 11 |
+
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# SS180 Dataset
|
| 15 |
+
|
| 16 |
+
<p align="center">
|
| 17 |
+
✏️ <a href="https://github.com/lh9171338/ULSD-ISPRS"><b>Github</b></a>   |   📑 <a href="https://www.sciencedirect.com/science/article/abs/pii/S0924271621001623">Paper</a>    |   🖼️ <a href="https://huggingface.co/spaces/lh9171338/LineViewer">Viewer</a>
|
| 18 |
+
</p>
|
| 19 |
+
|
| 20 |
+
This is the SS180 dataset, designed for fisheye image line segment detection.
|
| 21 |
+
|
| 22 |
+
## Summary
|
| 23 |
+
|
| 24 |
+
The SS180 dataset is derived from the [SS360](https://huggingface.co/datasets/lh9171338/SS360) dataset by converting spherical images into 180-degree fisheye images.
|
| 25 |
+
|
| 26 |
+
Number of samples:
|
| 27 |
+
- Train: 1900
|
| 28 |
+
- Test: 236
|
| 29 |
+
|
| 30 |
+
## Download
|
| 31 |
+
|
| 32 |
+
- Download with huggingface-hub
|
| 33 |
+
|
| 34 |
+
```shell
|
| 35 |
+
python3 -m pip install huggingface-hub
|
| 36 |
+
huggingface-cli download --repo-type dataset lh9171338/SS180 --local-dir ./
|
| 37 |
+
```
|
| 38 |
+
|
| 39 |
+
- Download with Git
|
| 40 |
+
|
| 41 |
+
```shell
|
| 42 |
+
git lfs install
|
| 43 |
+
git clone https://huggingface.co/datasets/lh9171338/SS180
|
| 44 |
+
```
|
| 45 |
+
|
| 46 |
+
## Usage
|
| 47 |
+
|
| 48 |
+
- Load the dataset from Hugging Face Hub
|
| 49 |
+
|
| 50 |
+
```python
|
| 51 |
+
from datasets import load_dataset
|
| 52 |
+
|
| 53 |
+
ds = load_dataset("lh9171338/SS180")
|
| 54 |
+
# or load from `refs/convert/parquet` for acceleration
|
| 55 |
+
# from datasets import load_dataset, Features, Image, Sequence, Value
|
| 56 |
+
# features = Features({
|
| 57 |
+
# "image": Image(),
|
| 58 |
+
# "image_file": Value("string"),
|
| 59 |
+
# "image_size": Sequence(Value("int32")),
|
| 60 |
+
# "camera_type": Value("string"),
|
| 61 |
+
# "camera_coeff": {
|
| 62 |
+
# "K": Sequence(Sequence(Value("float32"))),
|
| 63 |
+
# "D": Sequence(Value("float32")),
|
| 64 |
+
# },
|
| 65 |
+
# "lines": Sequence(Sequence(Sequence(Value("float32")))),
|
| 66 |
+
# })
|
| 67 |
+
# ds = load_dataset("lh9171338/SS180", features=features, revision="refs/convert/parquet")
|
| 68 |
+
print(ds)
|
| 69 |
+
# DatasetDict({
|
| 70 |
+
# train: Dataset({
|
| 71 |
+
# features: ['image', 'image_file', 'image_size', 'camera_type', 'camera_coeff', 'lines'],
|
| 72 |
+
# num_rows: 1900
|
| 73 |
+
# })
|
| 74 |
+
# test: Dataset({
|
| 75 |
+
# features: ['image', 'image_file', 'image_size', 'camera_type', 'camera_coeff', 'lines'],
|
| 76 |
+
# num_rows: 236
|
| 77 |
+
# })
|
| 78 |
+
# })
|
| 79 |
+
print(ds["test"][0].keys())
|
| 80 |
+
# dict_keys(['file_name', 'image_file', 'image_size', 'camera_type', 'camera_coeff', 'lines'])
|
| 81 |
+
```
|
| 82 |
+
|
| 83 |
+
- Load the dataset from local
|
| 84 |
+
|
| 85 |
+
```python
|
| 86 |
+
from datasets import load_dataset
|
| 87 |
+
|
| 88 |
+
ds = load_dataset("imagefolder", data_dir=".")
|
| 89 |
+
print(ds)
|
| 90 |
+
# DatasetDict({
|
| 91 |
+
# train: Dataset({
|
| 92 |
+
# features: ['image', 'image_file', 'image_size', 'camera_type', 'camera_coeff', 'lines'],
|
| 93 |
+
# num_rows: 1900
|
| 94 |
+
# })
|
| 95 |
+
# test: Dataset({
|
| 96 |
+
# features: ['image', 'image_file', 'image_size', 'camera_type', 'camera_coeff', 'lines'],
|
| 97 |
+
# num_rows: 236
|
| 98 |
+
# })
|
| 99 |
+
# })
|
| 100 |
+
print(ds["test"][0].keys())
|
| 101 |
+
# dict_keys(['file_name', 'image_file', 'image_size', 'camera_type', 'camera_coeff', 'lines'])
|
| 102 |
+
```
|
| 103 |
+
|
| 104 |
+
- Load the dataset with jsonl files
|
| 105 |
+
```python
|
| 106 |
+
import jsonlines
|
| 107 |
+
|
| 108 |
+
with jsonlines.open("test/metadata.jsonl") as reader:
|
| 109 |
+
infos = list(reader)
|
| 110 |
+
print(infos[0].keys())
|
| 111 |
+
# dict_keys(['file_name', 'image_file', 'image_size', 'camera_type', 'camera_coeff', 'lines'])
|
| 112 |
+
```
|
| 113 |
+
|
| 114 |
+
## Citation
|
| 115 |
+
|
| 116 |
+
```
|
| 117 |
+
@article{LI2021187,
|
| 118 |
+
title = {ULSD: Unified line segment detection across pinhole, fisheye, and spherical cameras},
|
| 119 |
+
author = {Hao Li and Huai Yu and Jinwang Wang and Wen Yang and Lei Yu and Sebastian Scherer},
|
| 120 |
+
journal = {ISPRS Journal of Photogrammetry and Remote Sensing},
|
| 121 |
+
volume = {178},
|
| 122 |
+
pages = {187-202},
|
| 123 |
+
year = {2021},
|
| 124 |
+
}
|
| 125 |
+
```
|
test/images/1_000004.png
ADDED
|
Git LFS Details
|
test/images/1_000009.png
ADDED
|
Git LFS Details
|
test/images/1_000012.png
ADDED
|
Git LFS Details
|
test/images/1_000013.png
ADDED
|
Git LFS Details
|
test/images/1_000016.png
ADDED
|
Git LFS Details
|
test/images/1_000022.png
ADDED
|
Git LFS Details
|
test/images/1_000024.png
ADDED
|
Git LFS Details
|
test/images/1_000029.png
ADDED
|
Git LFS Details
|
test/images/1_000032.png
ADDED
|
Git LFS Details
|
test/images/1_000034.png
ADDED
|
Git LFS Details
|
test/images/1_000037.png
ADDED
|
Git LFS Details
|
test/images/1_000038.png
ADDED
|
Git LFS Details
|
test/images/1_000041.png
ADDED
|
Git LFS Details
|
test/images/1_000044.png
ADDED
|
Git LFS Details
|
test/images/1_000047.png
ADDED
|
Git LFS Details
|
test/images/1_000052.png
ADDED
|
Git LFS Details
|
test/images/1_000057.png
ADDED
|
Git LFS Details
|
test/images/1_000063.png
ADDED
|
Git LFS Details
|
test/images/1_000064.png
ADDED
|
Git LFS Details
|
test/images/1_000077.png
ADDED
|
Git LFS Details
|
test/images/1_000084.png
ADDED
|
Git LFS Details
|
test/images/1_000093.png
ADDED
|
Git LFS Details
|
test/images/1_000096.png
ADDED
|
Git LFS Details
|
test/images/1_000100.png
ADDED
|
Git LFS Details
|
test/images/1_000102.png
ADDED
|
Git LFS Details
|
test/images/1_000107.png
ADDED
|
Git LFS Details
|
test/images/1_000112.png
ADDED
|
Git LFS Details
|
test/images/1_000114.png
ADDED
|
Git LFS Details
|
test/images/1_000116.png
ADDED
|
Git LFS Details
|
test/images/1_000117.png
ADDED
|
Git LFS Details
|
test/images/1_000119.png
ADDED
|
Git LFS Details
|
test/images/1_000122.png
ADDED
|
Git LFS Details
|
test/images/1_000129.png
ADDED
|
Git LFS Details
|
test/images/1_000142.png
ADDED
|
Git LFS Details
|
test/images/1_000146.png
ADDED
|
Git LFS Details
|
test/images/1_000149.png
ADDED
|
Git LFS Details
|
test/images/1_000151.png
ADDED
|
Git LFS Details
|
test/images/1_000155.png
ADDED
|
Git LFS Details
|
test/images/1_000158.png
ADDED
|
Git LFS Details
|
test/images/1_000159.png
ADDED
|
Git LFS Details
|
test/images/1_000160.png
ADDED
|
Git LFS Details
|
test/images/1_000162.png
ADDED
|
Git LFS Details
|
test/images/1_000171.png
ADDED
|
Git LFS Details
|
test/images/1_000176.png
ADDED
|
Git LFS Details
|
test/images/1_000177.png
ADDED
|
Git LFS Details
|
test/images/1_000186.png
ADDED
|
Git LFS Details
|
test/images/1_000187.png
ADDED
|
Git LFS Details
|
test/images/1_000188.png
ADDED
|
Git LFS Details
|