Phantom-1

Phantom-1 generates 256 × 256 RGB images from English prompts. The model runs on CPU or CUDA with Hugging Face Transformers. It uses the T5-base text encoder and the SD-VAE decoder, which download separately on first use.

Clockwork owl, golden retriever and double-decker bus generated by Phantom-1

Generate an image

Install the dependencies in requirements.txt, then run the following Python 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")

Pass a list of prompts to generate a batch. The method returns one PIL image per prompt. A fixed seed makes it easier to compare prompts on the same device. A guidance scale of 1 uses the conditional prediction directly. Object counts, spatial relations and fine details can be inconsistent.

The text encoder and decoder are distributed separately under their respective terms. T5-base · SD-VAE

The inference implementation uses attention, rotary embeddings and timestep components adapted from tinydit.

Held-out comparison

Eight matched captions across three models

Model FID (64 samples) ↓ Paired RGB MSE ↓ Peak inference VRAM (GiB)
Phantom-1 146.98 0.4101 1.33
AuroraIMG2-50M-Preview 164.90 0.4787 0.48
AuroraIMG2-100M 129.09 0.3783 0.78

Each model generated 256 × 256 images for the same 64 English captions at CFG 4 with 20 Euler steps. References are decoded SD-VAE latents. FID uses 2,048-dimensional torch-fidelity Inception features; 64 samples give a noisy, sample-size-dependent estimate. Comparisons with FID-50K require a larger evaluation. Paired RGB MSE uses pixels scaled to [−1, 1]. Phantom-1 and Aurora 100M use shift 2.8; Aurora 50M uses its native unshifted schedule.

Memory is peak PyTorch-allocated GPU memory for one prompt after warmup, including the text encoder, denoiser and VAE on NVIDIA A100-SXM4-80GB. The measurements use the released pipelines with FP32 denoiser and encoder weights, BF16 autocast during denoising and each pipeline’s decoder precision. Driver and allocator-reserved memory can increase device usage.

Aurora 50M · Aurora 100M · torch-fidelity

Downloads last month
-
Safetensors
Model size
99.8M params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support