Run this model with HF Jobs
Run SPRIGHT-T2I/spright-t2i-sd2 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/SPRIGHT-T2I/spright-t2i-sd2. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/SPRIGHT-T2I/spright-t2i-sd2 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use SPRIGHT-T2I/spright-t2i-sd2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use SPRIGHT-T2I/spright-t2i-sd2 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("SPRIGHT-T2I/spright-t2i-sd2", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Update README.md
Browse files3 unmodified lines45678910101 unmodified lines1121131141151161171181191201211221231241251261271281291301311321331343 unmodified lines# SPRIGHT-T2I Model CardThe SPRIGHT-T2I model is a text-to-image diffusion model with high spatial coherency. It was first introduced in [Getting it Right: Improving Spatial Consistency in Text-to-Image Models](https://),authored by Agneet Chatterjee<sup>\*</sup>, Gabriela Ben Melech Stan<sup>*</sup>, Estelle Aflalo, Sayak Paul, Dhruba Ghosh,Tejas Gokhale, Ludwig Schmidt, Hannaneh Hajishirzi, Vasudev Lal, Chitta Baral, and Yezhou Yang. _(<sup>\*</sup>denotes equal contributions)_101 unmodified lines|Method |OA(%) β|VISOR-4(%) β|T2I-CompBench β|FID β|CMMD β||------------------|-------|------------|---------------|-----|------||SD v2.1 |47.83 |4.70 |0.1507 |21.646|1.060 ||SPRIGHT-T2I (ours)|60.68 |16.15 |0.2133 |16.149|0.512 |Our key findings are:- We increase the VISOR Object Accuracy (OA) score by 26.86%, indicating that we are much better at generating objects mentioned in the input prompt.- VISOR-4 score of 16.15% denotes that for a given input prompt, we consistently generate a spatially accurate image.- Improve on all aspects of the VISOR score while improving the ZS-FID and CMMD score on COCO-30K images by 23.74% and 51.69%, respectively.- Enhance the ability to generate 1 and 2 objects, along with generating the correct number of objects, as indicated by evaluation on the [GenEval](https://github.com/djghosh13/geneval) benchmark.### Model Resources- **Dataset**: [SPRIGHT Dataset](https://huggingface.co/datasets/SPRIGHT-T2I/spright)- **Repository:** [SPRIGHT-T2I GitHub Repository](https://github.com/orgs/SPRIGHT-T2I)- **Paper:** [Getting it Right: Improving Spatial Consistency in Text-to-Image Models](https://)- **Demo:** [SPRIGHT-T2I on Spaces](https://huggingface.co/spaces/SPRIGHT-T2I/SPRIGHT-T2I)- **Project Website**: [SPRIGHT Website](https://spright-t2i.github.io/)## CitationComing soon3 unmodified lines45678910101 unmodified lines1121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421433 unmodified lines# SPRIGHT-T2I Model CardThe SPRIGHT-T2I model is a text-to-image diffusion model with high spatial coherency. It was first introduced in [Getting it Right: Improving Spatial Consistency in Text-to-Image Models](https://arxiv.org/abs/2404.01197),authored by Agneet Chatterjee<sup>\*</sup>, Gabriela Ben Melech Stan<sup>*</sup>, Estelle Aflalo, Sayak Paul, Dhruba Ghosh,Tejas Gokhale, Ludwig Schmidt, Hannaneh Hajishirzi, Vasudev Lal, Chitta Baral, and Yezhou Yang. _(<sup>\*</sup>denotes equal contributions)_101 unmodified lines|Method |OA(%) β|VISOR-4(%) β|T2I-CompBench β|FID β|CMMD β||------------------|-------|------------|---------------|-----|------||SD v2.1 |47.83 |4.70 |0.1507 |21.646|0.703 ||SPRIGHT-T2I (ours)|60.68 |16.15 |0.2133 |16.149|0.512 |Our key findings are:- We increase the VISOR Object Accuracy (OA) score by 26.86%, indicating that we are much better at generating objects mentioned in the input prompt.- VISOR-4 score of 16.15% denotes that for a given input prompt, we consistently generate a spatially accurate image.- Improve on all aspects of the VISOR score while improving the ZS-FID and CMMD score on COCO-30K images by 23.74% and 27.16%, respectively.- Enhance the ability to generate 1 and 2 objects, along with generating the correct number of objects, as indicated by evaluation on the [GenEval](https://github.com/djghosh13/geneval) benchmark.### Model Resources- **Dataset**: [SPRIGHT Dataset](https://huggingface.co/datasets/SPRIGHT-T2I/spright)- **Repository:** [SPRIGHT-T2I GitHub Repository](https://github.com/orgs/SPRIGHT-T2I)- **Paper:** [Getting it Right: Improving Spatial Consistency in Text-to-Image Models](https://arxiv.org/abs/2404.01197)- **Demo:** [SPRIGHT-T2I on Spaces](https://huggingface.co/spaces/SPRIGHT-T2I/SPRIGHT-T2I)- **Project Website**: [SPRIGHT Website](https://spright-t2i.github.io/)## Citation```bibtex@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}}```
README.md+14-5