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.
File size: 3,761 Bytes
dcd5adc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
---
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.

![Left to right: SD-Turbo 1 step, Sentinel 1 step, SD-Turbo 4 steps, Sentinel 4 steps](assets/compare_grid.jpg)

## 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.