SPRIGHT (SPatially RIGHT) is the first spatially focused, large scale vision-language dataset. It was built by re-captioning ∼6 million images from 4 widely-used datasets:
This repository contains the re-captioned data from CC12M and Segment Anything, while the COCO data is present here. We do not release images from LAION, as the parent images are currently private.
Below are some illustrative examples from the SPRIGHT dataset, where the captions are correct in its entirety; both in capturing the spatial relationships and overall description of the image.
We also share some illustrative examples from the SPRIGHT dataset, where the captions are not completely correct.

We re-caption a total of 2.3 million images from the CC-12M data taset, filtering out images of resolution less than 768.
We re-caption 3.5 million images as part of our process. Since SA has all human faces blurred, we filter out images which contain blurring i.e. we filter our images where humans are detected (using the Owl-V2 object detector). Since SA does not have ground-truth captions, we also generate its general captions using the CoCa captioning model.
Each tar file contains 10k samples. Each sample is composed of:
In order to load the data, you can use the load_data.py script. The metadata.json file contains the size and the split for each tar file. We also provide a script
robust_upload.py used to efficiently upload the data to Hugging Face Hub.
Note: filenames inside each .tar partition do NOT contain leading zeroes, which may confound some sorting mechanism (eg: python's sort() function); users that download and extract data or filenames from the .tar partions should be aware of this and use a "natural sort" style function to accomodate this convention.
We leverage LLaVA-1.5-13B to produce synthetic spatial captions, and use the following prompt to create the SPRIGHT dataset:
"Using 2 sentences, describe the spatial relationships seen in the image. You can use words like left/right, above/below, front/behind, far/near/adjacent, inside/outside. Also describe relative sizes of objects seen in the image."
We thank Lucain from the Hugging Face team for helping us with the robust_upload.py script.
@misc{chatterjee2024getting,
title={Getting it Right: Improving Spatial Consistency in Text-to-Image Models},
author={Agneet Chatterjee and Gabriela Ben Melech Stan and Estelle Aflalo and Sayak Paul and Dhruba Ghosh and Tejas Gokhale and Ludwig Schmidt and Hannaneh Hajishirzi and Vasudev Lal and Chitta Baral and Yezhou Yang},
year={2024},
eprint={2404.01197},
archivePrefix={arXiv},
primaryClass={cs.CV}
}
SPRIGHT-T2I/spright is licensed under the Intel Research License. All Rights Reserved.
Intel is committed to respecting human rights and avoiding causing or contributing to adverse impacts on human rights. See Intel’s Global Human Rights Principles. Intel’s products and software are intended only to be used in applications that do not cause or contribute to adverse impacts on human rights.
SPRIGHT (SPatially RIGHT) is the first spatially focused, large scale vision-language dataset. It was built by re-captioning ∼6 million images from 4 widely-used datasets:
This repository contains the re-captioned data from CC12M and Segment Anything, while the COCO data is present here. We do not release images from LAION, as the parent images are currently private.
Below are some illustrative examples from the SPRIGHT dataset, where the captions are correct in its entirety; both in capturing the spatial relationships and overall description of the image.
We also share some illustrative examples from the SPRIGHT dataset, where the captions are not completely correct.

We re-caption a total of 2.3 million images from the CC-12M data taset, filtering out images of resolution less than 768.
We re-caption 3.5 million images as part of our process. Since SA has all human faces blurred, we filter out images which contain blurring i.e. we filter our images where humans are detected (using the Owl-V2 object detector). Since SA does not have ground-truth captions, we also generate its general captions using the CoCa captioning model.
Each tar file contains 10k samples. Each sample is composed of:
In order to load the data, you can use the load_data.py script. The metadata.json file contains the size and the split for each tar file. We also provide a script
robust_upload.py used to efficiently upload the data to Hugging Face Hub.
Note: filenames inside each .tar partition do NOT contain leading zeroes, which may confound some sorting mechanism (eg: python's sort() function); users that download and extract data or filenames from the .tar partions should be aware of this and use a "natural sort" style function to accomodate this convention.
We leverage LLaVA-1.5-13B to produce synthetic spatial captions, and use the following prompt to create the SPRIGHT dataset:
"Using 2 sentences, describe the spatial relationships seen in the image. You can use words like left/right, above/below, front/behind, far/near/adjacent, inside/outside. Also describe relative sizes of objects seen in the image."
We thank Lucain from the Hugging Face team for helping us with the robust_upload.py script.
@misc{chatterjee2024getting,
title={Getting it Right: Improving Spatial Consistency in Text-to-Image Models},
author={Agneet Chatterjee and Gabriela Ben Melech Stan and Estelle Aflalo and Sayak Paul and Dhruba Ghosh and Tejas Gokhale and Ludwig Schmidt and Hannaneh Hajishirzi and Vasudev Lal and Chitta Baral and Yezhou Yang},
year={2024},
eprint={2404.01197},
archivePrefix={arXiv},
primaryClass={cs.CV}
}
SPRIGHT-T2I/spright is licensed under the Intel Research License. All Rights Reserved.
Intel is committed to respecting human rights and avoiding causing or contributing to adverse impacts on human rights. See Intel’s Global Human Rights Principles. Intel’s products and software are intended only to be used in applications that do not cause or contribute to adverse impacts on human rights.