The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: DatasetGenerationError Exception: ReadError Message: unexpected end of data Traceback: Traceback (most recent call last): File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1608, in _prepare_split_single for key, record in generator: File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 687, in wrapped for item in generator(*args, **kwargs): File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/packaged_modules/webdataset/webdataset.py", line 122, in _generate_examples for example_idx, example in enumerate(self._get_pipeline_from_tar(tar_path, tar_iterator)): File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/packaged_modules/webdataset/webdataset.py", line 44, in _get_pipeline_from_tar current_example[field_name.lower()] = f.read() File "/usr/local/lib/python3.9/tarfile.py", line 690, in read raise ReadError("unexpected end of data") tarfile.ReadError: unexpected end of data The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1433, in compute_config_parquet_and_info_response parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet( File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 989, in stream_convert_to_parquet builder._prepare_split( File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1487, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1644, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.exceptions.DatasetGenerationError: An error occurred while generating the dataset
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.
jsonl
unknown | __key__
string | __url__
string |
---|---|---|
"eyJpZCI6ICJzY2VuZV8wMjk2OF82OTEiLCAiY29udmVyc2F0aW9ucyI6IFt7ImZyb20iOiAiaHVtYW4iLCAidmFsdWUiOiAiQXN(...TRUNCATED) | spar/structured3d/qa_jsonl/train/depth_prediction_oo_mv/fill/fill_55888 | hf://datasets/jasonzhango/SPAR-7M@976c19177468eabe64e9e2dd0f0450cd32dacc1f/spar-00.tar.gz |
"eyJpZCI6ICJzY2VuZV8wMDM1MF85MSIsICJjb252ZXJzYXRpb25zIjogW3siZnJvbSI6ICJodW1hbiIsICJ2YWx1ZSI6ICJJZiB(...TRUNCATED) | spar/structured3d/qa_jsonl/train/depth_prediction_oo_mv/sentence/sentence_55892 | hf://datasets/jasonzhango/SPAR-7M@976c19177468eabe64e9e2dd0f0450cd32dacc1f/spar-00.tar.gz |
"eyJpZCI6ICJzY2VuZV8wMzMxOV8xNzYiLCAiY29udmVyc2F0aW9ucyI6IFt7ImZyb20iOiAiaHVtYW4iLCAidmFsdWUiOiAiVGh(...TRUNCATED) | spar/structured3d/qa_jsonl/train/depth_prediction_oo_mv/select/select_55424 | hf://datasets/jasonzhango/SPAR-7M@976c19177468eabe64e9e2dd0f0450cd32dacc1f/spar-00.tar.gz |
"eyJpZCI6ICJzY2VuZV8wMDM1MF8xMiIsICJjb252ZXJzYXRpb25zIjogW3siZnJvbSI6ICJodW1hbiIsICJ2YWx1ZSI6ICJJZiB(...TRUNCATED) | spar/structured3d/qa_jsonl/train/spatial_imagination_oc_mv/sentence/sentence_48526 | hf://datasets/jasonzhango/SPAR-7M@976c19177468eabe64e9e2dd0f0450cd32dacc1f/spar-00.tar.gz |
"eyJpZCI6ICJzY2VuZV8wMjk2OF8xMSIsICJjb252ZXJzYXRpb25zIjogW3siZnJvbSI6ICJodW1hbiIsICJ2YWx1ZSI6ICJXaGl(...TRUNCATED) | spar/structured3d/qa_jsonl/train/distance_infer_center_oc/fill/fill_50488 | hf://datasets/jasonzhango/SPAR-7M@976c19177468eabe64e9e2dd0f0450cd32dacc1f/spar-00.tar.gz |
"eyJpZCI6ICJzY2VuZV8wMzMxOV8xNSIsICJjb252ZXJzYXRpb25zIjogW3siZnJvbSI6ICJodW1hbiIsICJ2YWx1ZSI6ICJJbiB(...TRUNCATED) | spar/structured3d/qa_jsonl/train/distance_infer_center_oc/select/select_37958 | hf://datasets/jasonzhango/SPAR-7M@976c19177468eabe64e9e2dd0f0450cd32dacc1f/spar-00.tar.gz |
"eyJpZCI6ICJzY2VuZV8wMDE4Ml8xMCIsICJjb252ZXJzYXRpb25zIjogW3siZnJvbSI6ICJodW1hbiIsICJ2YWx1ZSI6ICJJbml(...TRUNCATED) | spar/structured3d/qa_jsonl/train/spatial_imagination_oo_mv/sentence/sentence_20642 | hf://datasets/jasonzhango/SPAR-7M@976c19177468eabe64e9e2dd0f0450cd32dacc1f/spar-00.tar.gz |
"eyJpZCI6ICJzY2VuZV8wMDM1MF83IiwgImNvbnZlcnNhdGlvbnMiOiBbeyJmcm9tIjogImh1bWFuIiwgInZhbHVlIjogIlxuQWN(...TRUNCATED) | spar/structured3d/qa_jsonl/train/spatial_imagination_map_mv/sentence/sentence_38540 | hf://datasets/jasonzhango/SPAR-7M@976c19177468eabe64e9e2dd0f0450cd32dacc1f/spar-00.tar.gz |
"eyJpZCI6ICJzY2VuZV8wMjk2OF82MDgiLCAiY29udmVyc2F0aW9ucyI6IFt7ImZyb20iOiAiaHVtYW4iLCAidmFsdWUiOiAiV2h(...TRUNCATED) | spar/structured3d/qa_jsonl/train/distance_prediction_oc_mv/fill/fill_56285 | hf://datasets/jasonzhango/SPAR-7M@976c19177468eabe64e9e2dd0f0450cd32dacc1f/spar-00.tar.gz |
"eyJpZCI6ICJzY2VuZV8wMDM1MF8xMjAiLCAiY29udmVyc2F0aW9ucyI6IFt7ImZyb20iOiAiaHVtYW4iLCAidmFsdWUiOiAiV2h(...TRUNCATED) | spar/structured3d/qa_jsonl/train/distance_prediction_oc_mv/sentence/sentence_56303 | hf://datasets/jasonzhango/SPAR-7M@976c19177468eabe64e9e2dd0f0450cd32dacc1f/spar-00.tar.gz |
π¦ Spatial Perception And Reasoning Dataset (SPAR-7M)
A large-scale vision-language dataset designed for spatial perception and reasoning.
SPAR-7M contains over 7 million QA pairs across 33 diverse spatial tasks, generated from 4,500+ richly annotated 3D indoor scenes. It supports single-view, multi-view, and video-based image inputs, and features both perception and reasoning-oriented question types.
This dataset serves as the foundation for SPAR-Bench, and is suitable for pretraining, multitask learning, and spatial grounding research.
This version supports single-view, multi-view, and video-based inputs.
π₯ Download
We provide two versions of the dataset:
Version | Description |
---|---|
SPAR-7M |
RGB-only images + QA annotations |
SPAR-7M-RGBD |
Includes depths, camera intrinsics, and pose matrices for 3D-aware training |
You can download both versions from Hugging Face:
# Download SPAR-7M (default)
huggingface-cli download jasonzhango/SPAR-7M --repo-type dataset
# Download SPAR-7M-RGBD (with depth and camera parameters)
huggingface-cli download jasonzhango/SPAR-7M-RGBD --repo-type dataset
These datasets are split into multiple .tar.gz parts due to Hugging Face file size limits. After downloading all parts, run the following to extract:
# For SPAR-7M
cat spar-*.tar.gz | tar -xvzf -
# For SPAR-7M-RGBD
cat spar-rgbd-*.tar.gz | tar -xvzf -
Alternatively, if Hugging Face is not accessible, you can use the provided script:
wget https://hf-mirror.com/hfd/hfd.sh
chmod a+x hfd.sh
export HF_ENDPOINT=https://hf-mirror.com
./hfd.sh jasonzhango/SPAR-7M --dataset
./hfd.sh jasonzhango/SPAR-7M-RGBD --dataset
The dataset directory structure is:
spar/
βββ rxr/
βββ scannet/
β βββ images/
β | βββ scene0000_00/
β | βββ image_color/
β | βββ video_color/
β | βββ image_depth/ # only in SPAR-7M-RGBD
β | βββ video_depth/ # only in SPAR-7M-RGBD
β | βββ pose/ # only in SPAR-7M-RGBD
β | βββ video_pose/ # only in SPAR-7M-RGBD
β | βββ intrinsic/ # only in SPAR-7M-RGBD
β | βββ video_idx.txt
β βββ qa_jsonl/
β βββ train/
β | βββ depth_prediction_oo/
β | | βββ fill/
β | | | βββ fill_76837.jsonl
β | | βββ select/
β | | βββ sentence/
β | βββ obj_spatial_relation_oc/
β | βββ spatial_imagination_oo_mv/
β βββ val/
βββ scannetpp/
βββ structured3d/
Each QA task (e.g., depth_prediction_oc
, spatial_relation_oo_mv
, etc.) is organized by task type, with subfolders for different answer formats:
fill/
β numerical or descriptive answersselect/
β multiple choicesentence/
β natural language answers
π Bibtex
If you find this project or dataset helpful, please consider citing our paper:
@article{zhang2025from,
title={From Flatland to Space: Teaching Vision-Language Models to Perceive and Reason in 3D},
author={Zhang, Jiahui and Chen, Yurui and Xu, Yueming and Huang, Ze and Mei, Jilin and Chen, Junhui and Zhou, Yanpeng and Yuan, Yujie and Cai, Xinyue and Huang, Guowei and Quan, Xingyue and Xu, Hang and Zhang, Li},
year={2025},
journal={arXiv preprint arXiv:2503.22976},
}
- Downloads last month
- 291