Text-to-Image
Diffusers
Safetensors
StableDiffusionPipeline
clover-image
diffusion
stable-diffusion
knowledge-distillation
compact
local-inference
Instructions to use neonforestmist/Clover-Image-Tiny with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use neonforestmist/Clover-Image-Tiny with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("neonforestmist/Clover-Image-Tiny", torch_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
Release Clover Image Tiny model card and banner
Browse files- .gitattributes +1 -0
- DATA_PROVENANCE.md +3 -3
- MODEL_DATA_LICENSES.md +9 -10
- README.md +233 -254
- assets/clover-image-tiny-banner.png +3 -0
- checksums.json +6 -5
- examples/generate.py +3 -3
- research_preview.json +29 -8
.gitattributes
CHANGED
|
@@ -35,3 +35,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
assets/clover-image-tiny-local-mps-library-seed-1469.png filter=lfs diff=lfs merge=lfs -text
|
| 37 |
assets/clover-image-tiny-paired-contact-sheet.png filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
assets/clover-image-tiny-local-mps-library-seed-1469.png filter=lfs diff=lfs merge=lfs -text
|
| 37 |
assets/clover-image-tiny-paired-contact-sheet.png filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
assets/clover-image-tiny-banner.png filter=lfs diff=lfs merge=lfs -text
|
DATA_PROVENANCE.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
# Data Provenance — Clover Image Tiny
|
| 2 |
|
| 3 |
This document records the portable data identity for the exact Stage B
|
| 4 |
calibration checkpoint in this package. It deliberately contains no local
|
|
@@ -74,5 +74,5 @@ therefore not available to this project. The upstream checkpoints and their
|
|
| 74 |
declared CreativeML OpenRAIL-M licenses are pinned and disclosed, but that is
|
| 75 |
not equivalent to a complete foundational dataset audit.
|
| 76 |
|
| 77 |
-
This inherited
|
| 78 |
-
|
|
|
|
| 1 |
+
# Data Provenance — Clover Image Tiny
|
| 2 |
|
| 3 |
This document records the portable data identity for the exact Stage B
|
| 4 |
calibration checkpoint in this package. It deliberately contains no local
|
|
|
|
| 74 |
declared CreativeML OpenRAIL-M licenses are pinned and disclosed, but that is
|
| 75 |
not equivalent to a complete foundational dataset audit.
|
| 76 |
|
| 77 |
+
This inherited scope remains disclosed so downstream users can assess the
|
| 78 |
+
public release with its complete known lineage context.
|
MODEL_DATA_LICENSES.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
| 1 |
-
# Model and Data Licenses — Clover Image Tiny
|
| 2 |
|
| 3 |
-
This is
|
| 4 |
-
|
| 5 |
-
|
| 6 |
|
| 7 |
| Component | Exact identity | License/status | Consequence |
|
| 8 |
|---|---|---|---|
|
| 9 |
-
|
|
| 10 |
| Starting student | `nota-ai/bk-sdm-tiny-2m@aad3e0e8ba61b7cb9f64869dc4e586f8ad9d3665` | Pinned model card declares CreativeML OpenRAIL-M | Derivative-weight obligations apply |
|
| 11 |
| Frozen teacher | `CompVis/stable-diffusion-v1-4@133a221b8aa7292a167afc5127cb63fb5005638b` | Pinned model card declares CreativeML OpenRAIL-M | Distillation from outputs and activations retains derivative-weight obligations |
|
| 12 |
| Tokenizer and text encoder | Byte-identical components in the two pinned pipelines | CreativeML OpenRAIL-M lineage | Bundled as upstream model components |
|
|
@@ -30,9 +30,9 @@ The separately bundled Apache-2.0 project-code license is 9,147 bytes with
|
|
| 30 |
SHA-256
|
| 31 |
`e26a0375b714267325c27905ba947fdc41ebc0b7a36940a49ae12379ed6208d6`.
|
| 32 |
|
| 33 |
-
|
| 34 |
-
or waive OpenRAIL-M restrictions. Users must review and follow the
|
| 35 |
-
terms for copying, redistribution, modification, and use.
|
| 36 |
|
| 37 |
## Data terms
|
| 38 |
|
|
@@ -53,5 +53,4 @@ foundational example behind the upstream teacher.
|
|
| 53 |
|
| 54 |
Pinned model IDs, revisions, and license declarations are evidence of weight
|
| 55 |
lineage; they are not substitutes for foundational data provenance. This
|
| 56 |
-
|
| 57 |
-
**RESEARCH PREVIEW · PRODUCTION PILOT · NOT RELEASE-READY**.
|
|
|
|
| 1 |
+
# Model and Data Licenses — Clover Image Tiny
|
| 2 |
|
| 3 |
+
This is the license and provenance ledger for the exact public release. The
|
| 4 |
+
complete bundled license texts control over this summary. This is not legal
|
| 5 |
+
advice.
|
| 6 |
|
| 7 |
| Component | Exact identity | License/status | Consequence |
|
| 8 |
|---|---|---|---|
|
| 9 |
+
| Clover Image Tiny weights | Stage B step 500; checkpoint `4a5b99ff18478742528a0d31c97dcee939b166a51be858721d40ad5984110893` | CreativeML OpenRAIL-M derivative | Retain the complete terms, attribution, modification notice, and use restrictions |
|
| 10 |
| Starting student | `nota-ai/bk-sdm-tiny-2m@aad3e0e8ba61b7cb9f64869dc4e586f8ad9d3665` | Pinned model card declares CreativeML OpenRAIL-M | Derivative-weight obligations apply |
|
| 11 |
| Frozen teacher | `CompVis/stable-diffusion-v1-4@133a221b8aa7292a167afc5127cb63fb5005638b` | Pinned model card declares CreativeML OpenRAIL-M | Distillation from outputs and activations retains derivative-weight obligations |
|
| 12 |
| Tokenizer and text encoder | Byte-identical components in the two pinned pipelines | CreativeML OpenRAIL-M lineage | Bundled as upstream model components |
|
|
|
|
| 30 |
SHA-256
|
| 31 |
`e26a0375b714267325c27905ba947fdc41ebc0b7a36940a49ae12379ed6208d6`.
|
| 32 |
|
| 33 |
+
Publishing this artifact as a public release does not create a new weight
|
| 34 |
+
license or waive OpenRAIL-M restrictions. Users must review and follow the
|
| 35 |
+
complete terms for copying, redistribution, modification, and use.
|
| 36 |
|
| 37 |
## Data terms
|
| 38 |
|
|
|
|
| 53 |
|
| 54 |
Pinned model IDs, revisions, and license declarations are evidence of weight
|
| 55 |
lineage; they are not substitutes for foundational data provenance. This
|
| 56 |
+
inherited scope remains explicitly disclosed with the public release.
|
|
|
README.md
CHANGED
|
@@ -5,155 +5,44 @@ inference: false
|
|
| 5 |
base_model: nota-ai/bk-sdm-tiny-2m
|
| 6 |
license: creativeml-openrail-m
|
| 7 |
tags:
|
|
|
|
| 8 |
- text-to-image
|
| 9 |
- diffusion
|
| 10 |
- stable-diffusion
|
| 11 |
- knowledge-distillation
|
| 12 |
-
-
|
|
|
|
| 13 |
---
|
| 14 |
|
| 15 |
-
# Clover Image Tiny
|
| 16 |
|
| 17 |
-
|
| 18 |
-
a 323,384,964-parameter denoiser and a complete Diffusers package of about
|
| 19 |
-
1.67 GB. It generates locally on Apple silicon, NVIDIA CUDA systems, or CPU;
|
| 20 |
-
no hosted inference API is required. Its examples have the recognizable,
|
| 21 |
-
playful fidelity that can reasonably be described informally as
|
| 22 |
-
**DALL·E mini-ish**. That phrase is a qualitative analogy, not a benchmark or
|
| 23 |
-
claim of equivalent architecture, training scale, or measured quality.
|
| 24 |
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
steps on an exact licensed 1,000-pair calibration set, so it is a genuinely
|
| 28 |
-
modified model rather than a rename of unchanged upstream weights. It was
|
| 29 |
-
**not trained from random initialization**: it starts from BK-SDM-Tiny-2M and
|
| 30 |
-
was distilled with a frozen Stable Diffusion v1.4 teacher. Calling it "trained
|
| 31 |
-
from scratch" would therefore be inaccurate. The validated reference recipe
|
| 32 |
-
uses 50-step PNDM, 512×512 output, classifier-free guidance 7.5, and an empty
|
| 33 |
-
negative prompt.
|
| 34 |
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
outputs, exact lineage, and local runner make it useful today for creative
|
| 38 |
-
experimentation and compact-model research.
|
| 39 |
|
| 40 |
-
|
|
|
|
|
|
|
|
|
|
| 41 |
|
| 42 |
-
[**
|
| 43 |
|
| 44 |
-
The
|
| 45 |
-
scheduler, and 4–100 conventional Diffusers inference steps. It
|
| 46 |
-
image per request
|
| 47 |
-
safety checker enabled.
|
| 48 |
-
|
| 49 |
-
## Exact artifact identity
|
| 50 |
-
|
| 51 |
-
| Field | Value |
|
| 52 |
-
|---|---|
|
| 53 |
-
| Repository | `neonforestmist/Clover-Image-Tiny` |
|
| 54 |
-
| Status | **RESEARCH PREVIEW · PRODUCTION PILOT · NOT RELEASE-READY** |
|
| 55 |
-
| Experiment | `clover-kd-20260712T050925Z-01KXABNHP0` |
|
| 56 |
-
| Training stage | Stage B knowledge distillation |
|
| 57 |
-
| Optimizer step | 500 |
|
| 58 |
-
| Checkpoint SHA-256 | `4a5b99ff18478742528a0d31c97dcee939b166a51be858721d40ad5984110893` |
|
| 59 |
-
| Checkpoint-bundle SHA-256 | `384b6515f5f26838aea33ec9a941e06610a20764f0b8637c8b7b0667bfc0d447` |
|
| 60 |
-
| Resolved-config SHA-256 | `80cf9395d1f587dc0c1d440d9f5b55c55c20703187998509bb306d19d463f597` |
|
| 61 |
-
| Dataset-manifest SHA-256 | `50c1249f1cb0d8d690a9acc451ca10c9432eb5a7f4e26f34acb5462096e72322` |
|
| 62 |
-
| Denoiser parameters | `323,384,964` |
|
| 63 |
-
| Package bytes | `1671502952` |
|
| 64 |
-
| Package files | `30` |
|
| 65 |
-
| Validated Stage B source-package checksums SHA-256 | `d9a28d5fe6f5b675ee1b9db52e6d0493c8d3d357bb824eac590911acbd5c3ebc` |
|
| 66 |
-
| Builder source commit | `6675345aed2734128cfb441c81d65a644332ca59` |
|
| 67 |
-
|
| 68 |
-
The checkpoint completed 500 optimizer steps, 4,000 microsteps, and 4,000
|
| 69 |
-
sample presentations. All 500 recorded training rows were finite and had a
|
| 70 |
-
nonzero gradient. Those are training-integrity observations, not image-quality
|
| 71 |
-
scores.
|
| 72 |
-
|
| 73 |
-
## Example gallery
|
| 74 |
-
|
| 75 |
-

|
| 76 |
-
|
| 77 |
-
Each row uses the same prompt and seed. The **left column is the pinned
|
| 78 |
-
BK-SDM-Tiny-2M baseline; only the right column is this Stage B checkpoint**.
|
| 79 |
-
The gallery was generated on an NVIDIA L4 in bfloat16 with 50 PNDM steps,
|
| 80 |
-
guidance 7.5, an empty negative prompt, and 512×512 output.
|
| 81 |
-
With the pinned Diffusers 0.39.0 scheduler, those 50 requested PNDM steps use
|
| 82 |
-
51 U-Net invocations because PLMS repeats its first retained timestep.
|
| 83 |
-
|
| 84 |
-
All eight Stage B gallery images were finite, nonblank, nonblack, and returned
|
| 85 |
-
clear from the packaged upstream safety checker in that measured run. This
|
| 86 |
-
small engineering subset is not a general safety or quality evaluation. The
|
| 87 |
-
examples demonstrate recognizable objects, people, animals, landscapes,
|
| 88 |
-
interiors, food, and night scenes. Results are not uniformly better than the
|
| 89 |
-
starting model: the bottle example loses prompt fidelity, hands remain weak,
|
| 90 |
-
and some details change without clear improvement.
|
| 91 |
|
| 92 |
## Run locally
|
| 93 |
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
space for the model itself. Mac MPS is the only local runtime measured for this
|
| 97 |
-
preview; Windows/Linux CUDA and CPU execution are supported by the runner but
|
| 98 |
-
their performance is not claimed here.
|
| 99 |
-
|
| 100 |
-
### Generation controls
|
| 101 |
-
|
| 102 |
-
The bundled runner exposes the ordinary Diffusers controls below. Its defaults
|
| 103 |
-
exactly preserve the measured gallery recipe.
|
| 104 |
-
|
| 105 |
-
| Argument | Accepted values | Default | Effect |
|
| 106 |
-
|---|---|---|---|
|
| 107 |
-
| `--steps` | 4–100 | `50` | Conventional diffusion inference steps; more steps usually take longer |
|
| 108 |
-
| `--guidance-scale` | 0.0–20.0 | `7.5` | Strength of text guidance |
|
| 109 |
-
| `--negative-prompt` | Text, or empty | Empty | Content or traits to discourage |
|
| 110 |
-
| `--width` | 256–768, divisible by 64 | `512` | Output width |
|
| 111 |
-
| `--height` | 256–768, divisible by 64 | `512` | Output height |
|
| 112 |
-
| `--scheduler` | `pndm`, `ddim`, `euler`, `euler-a`, `dpmpp-2m` | `pndm` | Sampling algorithm |
|
| 113 |
-
| `--num-images` | 1–4 | `1` | Images generated in one invocation |
|
| 114 |
-
| `--seed` | 0–(2⁶³−1) | `1337` | Starting deterministic seed |
|
| 115 |
-
|
| 116 |
-
Only **PNDM + 50 steps + guidance 7.5 + 512×512 + an empty negative
|
| 117 |
-
prompt** is the validated gallery and local-MPS recipe. Other combinations are
|
| 118 |
-
deliberately available for exploration, but no comparative quality or speed
|
| 119 |
-
claim is attached to them. These controls are conventional Diffusers scheduler
|
| 120 |
-
iterations for this checkpoint; selecting four or eight requests that many
|
| 121 |
-
iterations.
|
| 122 |
|
| 123 |
-
|
| 124 |
-
guidance, and an explicit negative prompt:
|
| 125 |
|
| 126 |
-
|
| 127 |
-
python model/examples/generate.py \
|
| 128 |
-
--model model \
|
| 129 |
-
--device auto \
|
| 130 |
-
--local-files-only \
|
| 131 |
-
--prompt "a tiny glass greenhouse glowing in a moonlit garden, detailed photography" \
|
| 132 |
-
--negative-prompt "blurry, distorted, low detail" \
|
| 133 |
-
--steps 30 \
|
| 134 |
-
--guidance-scale 8.5 \
|
| 135 |
-
--scheduler euler \
|
| 136 |
-
--width 512 \
|
| 137 |
-
--height 512 \
|
| 138 |
-
--num-images 2 \
|
| 139 |
-
--seed 1337 \
|
| 140 |
-
--output greenhouse.png
|
| 141 |
-
```
|
| 142 |
-
|
| 143 |
-
For multiple images, the first is saved to the requested output and subsequent
|
| 144 |
-
images use numbered names such as `greenhouse-02.png`. Seeds advance
|
| 145 |
-
consecutively from the requested seed. One `greenhouse.png.json` sidecar records
|
| 146 |
-
the resolved controls and every output filename and seed. The runner refuses to
|
| 147 |
-
overwrite an existing planned image or sidecar. Resolution and batch size
|
| 148 |
-
multiply memory use; reduce `--num-images`, width, or height if a consumer GPU
|
| 149 |
-
runs out of memory.
|
| 150 |
-
|
| 151 |
-
### macOS Apple silicon — MPS
|
| 152 |
-
|
| 153 |
-
These commands download a complete local copy, install the pinned runtime in
|
| 154 |
-
an isolated environment, and generate through MPS:
|
| 155 |
-
|
| 156 |
-
```bash
|
| 157 |
mkdir clover-image-tiny-local
|
| 158 |
cd clover-image-tiny-local
|
| 159 |
|
|
@@ -169,25 +58,22 @@ python model/examples/generate.py \
|
|
| 169 |
--model model \
|
| 170 |
--device mps \
|
| 171 |
--local-files-only \
|
| 172 |
-
--prompt "a
|
| 173 |
-
--
|
|
|
|
|
|
|
|
|
|
|
|
|
| 174 |
--output clover-image-tiny.png
|
| 175 |
|
| 176 |
open clover-image-tiny.png
|
| 177 |
-
|
| 178 |
|
| 179 |
-
|
| 180 |
-
After the first download, `--local-files-only` keeps inference offline. The
|
| 181 |
-
script writes the resolved runtime settings beside the PNG as
|
| 182 |
-
`clover-image-tiny.png.json`. This is the PyTorch/Diffusers model; no Core ML or
|
| 183 |
-
iPhone package is required or included.
|
| 184 |
|
| 185 |
### Windows — PowerShell
|
| 186 |
|
| 187 |
-
|
| 188 |
-
and otherwise falls back to CPU:
|
| 189 |
-
|
| 190 |
-
```powershell
|
| 191 |
mkdir clover-image-tiny-local
|
| 192 |
cd clover-image-tiny-local
|
| 193 |
|
|
@@ -203,30 +89,121 @@ python model\examples\generate.py `
|
|
| 203 |
--model model `
|
| 204 |
--device auto `
|
| 205 |
--local-files-only `
|
| 206 |
-
--prompt "a
|
| 207 |
-
--
|
|
|
|
|
|
|
|
|
|
|
|
|
| 208 |
--output clover-image-tiny.png
|
| 209 |
|
| 210 |
Invoke-Item .\clover-image-tiny.png
|
| 211 |
-
|
| 212 |
|
| 213 |
-
Use `py -3.11` if
|
| 214 |
-
|
| 215 |
-
`False` means `--device auto` will use CPU. A Windows AMD/DirectML path is not
|
| 216 |
-
included or validated.
|
| 217 |
|
| 218 |
### Linux
|
| 219 |
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
|
| 224 |
-
|
|
|
|
|
|
|
|
|
|
| 225 |
|
| 226 |
-
|
| 227 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 228 |
|
| 229 |
-
``
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 230 |
import torch
|
| 231 |
from diffusers import DiffusionPipeline, PNDMScheduler
|
| 232 |
|
|
@@ -237,121 +214,123 @@ elif torch.backends.mps.is_available():
|
|
| 237 |
device = "mps"
|
| 238 |
else:
|
| 239 |
device = "cpu"
|
| 240 |
-
dtype = torch.float16 if device in {"cuda", "mps"} else torch.float32
|
| 241 |
|
|
|
|
| 242 |
pipe = DiffusionPipeline.from_pretrained(model_id, torch_dtype=dtype)
|
| 243 |
pipe.scheduler = PNDMScheduler.from_config(pipe.scheduler.config)
|
| 244 |
pipe = pipe.to(device)
|
| 245 |
|
| 246 |
generator_device = "cuda" if device == "cuda" else "cpu"
|
| 247 |
generator = torch.Generator(device=generator_device).manual_seed(1337)
|
| 248 |
-
|
| 249 |
prompt="a tiny greenhouse glowing in a moonlit garden",
|
| 250 |
-
negative_prompt="",
|
| 251 |
num_inference_steps=50,
|
| 252 |
guidance_scale=7.5,
|
| 253 |
height=512,
|
| 254 |
width=512,
|
| 255 |
generator=generator,
|
| 256 |
-
)
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
|
| 270 |
-
|
| 271 |
-
|
| 272 |
-
|
| 273 |
-
|
| 274 |
-
|
| 275 |
-
|
| 276 |
-
|
| 277 |
-
|
| 278 |
-
|
| 279 |
-
|
| 280 |
-
|
| 281 |
-
|
| 282 |
-
|
| 283 |
-
|
| 284 |
-
|
| 285 |
-
|
| 286 |
-
|
| 287 |
-
|
| 288 |
-
|
| 289 |
-
|
| 290 |
-
|
| 291 |
-
|
| 292 |
-
|
| 293 |
-
|
| 294 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 295 |
`Spawning/PD3M@2a5eb24a8dccf245acd8e56341761aee06da0bdf`
|
| 296 |
-
- Split: 973 train, 17 validation, and 10 test records
|
| 297 |
- Data gate: `CDLA-Permissive-2.0`; accepted items retain CC0-1.0 or Public
|
| 298 |
Domain Mark 1.0 provenance
|
| 299 |
- Preprocessing: deterministic center crop and 512×512 JPEG conversion,
|
| 300 |
version `clover-pd3m-center-crop-512-jpeg95-v1`
|
|
|
|
|
|
|
| 301 |
|
| 302 |
-
The 1,000 records describe
|
| 303 |
-
|
| 304 |
-
|
| 305 |
-
|
| 306 |
-
|
| 307 |
-
|
| 308 |
-
|
| 309 |
-
reason the package is labeled a research preview and not release-ready.
|
| 310 |
-
|
| 311 |
-
See `DATA_PROVENANCE.md`, `MODEL_DATA_LICENSES.md`, the bundled CreativeML Open
|
| 312 |
-
RAIL-M terms, and the package checksums for the portable evidence included here.
|
| 313 |
-
|
| 314 |
-
## Intended use
|
| 315 |
-
|
| 316 |
-
- Research and inspection of compact Stable Diffusion knowledge distillation
|
| 317 |
-
- Reproducing the fixed conventional 50-step engineering examples
|
| 318 |
-
- Exploring step count, guidance, negative prompting, resolution, schedulers,
|
| 319 |
-
and small batches through the bundled local runner
|
| 320 |
-
- Comparing this early calibration checkpoint with its pinned starting student
|
| 321 |
-
- Non-consequential creative experimentation subject to the model license
|
| 322 |
-
|
| 323 |
-
## Limitations
|
| 324 |
-
|
| 325 |
-
- The model was fine-tuned for only 500 optimizer steps on 1,000 pairs.
|
| 326 |
-
- The eight-prompt gallery is an engineering-health subset, not a representative
|
| 327 |
-
quality, alignment, diversity, bias, or human-preference evaluation.
|
| 328 |
-
- Results may omit requested objects, lose relationships or counts, produce
|
| 329 |
-
malformed anatomy and hands, render text poorly, or preserve/amplify biases
|
| 330 |
-
from upstream models and data.
|
| 331 |
-
- The Stage B changes are modest and can make individual prompts worse.
|
| 332 |
-
- The included pipeline is the conventional PyTorch/Diffusers path only.
|
| 333 |
-
|
| 334 |
-
## Safety and out-of-scope use
|
| 335 |
-
|
| 336 |
-
The upstream safety checker is included and was exercised in the recorded
|
| 337 |
-
gallery run, but it is not a complete safety system and can miss harmful output
|
| 338 |
-
or over-filter benign output. Applications should add appropriate prompt and
|
| 339 |
-
output controls, human review, and policy enforcement.
|
| 340 |
-
|
| 341 |
-
The bundled runner keeps that checker enabled and does not expose a bypass
|
| 342 |
-
flag. A flagged result may be returned as a black placeholder; its sidecar sets
|
| 343 |
-
`nsfw_content_detected` for the corresponding image so the condition is not
|
| 344 |
-
silent. Developers integrating the raw Diffusers pipeline are responsible for
|
| 345 |
-
providing an appropriate moderation system for their application.
|
| 346 |
-
|
| 347 |
-
Do not use this preview for consequential decisions, identity claims, medical
|
| 348 |
-
or legal conclusions, harassment, exploitation, illegal activity, or any use
|
| 349 |
-
prohibited by CreativeML OpenRAIL-M. Review outputs before sharing them.
|
| 350 |
|
| 351 |
## Licenses
|
| 352 |
|
| 353 |
-
The model weights are a derivative under **CreativeML OpenRAIL-M**. The
|
| 354 |
-
|
| 355 |
-
|
| 356 |
-
|
| 357 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
base_model: nota-ai/bk-sdm-tiny-2m
|
| 6 |
license: creativeml-openrail-m
|
| 7 |
tags:
|
| 8 |
+
- clover-image
|
| 9 |
- text-to-image
|
| 10 |
- diffusion
|
| 11 |
- stable-diffusion
|
| 12 |
- knowledge-distillation
|
| 13 |
+
- compact
|
| 14 |
+
- local-inference
|
| 15 |
---
|
| 16 |
|
| 17 |
+
# Clover Image Tiny 🍀
|
| 18 |
|
| 19 |
+

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
+
A compact 512×512 text-to-image model you can run locally on macOS, Windows,
|
| 22 |
+
or Linux.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
+
**323,384,964 denoiser parameters · about 1.67 GB · 4–100 inference steps ·
|
| 25 |
+
PyTorch/Diffusers**
|
|
|
|
|
|
|
| 26 |
|
| 27 |
+
Clover Image Tiny is the public PyTorch/Diffusers checkpoint release behind
|
| 28 |
+
these examples. Its output has a recognizable, playful
|
| 29 |
+
**DALL·E mini-ish** character. That is a visual description, not a claim of
|
| 30 |
+
equivalent architecture, training scale, or benchmark performance.
|
| 31 |
|
| 32 |
+
[**Try Clover Image Tiny in the live ZeroGPU demo →**](https://huggingface.co/spaces/neonforestmist/Clover-Image-Tiny-Demo)
|
| 33 |
|
| 34 |
+
The demo exposes prompt, negative prompt, seed, guidance, dimensions,
|
| 35 |
+
scheduler, and 4–100 conventional Diffusers inference steps. It creates one
|
| 36 |
+
image per request and keeps the packaged safety checker enabled.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
|
| 38 |
## Run locally
|
| 39 |
|
| 40 |
+
Download once, then generate offline with the bundled runner. Python 3.11 and
|
| 41 |
+
3.12 are supported.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
|
| 43 |
+
### macOS — Apple silicon
|
|
|
|
| 44 |
|
| 45 |
+
~~~bash
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
mkdir clover-image-tiny-local
|
| 47 |
cd clover-image-tiny-local
|
| 48 |
|
|
|
|
| 58 |
--model model \
|
| 59 |
--device mps \
|
| 60 |
--local-files-only \
|
| 61 |
+
--prompt "a tiny glass greenhouse glowing in a moonlit garden, detailed photography" \
|
| 62 |
+
--negative-prompt "blurry, distorted, low detail" \
|
| 63 |
+
--steps 50 \
|
| 64 |
+
--guidance-scale 7.5 \
|
| 65 |
+
--scheduler pndm \
|
| 66 |
+
--seed 1337 \
|
| 67 |
--output clover-image-tiny.png
|
| 68 |
|
| 69 |
open clover-image-tiny.png
|
| 70 |
+
~~~
|
| 71 |
|
| 72 |
+
Use `python3.11` instead if that is the installed supported Python.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
|
| 74 |
### Windows — PowerShell
|
| 75 |
|
| 76 |
+
~~~powershell
|
|
|
|
|
|
|
|
|
|
| 77 |
mkdir clover-image-tiny-local
|
| 78 |
cd clover-image-tiny-local
|
| 79 |
|
|
|
|
| 89 |
--model model `
|
| 90 |
--device auto `
|
| 91 |
--local-files-only `
|
| 92 |
+
--prompt "a tiny glass greenhouse glowing in a moonlit garden, detailed photography" `
|
| 93 |
+
--negative-prompt "blurry, distorted, low detail" `
|
| 94 |
+
--steps 50 `
|
| 95 |
+
--guidance-scale 7.5 `
|
| 96 |
+
--scheduler pndm `
|
| 97 |
+
--seed 1337 `
|
| 98 |
--output clover-image-tiny.png
|
| 99 |
|
| 100 |
Invoke-Item .\clover-image-tiny.png
|
| 101 |
+
~~~
|
| 102 |
|
| 103 |
+
Use `py -3.11` if needed. With `--device auto`, the runner selects an
|
| 104 |
+
available NVIDIA CUDA GPU and otherwise uses CPU.
|
|
|
|
|
|
|
| 105 |
|
| 106 |
### Linux
|
| 107 |
|
| 108 |
+
~~~bash
|
| 109 |
+
mkdir clover-image-tiny-local
|
| 110 |
+
cd clover-image-tiny-local
|
| 111 |
|
| 112 |
+
python3.12 -m venv .venv
|
| 113 |
+
source .venv/bin/activate
|
| 114 |
+
python -m pip install --upgrade pip
|
| 115 |
+
python -m pip install "huggingface-hub==0.36.2"
|
| 116 |
|
| 117 |
+
hf download "neonforestmist/Clover-Image-Tiny" --local-dir model
|
| 118 |
+
python -m pip install -r model/requirements.txt
|
| 119 |
+
|
| 120 |
+
python model/examples/generate.py \
|
| 121 |
+
--model model \
|
| 122 |
+
--device auto \
|
| 123 |
+
--local-files-only \
|
| 124 |
+
--prompt "a tiny glass greenhouse glowing in a moonlit garden, detailed photography" \
|
| 125 |
+
--negative-prompt "blurry, distorted, low detail" \
|
| 126 |
+
--steps 50 \
|
| 127 |
+
--seed 1337 \
|
| 128 |
+
--output clover-image-tiny.png
|
| 129 |
+
~~~
|
| 130 |
|
| 131 |
+
`--device auto` selects CUDA when PyTorch can see an NVIDIA GPU and otherwise
|
| 132 |
+
uses CPU. After the first download, `--local-files-only` prevents network
|
| 133 |
+
access during generation.
|
| 134 |
+
|
| 135 |
+
## Generation controls
|
| 136 |
+
|
| 137 |
+
The command above is ready to copy. Change these flags to explore the model:
|
| 138 |
+
|
| 139 |
+
| Flag | Accepted values | Default | What it controls |
|
| 140 |
+
|---|---|---|---|
|
| 141 |
+
| `--prompt` | Non-empty text | Required | What to generate |
|
| 142 |
+
| `--negative-prompt` | Text, or empty | Empty | Details to discourage; the starter commands and live demo use `blurry, distorted, low detail` |
|
| 143 |
+
| `--steps` | 4–100 | `50` | Diffusion iterations; more steps take longer and do not guarantee a better image |
|
| 144 |
+
| `--guidance-scale` | 0.0–20.0 | `7.5` | How strongly the image follows the prompt |
|
| 145 |
+
| `--scheduler` | `pndm`, `ddim`, `euler`, `euler-a`, `dpmpp-2m` | `pndm` | Sampling method |
|
| 146 |
+
| `--width` | 256–768, divisible by 64 | `512` | Output width |
|
| 147 |
+
| `--height` | 256–768, divisible by 64 | `512` | Output height |
|
| 148 |
+
| `--num-images` | 1–4 | `1` | Images generated in one run |
|
| 149 |
+
| `--seed` | 0–(2⁶³−1) | `1337` | Repeatable starting seed |
|
| 150 |
+
| `--device` | `auto`, `cuda`, `mps`, `cpu` | `auto` | Compute backend |
|
| 151 |
+
| `--local-files-only` | Flag | Off | Require an already-downloaded local model |
|
| 152 |
+
|
| 153 |
+
The reference configuration is 50-step PNDM, guidance 7.5, 512×512, one
|
| 154 |
+
image, seed 1337, and an empty negative prompt. The live demo pre-fills
|
| 155 |
+
`blurry, distorted, low detail`; the local runner leaves the field empty unless
|
| 156 |
+
you pass the flag.
|
| 157 |
+
|
| 158 |
+
For multiple images, the first uses the requested filename and later images use
|
| 159 |
+
numbered names such as `clover-image-tiny-02.png`. Seeds advance from the
|
| 160 |
+
requested seed. A JSON sidecar beside the first PNG records every resolved
|
| 161 |
+
setting, output filename, seed, checksum, and safety result. Existing planned
|
| 162 |
+
outputs are never overwritten.
|
| 163 |
+
|
| 164 |
+
Run `python model/examples/generate.py --help` for the complete CLI reference.
|
| 165 |
+
|
| 166 |
+
## Hardware and operating systems
|
| 167 |
+
|
| 168 |
+
| System | Automatic backend | Precision | Current evidence |
|
| 169 |
+
|---|---|---|---|
|
| 170 |
+
| Apple-silicon Mac | MPS | fp16 | Measured locally on an M4 Pro |
|
| 171 |
+
| Windows/Linux with NVIDIA | CUDA | fp16 | Supported code path; performance not measured |
|
| 172 |
+
| CPU-only macOS/Windows/Linux | CPU | fp32 | Supported code path; performance not measured |
|
| 173 |
+
| Windows AMD/DirectML | — | — | No packaged DirectML path |
|
| 174 |
+
|
| 175 |
+
The model package itself is about 1.67 GB. Keep at least 2 GB free for the
|
| 176 |
+
model alone and additional room for the Python environment and caches; no
|
| 177 |
+
formal total-install minimum has been measured. Larger images and batches need
|
| 178 |
+
more memory; lower `--width`, `--height`, or `--num-images` if necessary.
|
| 179 |
+
|
| 180 |
+
The measured Mac reference used a 24 GB Apple M4 Pro and completed one 512×512
|
| 181 |
+
image in 18.21 seconds with fp16 MPS. Its process-lifetime maximum RSS was
|
| 182 |
+
631,341,056 bytes. This is a measured point, not a minimum-RAM claim. No Core
|
| 183 |
+
ML or iPhone package is required or included.
|
| 184 |
+
|
| 185 |
+
## Example outputs
|
| 186 |
+
|
| 187 |
+

|
| 188 |
+
|
| 189 |
+
Each row uses the same prompt and seed. The left column is the pinned
|
| 190 |
+
BK-SDM-Tiny-2M starting model; the right column is Clover Image Tiny. The
|
| 191 |
+
gallery used an NVIDIA L4 in bfloat16, 50 PNDM steps, guidance 7.5, an empty
|
| 192 |
+
negative prompt, and 512×512 output. With Diffusers 0.39.0, 50 requested PNDM
|
| 193 |
+
steps use 51 U-Net calls because PLMS repeats its first retained timestep.
|
| 194 |
+
|
| 195 |
+
All eight Clover images were finite, nonblank, nonblack, and cleared by the
|
| 196 |
+
packaged upstream safety checker in this run. The set covers objects, a person,
|
| 197 |
+
an animal, a landscape, an interior, food, a product, and a night scene.
|
| 198 |
+
|
| 199 |
+
The local MPS reference below used “a compact modern library with arched
|
| 200 |
+
windows,” seed 1469, and the same 50-step configuration:
|
| 201 |
+
|
| 202 |
+

|
| 203 |
+
|
| 204 |
+
## Python API
|
| 205 |
+
|
| 206 |
+
~~~python
|
| 207 |
import torch
|
| 208 |
from diffusers import DiffusionPipeline, PNDMScheduler
|
| 209 |
|
|
|
|
| 214 |
device = "mps"
|
| 215 |
else:
|
| 216 |
device = "cpu"
|
|
|
|
| 217 |
|
| 218 |
+
dtype = torch.float16 if device in {"cuda", "mps"} else torch.float32
|
| 219 |
pipe = DiffusionPipeline.from_pretrained(model_id, torch_dtype=dtype)
|
| 220 |
pipe.scheduler = PNDMScheduler.from_config(pipe.scheduler.config)
|
| 221 |
pipe = pipe.to(device)
|
| 222 |
|
| 223 |
generator_device = "cuda" if device == "cuda" else "cpu"
|
| 224 |
generator = torch.Generator(device=generator_device).manual_seed(1337)
|
| 225 |
+
image = pipe(
|
| 226 |
prompt="a tiny greenhouse glowing in a moonlit garden",
|
| 227 |
+
negative_prompt="blurry, distorted, low detail",
|
| 228 |
num_inference_steps=50,
|
| 229 |
guidance_scale=7.5,
|
| 230 |
height=512,
|
| 231 |
width=512,
|
| 232 |
generator=generator,
|
| 233 |
+
).images[0]
|
| 234 |
+
image.save("clover-image-tiny.png")
|
| 235 |
+
~~~
|
| 236 |
+
|
| 237 |
+
Seeded generation is repeatable within the selected runtime. Different
|
| 238 |
+
devices, dtypes, kernels, and dependency builds can produce different pixels.
|
| 239 |
+
|
| 240 |
+
## About this release
|
| 241 |
+
|
| 242 |
+
Clover Image Tiny is a conventional knowledge-distillation checkpoint trained
|
| 243 |
+
for 500 optimizer steps on an exact licensed 1,000-pair calibration set. The
|
| 244 |
+
run recorded 4,000 microsteps and 4,000 sample presentations, with finite
|
| 245 |
+
training rows and nonzero gradients throughout.
|
| 246 |
+
|
| 247 |
+
The model was initialized from
|
| 248 |
+
`nota-ai/bk-sdm-tiny-2m@aad3e0e8ba61b7cb9f64869dc4e586f8ad9d3665`
|
| 249 |
+
and distilled with a frozen
|
| 250 |
+
`CompVis/stable-diffusion-v1-4@133a221b8aa7292a167afc5127cb63fb5005638b`
|
| 251 |
+
teacher. It is a genuinely modified checkpoint, but it was not trained from
|
| 252 |
+
random initialization.
|
| 253 |
+
|
| 254 |
+
This checkpoint release covers the conventional PyTorch/Diffusers model shown
|
| 255 |
+
here. Formal quality acceptance, the separate 1–4 Leaf architecture, Core ML,
|
| 256 |
+
and iPhone work remain separate workstreams and are not claims of this package.
|
| 257 |
+
|
| 258 |
+
## Quality and known behavior
|
| 259 |
+
|
| 260 |
+
- The included gallery demonstrates recognizable subjects across colorful
|
| 261 |
+
scenes, products, food, an animal, a landscape, and an interior.
|
| 262 |
+
- Individual results vary by prompt, seed, scheduler, and step count. More
|
| 263 |
+
steps increase runtime but do not guarantee a better result.
|
| 264 |
+
- Hands, anatomy, exact counts and relationships, and readable text can be
|
| 265 |
+
difficult.
|
| 266 |
+
- The paired eight-prompt gallery is a reproducible engineering sample, not a
|
| 267 |
+
controlled benchmark or broad human-preference study.
|
| 268 |
+
- Resolution and batch size multiply memory use.
|
| 269 |
+
|
| 270 |
+
## Safety
|
| 271 |
+
|
| 272 |
+
The upstream safety checker is packaged and enabled in both the supported
|
| 273 |
+
runner and hosted demo. A flagged output may be returned as a black placeholder;
|
| 274 |
+
the JSON sidecar records `nsfw_content_detected` so the result is not silent.
|
| 275 |
+
The checker is useful but not a complete moderation system and can miss harmful
|
| 276 |
+
content or over-filter benign content.
|
| 277 |
+
|
| 278 |
+
Applications should add controls appropriate to their audience and review
|
| 279 |
+
outputs before sharing them. Do not use the model for consequential decisions,
|
| 280 |
+
identity claims, medical or legal conclusions, harassment, exploitation,
|
| 281 |
+
illegal activity, or uses prohibited by CreativeML OpenRAIL-M.
|
| 282 |
+
|
| 283 |
+
## Training lineage and data
|
| 284 |
+
|
| 285 |
+
- Clover fine-tuning data: exactly 1,000 accepted image-caption pairs from
|
| 286 |
`Spawning/PD3M@2a5eb24a8dccf245acd8e56341761aee06da0bdf`
|
| 287 |
+
- Split: 973 train, 17 validation, and 10 test records
|
| 288 |
- Data gate: `CDLA-Permissive-2.0`; accepted items retain CC0-1.0 or Public
|
| 289 |
Domain Mark 1.0 provenance
|
| 290 |
- Preprocessing: deterministic center crop and 512×512 JPEG conversion,
|
| 291 |
version `clover-pd3m-center-crop-512-jpeg95-v1`
|
| 292 |
+
- Dataset-manifest SHA-256:
|
| 293 |
+
`50c1249f1cb0d8d690a9acc451ca10c9432eb5a7f4e26f34acb5462096e72322`
|
| 294 |
|
| 295 |
+
The 1,000 records describe the Clover fine-tuning run. The student and teacher
|
| 296 |
+
already contain knowledge from larger upstream corpora. Their pinned model
|
| 297 |
+
cards and weight licenses are disclosed, while complete item-level provenance
|
| 298 |
+
for all foundational pretraining is not available to this project.
|
| 299 |
+
|
| 300 |
+
See `DATA_PROVENANCE.md` for the portable manifest identity and
|
| 301 |
+
`MODEL_DATA_LICENSES.md` for the complete component ledger.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 302 |
|
| 303 |
## Licenses
|
| 304 |
|
| 305 |
+
The model weights are a derivative under **CreativeML OpenRAIL-M**. The example
|
| 306 |
+
runner and packaging code are under **Apache-2.0**. Dataset and item-level terms
|
| 307 |
+
remain separate. Read `LICENSE`, `LICENSE-MODEL-CREATIVEML-OPENRAIL-M.txt`,
|
| 308 |
+
`LICENSE-CODE`, and `MODEL_DATA_LICENSES.md` before redistribution or use.
|
| 309 |
+
|
| 310 |
+
The hero mosaic is user-supplied presentation artwork included by explicit
|
| 311 |
+
request for display in this public model repository. It is not benchmark
|
| 312 |
+
evidence, its panel-generation provenance is not claimed, and this package
|
| 313 |
+
does not grant a downstream reuse license for it.
|
| 314 |
+
|
| 315 |
+
## Reproducibility and artifact identity
|
| 316 |
+
|
| 317 |
+
| Field | Value |
|
| 318 |
+
|---|---|
|
| 319 |
+
| Repository | `neonforestmist/Clover-Image-Tiny` |
|
| 320 |
+
| Release status | **PUBLIC PYTORCH/DIFFUSERS CHECKPOINT RELEASE** |
|
| 321 |
+
| Training experiment | `clover-kd-20260712T050925Z-01KXABNHP0` |
|
| 322 |
+
| Optimizer step | 500 |
|
| 323 |
+
| Checkpoint SHA-256 | `4a5b99ff18478742528a0d31c97dcee939b166a51be858721d40ad5984110893` |
|
| 324 |
+
| Checkpoint-bundle SHA-256 | `384b6515f5f26838aea33ec9a941e06610a20764f0b8637c8b7b0667bfc0d447` |
|
| 325 |
+
| Resolved-config SHA-256 | `80cf9395d1f587dc0c1d440d9f5b55c55c20703187998509bb306d19d463f597` |
|
| 326 |
+
| Denoiser parameters | `323,384,964` |
|
| 327 |
+
| Package bytes | `1676086612` |
|
| 328 |
+
| Package files | `31` |
|
| 329 |
+
| Validated Stage B source-package checksums SHA-256 | `d9a28d5fe6f5b675ee1b9db52e6d0493c8d3d357bb824eac590911acbd5c3ebc` |
|
| 330 |
+
| Builder source commit | `9f5ce495fcb88238ec7fdc33204fa42ec9690c37` |
|
| 331 |
+
|
| 332 |
+
The local MPS reference evidence is bundled at
|
| 333 |
+
`evidence/clover-image-tiny-local-mps-library-seed-1469.json`. Its image
|
| 334 |
+
SHA-256 is
|
| 335 |
+
`f8830346f2a9c2b9a8c2a01d8f90e6925c93d667c1bcf998aa904a150589a742`.
|
| 336 |
+
`checksums.json` covers every packaged file.
|
assets/clover-image-tiny-banner.png
ADDED
|
Git LFS Details
|
checksums.json
CHANGED
|
@@ -1,19 +1,20 @@
|
|
| 1 |
{
|
| 2 |
-
"DATA_PROVENANCE.md": "
|
| 3 |
"LICENSE": "be351ebe7ac01bcdbb018639aadcfd38f136b7dc3f2a3d4d3a24db51d1b210ef",
|
| 4 |
"LICENSE-CODE": "e26a0375b714267325c27905ba947fdc41ebc0b7a36940a49ae12379ed6208d6",
|
| 5 |
"LICENSE-MODEL-CREATIVEML-OPENRAIL-M.txt": "be351ebe7ac01bcdbb018639aadcfd38f136b7dc3f2a3d4d3a24db51d1b210ef",
|
| 6 |
-
"MODEL_DATA_LICENSES.md": "
|
| 7 |
-
"README.md": "
|
|
|
|
| 8 |
"assets/clover-image-tiny-local-mps-library-seed-1469.png": "f8830346f2a9c2b9a8c2a01d8f90e6925c93d667c1bcf998aa904a150589a742",
|
| 9 |
"assets/clover-image-tiny-paired-contact-sheet.png": "8653d1105b7b0c56e2385a127336dbe9b3a1a03c8518edb4934353a9d8e13bfa",
|
| 10 |
"evidence/clover-image-tiny-local-mps-library-seed-1469.json": "1ddd86de0be992987214266720e0f341f25791402aae637065d6d09a6ea67b27",
|
| 11 |
"evidence/stage-b-inference-checksums.json": "d9a28d5fe6f5b675ee1b9db52e6d0493c8d3d357bb824eac590911acbd5c3ebc",
|
| 12 |
-
"examples/generate.py": "
|
| 13 |
"feature_extractor/preprocessor_config.json": "205d45875859846dc1ca211b9a19f5db72f47e953b396954ee34d48d8e95c3c6",
|
| 14 |
"model_index.json": "792073e269e5caff40b3f8c553387540c17a5d900ed0e9cbfab309d650e708dd",
|
| 15 |
"requirements.txt": "9dbb74869a34e3b610f737bce8a9d2a20691fd0fa416cf6bb42354b78e0a3861",
|
| 16 |
-
"research_preview.json": "
|
| 17 |
"safety_checker/config.json": "241bd8fb1ba6feff0d7421f7af0f85743711c5d76353626f71f7e2cc8009ac7c",
|
| 18 |
"safety_checker/model.safetensors": "57ecdfa243b170f9b4cb3eefaf0f64552ef78fc0bf0eb1c5b9675308447184f6",
|
| 19 |
"scheduler/scheduler_config.json": "184bc33ed887951dd86e37f20c878710c4e18e1c5fd4461256a3825679b53d15",
|
|
|
|
| 1 |
{
|
| 2 |
+
"DATA_PROVENANCE.md": "d0be84c8412aa9766c2477e145c3c4e9c7ff5beaf8116de5acc8d05e6616f857",
|
| 3 |
"LICENSE": "be351ebe7ac01bcdbb018639aadcfd38f136b7dc3f2a3d4d3a24db51d1b210ef",
|
| 4 |
"LICENSE-CODE": "e26a0375b714267325c27905ba947fdc41ebc0b7a36940a49ae12379ed6208d6",
|
| 5 |
"LICENSE-MODEL-CREATIVEML-OPENRAIL-M.txt": "be351ebe7ac01bcdbb018639aadcfd38f136b7dc3f2a3d4d3a24db51d1b210ef",
|
| 6 |
+
"MODEL_DATA_LICENSES.md": "39501a1246aff094fcc987a548f7e8bd750dd21900b43c5a2e8cbcab305bb0b1",
|
| 7 |
+
"README.md": "beb79bcda817f6af19a70fd2fcb11657cd456fa4b3a83fdaafad3330d3cf18d7",
|
| 8 |
+
"assets/clover-image-tiny-banner.png": "c3d5c0243ebd0962263187fd54ea94e7646870a7c6e52ece620e958a43b827a3",
|
| 9 |
"assets/clover-image-tiny-local-mps-library-seed-1469.png": "f8830346f2a9c2b9a8c2a01d8f90e6925c93d667c1bcf998aa904a150589a742",
|
| 10 |
"assets/clover-image-tiny-paired-contact-sheet.png": "8653d1105b7b0c56e2385a127336dbe9b3a1a03c8518edb4934353a9d8e13bfa",
|
| 11 |
"evidence/clover-image-tiny-local-mps-library-seed-1469.json": "1ddd86de0be992987214266720e0f341f25791402aae637065d6d09a6ea67b27",
|
| 12 |
"evidence/stage-b-inference-checksums.json": "d9a28d5fe6f5b675ee1b9db52e6d0493c8d3d357bb824eac590911acbd5c3ebc",
|
| 13 |
+
"examples/generate.py": "4cfba0d6f3f2a5a9d1090564be5b618d06b757ef258ec7cfcff0523353e1466b",
|
| 14 |
"feature_extractor/preprocessor_config.json": "205d45875859846dc1ca211b9a19f5db72f47e953b396954ee34d48d8e95c3c6",
|
| 15 |
"model_index.json": "792073e269e5caff40b3f8c553387540c17a5d900ed0e9cbfab309d650e708dd",
|
| 16 |
"requirements.txt": "9dbb74869a34e3b610f737bce8a9d2a20691fd0fa416cf6bb42354b78e0a3861",
|
| 17 |
+
"research_preview.json": "3ee097bdf9ab47f7897df545bb91096ed054a874adaab7310d32b1968496d032",
|
| 18 |
"safety_checker/config.json": "241bd8fb1ba6feff0d7421f7af0f85743711c5d76353626f71f7e2cc8009ac7c",
|
| 19 |
"safety_checker/model.safetensors": "57ecdfa243b170f9b4cb3eefaf0f64552ef78fc0bf0eb1c5b9675308447184f6",
|
| 20 |
"scheduler/scheduler_config.json": "184bc33ed887951dd86e37f20c878710c4e18e1c5fd4461256a3825679b53d15",
|
examples/generate.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
#!/usr/bin/env python3
|
| 2 |
-
"""Generate
|
| 3 |
|
| 4 |
from __future__ import annotations
|
| 5 |
|
|
@@ -63,7 +63,7 @@ def _parser() -> argparse.ArgumentParser:
|
|
| 63 |
parser = argparse.ArgumentParser(
|
| 64 |
description=(
|
| 65 |
"Run Clover Image Tiny with configurable conventional Diffusers settings. "
|
| 66 |
-
"The defaults reproduce the validated 50-step
|
| 67 |
)
|
| 68 |
)
|
| 69 |
parser.add_argument("--model", required=True, help="Hub repository ID or local directory")
|
|
@@ -246,7 +246,7 @@ def main() -> int:
|
|
| 246 |
"validated_gallery_recipe": validated_gallery_recipe,
|
| 247 |
"leaf_steps": None,
|
| 248 |
"cross_device_pixel_identity_claimed": False,
|
| 249 |
-
"usage_label": "
|
| 250 |
}
|
| 251 |
for output_path, payload in zip(output_paths, image_payloads, strict=True):
|
| 252 |
_write_new(output_path, payload)
|
|
|
|
| 1 |
#!/usr/bin/env python3
|
| 2 |
+
"""Generate images with the Clover Image Tiny public release."""
|
| 3 |
|
| 4 |
from __future__ import annotations
|
| 5 |
|
|
|
|
| 63 |
parser = argparse.ArgumentParser(
|
| 64 |
description=(
|
| 65 |
"Run Clover Image Tiny with configurable conventional Diffusers settings. "
|
| 66 |
+
"The defaults reproduce the validated 50-step reference recipe."
|
| 67 |
)
|
| 68 |
)
|
| 69 |
parser.add_argument("--model", required=True, help="Hub repository ID or local directory")
|
|
|
|
| 246 |
"validated_gallery_recipe": validated_gallery_recipe,
|
| 247 |
"leaf_steps": None,
|
| 248 |
"cross_device_pixel_identity_claimed": False,
|
| 249 |
+
"usage_label": "CLOVER IMAGE TINY - PUBLIC CHECKPOINT RELEASE",
|
| 250 |
}
|
| 251 |
for output_path, payload in zip(output_paths, image_payloads, strict=True):
|
| 252 |
_write_new(output_path, payload)
|
research_preview.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"build": {
|
| 3 |
-
"repository_commit": "
|
| 4 |
"sources": {
|
| 5 |
"LICENSE-CODE": {
|
| 6 |
"sha256": "e26a0375b714267325c27905ba947fdc41ebc0b7a36940a49ae12379ed6208d6",
|
|
@@ -19,19 +19,23 @@
|
|
| 19 |
"tracked_at_commit": true
|
| 20 |
},
|
| 21 |
"hf/stage_b_preview/DATA_PROVENANCE.md": {
|
| 22 |
-
"sha256": "
|
| 23 |
"tracked_at_commit": true
|
| 24 |
},
|
| 25 |
"hf/stage_b_preview/MODEL_DATA_LICENSES.md": {
|
| 26 |
-
"sha256": "
|
| 27 |
"tracked_at_commit": true
|
| 28 |
},
|
| 29 |
"hf/stage_b_preview/README.template.md": {
|
| 30 |
-
"sha256": "
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
"tracked_at_commit": true
|
| 32 |
},
|
| 33 |
"hf/stage_b_preview/examples/generate.py": {
|
| 34 |
-
"sha256": "
|
| 35 |
"tracked_at_commit": true
|
| 36 |
},
|
| 37 |
"hf/stage_b_preview/requirements.txt": {
|
|
@@ -59,7 +63,7 @@
|
|
| 59 |
"tracked_at_commit": true
|
| 60 |
},
|
| 61 |
"src/clover_image/stage_b_preview.py": {
|
| 62 |
-
"sha256": "
|
| 63 |
"tracked_at_commit": true
|
| 64 |
}
|
| 65 |
}
|
|
@@ -116,7 +120,24 @@
|
|
| 116 |
"human_review": "not_measured",
|
| 117 |
"quality_evaluation": "not_measured"
|
| 118 |
},
|
| 119 |
-
"metadata_sha256": "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 120 |
"release_ready": false,
|
| 121 |
"runtime_contract": {
|
| 122 |
"denoiser_calls": 51,
|
|
@@ -128,7 +149,7 @@
|
|
| 128 |
"scheduler": "PNDMScheduler",
|
| 129 |
"width": 512
|
| 130 |
},
|
| 131 |
-
"schema_version":
|
| 132 |
"source_package": {
|
| 133 |
"checksums_path": "evidence/stage-b-inference-checksums.json",
|
| 134 |
"checksums_sha256": "d9a28d5fe6f5b675ee1b9db52e6d0493c8d3d357bb824eac590911acbd5c3ebc",
|
|
|
|
| 1 |
{
|
| 2 |
"build": {
|
| 3 |
+
"repository_commit": "9f5ce495fcb88238ec7fdc33204fa42ec9690c37",
|
| 4 |
"sources": {
|
| 5 |
"LICENSE-CODE": {
|
| 6 |
"sha256": "e26a0375b714267325c27905ba947fdc41ebc0b7a36940a49ae12379ed6208d6",
|
|
|
|
| 19 |
"tracked_at_commit": true
|
| 20 |
},
|
| 21 |
"hf/stage_b_preview/DATA_PROVENANCE.md": {
|
| 22 |
+
"sha256": "d0be84c8412aa9766c2477e145c3c4e9c7ff5beaf8116de5acc8d05e6616f857",
|
| 23 |
"tracked_at_commit": true
|
| 24 |
},
|
| 25 |
"hf/stage_b_preview/MODEL_DATA_LICENSES.md": {
|
| 26 |
+
"sha256": "39501a1246aff094fcc987a548f7e8bd750dd21900b43c5a2e8cbcab305bb0b1",
|
| 27 |
"tracked_at_commit": true
|
| 28 |
},
|
| 29 |
"hf/stage_b_preview/README.template.md": {
|
| 30 |
+
"sha256": "48da494a6278ba161cea93c62e4d04bbc7a48c5da46f9d7568c262329ea8e366",
|
| 31 |
+
"tracked_at_commit": true
|
| 32 |
+
},
|
| 33 |
+
"hf/stage_b_preview/assets/clover-image-tiny-banner.png": {
|
| 34 |
+
"sha256": "c3d5c0243ebd0962263187fd54ea94e7646870a7c6e52ece620e958a43b827a3",
|
| 35 |
"tracked_at_commit": true
|
| 36 |
},
|
| 37 |
"hf/stage_b_preview/examples/generate.py": {
|
| 38 |
+
"sha256": "4cfba0d6f3f2a5a9d1090564be5b618d06b757ef258ec7cfcff0523353e1466b",
|
| 39 |
"tracked_at_commit": true
|
| 40 |
},
|
| 41 |
"hf/stage_b_preview/requirements.txt": {
|
|
|
|
| 63 |
"tracked_at_commit": true
|
| 64 |
},
|
| 65 |
"src/clover_image/stage_b_preview.py": {
|
| 66 |
+
"sha256": "7a769e4e6098580c4235c56ff29ab3cc17496d5b6d528be425ee8000cc86e849",
|
| 67 |
"tracked_at_commit": true
|
| 68 |
}
|
| 69 |
}
|
|
|
|
| 120 |
"human_review": "not_measured",
|
| 121 |
"quality_evaluation": "not_measured"
|
| 122 |
},
|
| 123 |
+
"metadata_sha256": "faa5ac18488ff0a0c37da1471194395c841a27086056d31cf2b7b56cc758c214",
|
| 124 |
+
"presentation": {
|
| 125 |
+
"model_card_banner": {
|
| 126 |
+
"bundled_path": "assets/clover-image-tiny-banner.png",
|
| 127 |
+
"downstream_reuse_license": "not_granted_by_this_package",
|
| 128 |
+
"format": "PNG",
|
| 129 |
+
"generation_provenance": "not_claimed",
|
| 130 |
+
"height": 922,
|
| 131 |
+
"mode": "RGBA",
|
| 132 |
+
"publication_authorization": "explicit_user_request",
|
| 133 |
+
"publication_scope": "public_hugging_face_model_repository",
|
| 134 |
+
"quality_decisional": false,
|
| 135 |
+
"sha256": "c3d5c0243ebd0962263187fd54ea94e7646870a7c6e52ece620e958a43b827a3",
|
| 136 |
+
"size_bytes": 4584745,
|
| 137 |
+
"source": "user_supplied",
|
| 138 |
+
"width": 2302
|
| 139 |
+
}
|
| 140 |
+
},
|
| 141 |
"release_ready": false,
|
| 142 |
"runtime_contract": {
|
| 143 |
"denoiser_calls": 51,
|
|
|
|
| 149 |
"scheduler": "PNDMScheduler",
|
| 150 |
"width": 512
|
| 151 |
},
|
| 152 |
+
"schema_version": 2,
|
| 153 |
"source_package": {
|
| 154 |
"checksums_path": "evidence/stage-b-inference-checksums.json",
|
| 155 |
"checksums_sha256": "d9a28d5fe6f5b675ee1b9db52e6d0493c8d3d357bb824eac590911acbd5c3ebc",
|