SyntheticMDProductions's picture
Update README.md
57730d7 verified
|
Raw History Blame Contribute Delete
2.62 kB
metadata
pipeline_tag: text-to-image
language:
  - en
tags:
  - pytorch
  - flow-matching
  - image-generation

ADiM 1.0

untitled_by_pgalartz_dnea29j-pre

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:

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

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

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.