SyntheticMDProductions commited on
Commit
cd225d2
·
verified ·
1 Parent(s): 75903ff

Document ADiM 1.0 inference and add matched-seed samples

Browse files
Files changed (3) hide show
  1. .gitattributes +1 -0
  2. README.md +50 -0
  3. prompt-comparison.png +3 -0
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ prompt-comparison.png filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pipeline_tag: text-to-image
3
+ language:
4
+ - en
5
+ tags:
6
+ - pytorch
7
+ - flow-matching
8
+ - image-generation
9
+ ---
10
+
11
+ # ADiM 1.0
12
+
13
+ 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.
14
+
15
+ ## Try the generator
16
+
17
+ 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:
18
+
19
+ ```sh
20
+ python -m pip install torch numpy pillow
21
+ python -c "from desktop import run; run(False)"
22
+ ```
23
+
24
+ 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.
25
+
26
+ 1. Click **Browse** beside **Checkpoint** and choose **ADiM 1.0.pt**.
27
+ 2. Enter `a red bus on a city street`. Set **Starting seed** to **1**, select **3** images, and leave **Output ratio** on **Auto**.
28
+ 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.
29
+
30
+ ## Fixed-seed samples
31
+
32
+ Each column uses one seed throughout. The first three rows test whether an object or color changes while the street setting stays consistent.
33
+
34
+ ![Six prompts rendered with ADiM 1.0 at seeds 1, 2, and 3](prompt-comparison.png)
35
+
36
+ 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.
37
+
38
+ ## Generate from Python
39
+
40
+ ```python
41
+ from pathlib import Path
42
+ from engine import generate
43
+
44
+ image = generate(Path("ADiM 1.0.pt"), "a red bus on a city street", seed=3)
45
+ image.save("street-seed-3.png")
46
+ ```
47
+
48
+ ## Architecture
49
+
50
+ 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.
prompt-comparison.png ADDED

Git LFS Details

  • SHA256: 615ae48d550f8862c5133c841e9b27eac707440d690b9d47d0d3ec207ff5e0ce
  • Pointer size: 131 Bytes
  • Size of remote file: 473 kB