Datasets:
lihao57 commited on
Commit ·
be02b6d
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/00031546.png +3 -0
- test/images/00031591.png +3 -0
- test/images/00031608.png +3 -0
- test/images/00031697.png +3 -0
- test/images/00031723.png +3 -0
- test/images/00031797.png +3 -0
- test/images/00031810.png +3 -0
- test/images/00031811.png +3 -0
- test/images/00031841.png +3 -0
- test/images/00031975.png +3 -0
- test/images/00032053.png +3 -0
- test/images/00033036.png +3 -0
- test/images/00033307.png +3 -0
- test/images/00033365.png +3 -0
- test/images/00033445.png +3 -0
- test/images/00033539.png +3 -0
- test/images/00033873.png +3 -0
- test/images/00034439.png +3 -0
- test/images/00035148.png +3 -0
- test/images/00035223.png +3 -0
- test/images/00035228.png +3 -0
- test/images/00035326.png +3 -0
- test/images/00035343.png +3 -0
- test/images/00035585.png +3 -0
- test/images/00035608.png +3 -0
- test/images/00035610.png +3 -0
- test/images/00035796.png +3 -0
- test/images/00036227.png +3 -0
- test/images/00036228.png +3 -0
- test/images/00036242.png +3 -0
- test/images/00036277.png +3 -0
- test/images/00036384.png +3 -0
- test/images/00036517.png +3 -0
- test/images/00036609.png +3 -0
- test/images/00036796.png +3 -0
- test/images/00036808.png +3 -0
- test/images/00036868.png +3 -0
- test/images/00036977.png +3 -0
- test/images/00037040.png +3 -0
- test/images/00037045.png +3 -0
- test/images/00037060.png +3 -0
- test/images/00037075.png +3 -0
- test/images/00037184.png +3 -0
- test/images/00037187.png +3 -0
- test/images/00037205.png +3 -0
- test/images/00037212.png +3 -0
- test/images/00037254.png +3 -0
- test/images/00037266.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/F-Wireframe
|
| 3 |
+
pretty_name: F-Wireframe Dataset
|
| 4 |
+
license: mit
|
| 5 |
+
tags:
|
| 6 |
+
- computer-vision
|
| 7 |
+
- line-segment-detection
|
| 8 |
+
- wireframe-parsing
|
| 9 |
+
- fisheye image
|
| 10 |
+
size_categories: n<1K
|
| 11 |
+
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# F-Wireframe 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 F-Wireframe dataset, designed for fisheye image line segment detection.
|
| 21 |
+
|
| 22 |
+
## Summary
|
| 23 |
+
|
| 24 |
+
The F-Wireframe dataset is derived from the [Wireframe](https://huggingface.co/datasets/lh9171338/Wireframe) dataset by distorting images with the fisheye distortion model, where the fisheye distortion coefficient of each image is randomly generated.
|
| 25 |
+
|
| 26 |
+
Number of samples:
|
| 27 |
+
- Train: 5,000
|
| 28 |
+
- Test: 462
|
| 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/F-Wireframe --local-dir ./
|
| 37 |
+
```
|
| 38 |
+
|
| 39 |
+
- Download with Git
|
| 40 |
+
|
| 41 |
+
```shell
|
| 42 |
+
git lfs install
|
| 43 |
+
git clone https://huggingface.co/datasets/lh9171338/F-Wireframe
|
| 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/F-Wireframe")
|
| 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/F-Wireframe", 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: 5000
|
| 73 |
+
# })
|
| 74 |
+
# test: Dataset({
|
| 75 |
+
# features: ['image', 'image_file', 'image_size', 'camera_type', 'camera_coeff', 'lines'],
|
| 76 |
+
# num_rows: 462
|
| 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: 5000
|
| 94 |
+
# })
|
| 95 |
+
# test: Dataset({
|
| 96 |
+
# features: ['image', 'image_file', 'image_size', 'camera_type', 'camera_coeff', 'lines'],
|
| 97 |
+
# num_rows: 462
|
| 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/00031546.png
ADDED
|
Git LFS Details
|
test/images/00031591.png
ADDED
|
Git LFS Details
|
test/images/00031608.png
ADDED
|
Git LFS Details
|
test/images/00031697.png
ADDED
|
Git LFS Details
|
test/images/00031723.png
ADDED
|
Git LFS Details
|
test/images/00031797.png
ADDED
|
Git LFS Details
|
test/images/00031810.png
ADDED
|
Git LFS Details
|
test/images/00031811.png
ADDED
|
Git LFS Details
|
test/images/00031841.png
ADDED
|
Git LFS Details
|
test/images/00031975.png
ADDED
|
Git LFS Details
|
test/images/00032053.png
ADDED
|
Git LFS Details
|
test/images/00033036.png
ADDED
|
Git LFS Details
|
test/images/00033307.png
ADDED
|
Git LFS Details
|
test/images/00033365.png
ADDED
|
Git LFS Details
|
test/images/00033445.png
ADDED
|
Git LFS Details
|
test/images/00033539.png
ADDED
|
Git LFS Details
|
test/images/00033873.png
ADDED
|
Git LFS Details
|
test/images/00034439.png
ADDED
|
Git LFS Details
|
test/images/00035148.png
ADDED
|
Git LFS Details
|
test/images/00035223.png
ADDED
|
Git LFS Details
|
test/images/00035228.png
ADDED
|
Git LFS Details
|
test/images/00035326.png
ADDED
|
Git LFS Details
|
test/images/00035343.png
ADDED
|
Git LFS Details
|
test/images/00035585.png
ADDED
|
Git LFS Details
|
test/images/00035608.png
ADDED
|
Git LFS Details
|
test/images/00035610.png
ADDED
|
Git LFS Details
|
test/images/00035796.png
ADDED
|
Git LFS Details
|
test/images/00036227.png
ADDED
|
Git LFS Details
|
test/images/00036228.png
ADDED
|
Git LFS Details
|
test/images/00036242.png
ADDED
|
Git LFS Details
|
test/images/00036277.png
ADDED
|
Git LFS Details
|
test/images/00036384.png
ADDED
|
Git LFS Details
|
test/images/00036517.png
ADDED
|
Git LFS Details
|
test/images/00036609.png
ADDED
|
Git LFS Details
|
test/images/00036796.png
ADDED
|
Git LFS Details
|
test/images/00036808.png
ADDED
|
Git LFS Details
|
test/images/00036868.png
ADDED
|
Git LFS Details
|
test/images/00036977.png
ADDED
|
Git LFS Details
|
test/images/00037040.png
ADDED
|
Git LFS Details
|
test/images/00037045.png
ADDED
|
Git LFS Details
|
test/images/00037060.png
ADDED
|
Git LFS Details
|
test/images/00037075.png
ADDED
|
Git LFS Details
|
test/images/00037184.png
ADDED
|
Git LFS Details
|
test/images/00037187.png
ADDED
|
Git LFS Details
|
test/images/00037205.png
ADDED
|
Git LFS Details
|
test/images/00037212.png
ADDED
|
Git LFS Details
|
test/images/00037254.png
ADDED
|
Git LFS Details
|
test/images/00037266.png
ADDED
|
Git LFS Details
|