Run this model with HF Jobs
Run Sentovara/Sentinel-Image-Turbo 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/Sentovara/Sentinel-Image-Turbo. 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/Sentovara/Sentinel-Image-Turbo 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 Sentovara/Sentinel-Image-Turbo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Sentovara/Sentinel-Image-Turbo with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Sentovara/Sentinel-Image-Turbo", 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
|
Download README.md from Sentovara/Sentinel-Image-Turbo: direct link, hf CLI and curl.
- Browser
- Download file 3.76 kB
-
https://huggingface.co/Sentovara/Sentinel-Image-Turbo/resolve/main/README.md
- Command line
-
hf download hf://Sentovara/Sentinel-Image-Turbo/README.md
-
curl -L -o README.md https://huggingface.co/Sentovara/Sentinel-Image-Turbo/resolve/main/README.md
3.76 kB
| license: other | |
| license_name: stability-ai-community | |
| license_link: LICENSE.md | |
| base_model: stabilityai/sd-turbo | |
| pipeline_tag: text-to-image | |
| library_name: diffusers | |
| tags: | |
| - text-to-image | |
| - sd-turbo | |
| - one-step | |
| - sentovara | |
| # Sentinel-Image-Turbo | |
| **Powered by Stability AI.** | |
| Sentinel-Image-Turbo is SD-Turbo with a Sentovara fine-tune merged in. It still draws a 512×512 picture in **one step**, at the same speed and size as SD-Turbo, and it is a little better at **counting objects** and **putting objects in the right place**. | |
| Led by Jonathan Harriss, who chose the model, set the method and made every decision. Designed, run and documented with Claude (Anthropic). | |
| ## Results | |
| Scores are the % of test pictures marked correct, using the 553 GenEval prompts (4 pictures each) and our own GenEval-style checker (OWLv2 object detector + CLIP ViT-L/14 for colours). This is **not** the official GenEval detector, so compare these numbers with each other, not with published GenEval scores. | |
| | Task | SD-Turbo, 1 step | **Sentinel, 1 step** | SD-Turbo, 4 steps | **Sentinel, 4 steps** | | |
| |---|---|---|---|---| | |
| | Single object | 100.0 | 99.7 | 98.1 | 99.1 | | |
| | Two objects | 63.6 | 59.8 | 54.5 | 60.9 | | |
| | Counting | 31.9 | **34.7** | 33.8 | 33.1 | | |
| | Colours | 89.1 | 87.2 | 85.1 | 86.2 | | |
| | Position | 7.2 | **9.0** | 7.5 | **10.5** | | |
| | Colour attribution | 10.5 | 8.5 | 9.2 | **11.2** | | |
| | **Average** | **50.4** | **49.8** | **48.0** | **50.2** | | |
| - At 1 step: better counting (+2.8) and position (+1.8); colour attribution is 2.0 lower and two-object scenes 3.8 lower. | |
| - At 4 steps: ahead of SD-Turbo on 5 of 6 tasks, best average of all our runs. | |
| - **Blind eye test:** 20 shuffled side-by-side pairs, same prompt and seed. Picked SD-Turbo 10 times, Sentinel 7, "can't tell" 3. That split is well within chance: by eye the two look about equally good. | |
|  | |
| ## How it was made | |
| 1. SD-Turbo drew up to 8 tries per training prompt (counting, colour attribution and position). An automatic checker kept the first try that was correct: 5,000 pictures. | |
| 2. Because every try's starting noise is known, training could show the model "this noise should have become this correct picture", including the noise of tries that had failed. | |
| 3. A first attempt trained it the ordinary multi-step way and the one-step pictures went blurry. Training in one step fixed most of that but left pictures soft. Adding a judge network (frozen DINOv2-small features with small trainable heads) that tells real kept pictures from the model's own kept the pictures sharp. | |
| 4. The final run weighted the picture-matching lesson 4.0 against the judge's 0.5, for 2 passes over 17,006 pairs, with a LoRA of rank 16 on the attention layers, which was then merged into the UNet. | |
| The four AWS training runs plus the merge cost about $33 in cloud time. | |
| ## Use | |
| ```python | |
| import torch | |
| from diffusers import AutoPipelineForText2Image | |
| pipe = AutoPipelineForText2Image.from_pretrained("Sentovara/Sentinel-Image-Turbo", torch_dtype=torch.float16).to("cuda") | |
| image = pipe("a photo of three pizzas", num_inference_steps=1, guidance_scale=0.0).images[0] | |
| image.save("pizzas.png") | |
| ``` | |
| Use `guidance_scale=0.0`. One step is the normal setting; 4 steps gives more detail. | |
| ## Licence | |
| Sentinel-Image-Turbo is a derivative of SD-Turbo and is released under the **Stability AI Community License** (see `LICENSE.md` and `NOTICE.txt`). Research and non-commercial use are free. Commercial use requires registering with Stability AI, and organisations with more than USD 1,000,000 in annual revenue need a separate licence from Stability AI. Use must follow Stability AI's Acceptable Use Policy. | |