lh9171338/ULSD
Keypoint Detection • Updated
Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
✏️ Github | 📑 Paper | 🖼️ Viewer
This is the SS180 dataset, designed for fisheye image line segment detection.
The SS180 dataset is derived from the SS360 dataset by converting spherical images into 180-degree fisheye images.
Number of samples:
python3 -m pip install huggingface-hub
huggingface-cli download --repo-type dataset lh9171338/SS180 --local-dir ./
git lfs install
git clone https://huggingface.co/datasets/lh9171338/SS180
from datasets import load_dataset
ds = load_dataset("lh9171338/SS180")
# or load from `refs/convert/parquet` for acceleration
# from datasets import load_dataset, Features, Image, Sequence, Value
# features = Features({
# "image": Image(),
# "image_file": Value("string"),
# "image_size": Sequence(Value("int32")),
# "camera_type": Value("string"),
# "camera_coeff": {
# "K": Sequence(Sequence(Value("float32"))),
# "D": Sequence(Value("float32")),
# },
# "lines": Sequence(Sequence(Sequence(Value("float32")))),
# })
# ds = load_dataset("lh9171338/SS180", features=features, revision="refs/convert/parquet")
print(ds)
# DatasetDict({
# train: Dataset({
# features: ['image', 'image_file', 'image_size', 'camera_type', 'camera_coeff', 'lines'],
# num_rows: 1900
# })
# test: Dataset({
# features: ['image', 'image_file', 'image_size', 'camera_type', 'camera_coeff', 'lines'],
# num_rows: 236
# })
# })
print(ds["test"][0].keys())
# dict_keys(['file_name', 'image_file', 'image_size', 'camera_type', 'camera_coeff', 'lines'])
from datasets import load_dataset
ds = load_dataset("imagefolder", data_dir=".")
print(ds)
# DatasetDict({
# train: Dataset({
# features: ['image', 'image_file', 'image_size', 'camera_type', 'camera_coeff', 'lines'],
# num_rows: 1900
# })
# test: Dataset({
# features: ['image', 'image_file', 'image_size', 'camera_type', 'camera_coeff', 'lines'],
# num_rows: 236
# })
# })
print(ds["test"][0].keys())
# dict_keys(['file_name', 'image_file', 'image_size', 'camera_type', 'camera_coeff', 'lines'])
import jsonlines
with jsonlines.open("test/metadata.jsonl") as reader:
infos = list(reader)
print(infos[0].keys())
# dict_keys(['file_name', 'image_file', 'image_size', 'camera_type', 'camera_coeff', 'lines'])
@article{LI2021187,
title = {ULSD: Unified line segment detection across pinhole, fisheye, and spherical cameras},
author = {Hao Li and Huai Yu and Jinwang Wang and Wen Yang and Lei Yu and Sebastian Scherer},
journal = {ISPRS Journal of Photogrammetry and Remote Sensing},
volume = {178},
pages = {187-202},
year = {2021},
}