S3

Sphere Encoders for One-Step Text-to-Image Generation

Paper | Code | Project Page

S3 is a one-step text-to-image generator trained from scratch on the latent sphere of a frozen visual encoder. It generates a 512x512 image in a single forward pass without guidance. Its latent space also supports zero-shot editing and layout control, and a fine-tuned version handles inpainting, outpainting, spatial control and instruction-based editing. The models here were independently trained on open data.

Models

Model Resolution Folder Used for
S3-L 512px ./ text-to-image, zero-shot editing, zero-shot layout control
S3-L, fine-tuned for editing 512px s3edit inpainting, outpainting, layout and depth control, instruction-based editing

Files

File Content
config.json architecture of S3-L and its frozen encoders
generator.safetensors S3-L generator
decoder.safetensors decoder at 512px
decoder_256.safetensors decoder at 256px, used for training
seg_head.safetensors segmentation head on the latent, used for zero-shot editing and layout control
depth_head.safetensors depth head on the latent, used for training the editing model
s3edit/ config.json, generator and decoder of the editing model

The text encoder (Qwen3-VL-2B-Instruct) and the image encoder (DINOv2-B with registers) are downloaded from their own repositories.

Usage

In the code repository, the setup script downloads these files into weights/. Then follow its README for generation, editing and training:

bash setup.sh
conda activate s3
python inference.py sample --prompt "A white ceramic teapot and two lemon slices on a sunlit white marble kitchen counter."
Downloads last month
-
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Paper for tomg-group-umd/sphere-t2i