Spaces:
Running on Zero

File size: 1,485 Bytes
b3d9a9c
 
ca42c6b
 
 
b3d9a9c
ca42c6b
b3d9a9c
 
ca42c6b
8457094
ca42c6b
 
 
 
2478dff
ca42c6b
2478dff
 
ca42c6b
2478dff
ca42c6b
 
 
 
2478dff
b3d9a9c
 
ca42c6b
 
 
8457094
ca42c6b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
title: HobbyLM Image 2
emoji: 🎨
colorFrom: indigo
colorTo: pink
sdk: gradio
sdk_version: 5.9.1
app_file: app.py
pinned: false
license: mit
short_description: Generate, edit & spell text in images with a 333M model
models:
  - rootxhacker/HobbyLM-image-2
tags:
  - text-to-image
  - image-generation
  - image-editing
  - image-to-image
  - instruction-editing
  - text-rendering
  - diffusion
  - flow-matching
  - dit
  - dc-ae
  - tiny-model
  - zerogpu
---

# 🎨 HobbyLM Image 2

Interactive demo of **HobbyLM-Image v2** β€” a 333M-parameter flow-matching DiT (DC-AE f32c32
latents, CLIP-L + FLAN-T5-Large conditioning) trained from scratch. One
checkpoint (`model_v2_768u`) does three things:

- **✨ Generate** β€” text-to-image at 512 / 768px.
- **πŸͺ„ Edit** β€” instruction editing ("make it autumn") on any image, any aspect ratio.
- **πŸ”€ Spell** β€” render the words you put in "double quotes" into the scene.

Weights, benchmark scores (GenEval 2, GEdit-Bench) and ComfyUI nodes:
[rootxhacker/HobbyLM-image-2](https://huggingface.co/rootxhacker/HobbyLM-image-2).

## Hardware

Written for **ZeroGPU** (`@spaces.GPU` on the three inference functions); it also runs on any
CUDA GPU locally. The Space needs an `HF_TOKEN` secret with read access to the model repo.

## Provenance

Every output carries an invisible TrustMark watermark (payload `HLMI768u`) so images made here
can be identified as model output. Verify with `python -m hobby_image.detect image.jpg`.