File size: 2,624 Bytes
cd225d2
 
 
 
 
 
 
 
 
 
 
 
57730d7
 
cd225d2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57730d7
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
---
pipeline_tag: text-to-image
language:
- en
tags:
- pytorch
- flow-matching
- image-generation
---

# ADiM 1.0

![untitled_by_pgalartz_dnea29j-pre](https://cdn-uploads.huggingface.co/production/uploads/6a7b38663b0d863e582892fa/KFMbNEM6qMptIXRJ-dD8R.jpeg)

ADiM 1.0 is an experimental text-to-image model from SyntheticMDProductions. It generates a 128 × 128 image from an English prompt and a seed. At 3,296,867 parameters and 99,000 cumulative training steps, it often captures the palette and layout of a scene. Individual objects can remain ambiguous.

## Try the generator

Download `ADiM 1.0.pt`, `desktop.py`, and `engine.py` into the same folder. Open a terminal there with Python 3.10 and Tkinter available, then run:

```sh
python -m pip install torch numpy pillow
python -c "from desktop import run; run(False)"
```

The desktop app uses CUDA when available and otherwise runs on CPU. The included Windows batch file uses the author's local Python path. The command above uses your own Python installation.

1. Click **Browse** beside **Checkpoint** and choose **ADiM 1.0.pt**.
2. Enter `a red bus on a city street`. Set **Starting seed** to **1**, select **3** images, and leave **Output ratio** on **Auto**.
3. Click **Generate image**. Each tile shows its seed and has a **Save PNG** button. Change *bus* to *bicycle* and generate again to compare the same seeds.

## Fixed-seed samples

Each column uses one seed throughout. The first three rows test whether an object or color changes while the street setting stays consistent.

![Six prompts rendered with ADiM 1.0 at seeds 1, 2, and 3](prompt-comparison.png)

The street layout persists across the vehicle prompts. Seed 3 suggests a red bus, while bicycle wheels and frames are difficult to distinguish. Several samples contain black borders, consistent with the padded images used during fine-tuning. These are qualitative examples from the released checkpoint.

## Generate from Python

```python
from pathlib import Path
from engine import generate

image = generate(Path("ADiM 1.0.pt"), "a red bus on a city street", seed=3)
image.save("street-seed-3.png")
```

## Architecture

ADiM uses pixel-space flow matching with a convolutional U-Net-style backbone. During training it learns the velocity from noise toward an image. The sampler uses 40 Euler steps and the checkpoint's raw weights. The text encoder sums learned word embeddings, so rearranging the same words leaves its conditioning vector unchanged. Simple scene descriptions are a good starting point; spatial relationships, fine anatomy, and precise object shapes are harder to control.