Phantom-1: Compact Image Generation Model
1 min read
Phantom-1 generates 256x256 pixel RGB images from English text prompts. The model runs on a CPU or GPU using the Transformers library, and requires the T5-base text encoder and SD-VAE decoder, which are downloaded separately. Featuring low memory consumption, the model is well suited for local deployment across various devices.
Key features
- Generation of 256x256 pixel images from text descriptions
- Support for CPU and CUDA execution via Transformers
- Use of architectural components from tinydit
- Separate downloading of T5-base and SD-VAE components
What you can do
- Generate a single image from a text prompt
- Create a batch of images by passing a list of prompts
- Configure generation using seed and guidance scale
Example
import torch
from transformers import AutoModel
repo = "TheHuggerFacer/Phantom-1"
device = "cuda" if torch.cuda.is_available() else "cpu"
model = AutoModel.from_pretrained(repo, trust_remote_code=True).eval().to(device)
image = model.generate_image(
"A clockwork owl perched on a brass telescope, studio photograph",
seed=42,
num_inference_steps=20,
guidance_scale=4.0,
)[0]
image.save("clockwork-owl.png")Read more
DetailsFID (64 samples): 146.98
Peak VRAM: 1.33 GiB
Parameters: 0.1B
Limitations: details and object counts can be inconsistent








![[KREA2/ANIMA] re0n style](/media/civitai--2747797-krea2-anima-re0n-style/cover-320.webp)
![[KREA2/ANIMA] re0n style](/media/civitai--2747797-krea2-anima-re0n-style/cover.webp)
Comments