SimpleTuner/hdit-plus-512px
An image generation diffusion model
1 min readupdated
A new image generation model trained from scratch using the SimpleTuner library. It operates at a 512x512 pixel resolution and uses third-party text encoders to process prompts. The model is built on the flow matching architecture and ships with EMA (exponential moving average) weights for more stable results. This project will interest researchers and developers exploring how to train diffusion networks from scratch.
Key features
- Trained from scratch on a large 512x512 dataset
- Images are generated using the FlowMatchEulerDiscreteScheduler scheduler
- The text encoder was not trained, allowing you to reuse original components
- EMA weights are available in safetensors format for inference and .pt format for continuing training
What you can do
- Generate a test image using a Python script and the diffusers library
- Use the EMA version of the model for smoother generation results
- Integrate the checkpoint into your own image generation pipelines
Example
import torch
from diffusers import DiffusionPipeline
model_id = 'SimpleTuner/hdit-plus-512px'
pipeline = DiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.bfloat16)
prompt = "A red cube to the left of a blue sphere on a pale wooden table."
negative_prompt = 'blurry, cropped, ugly'
pipeline.to('cuda' if torch.cuda.is_available() else 'cpu')
model_output = pipeline(
prompt=prompt,
negative_prompt=negative_prompt,
num_inference_steps=30,
guidance_scale=4.0,
).images[0]
model_output.save("output.png", format="PNG")Read more
DetailsTraining steps: 140,000
Resolution: 512x512
Optimizer: adamw_bf16 (mup=true)
Scheduler: FlowMatchEulerDiscreteScheduler








Comments