Downloads · 30 days
0
anilegin/lightweight-diffusion-ldm
lightweight-diffusion-ldm is a text-to-image model from anilegin. Use it when you need an image from a text prompt. It is set up for pytorch. The card lists the license as mit.
Custom lightweight latent diffusion text-to-image model.
Downloads · 30 days
0
Access
Public
Updated Jul 8, 2026
Repo size
2.2 GB
Likes
0
Public
Click a slice to open those files.
.pt2.2 GB · 100%
From the Hugging Face model README
Custom lightweight latent diffusion text-to-image model.
This repository contains inference-only files:
inference.py scriptgeneration_config.yamlThe checkpoints are stripped to contain model weights only; optimizer state, scheduler state, and training logs are not included.
git clone https://huggingface.co/anilegin/lightweight-diffusion-ldm
cd lightweight-diffusion-ldm
pip install -r requirements.txt
python inference.py \
--prompt "a small dog sitting on a red couch" \
--sampler ddim \
--num-steps 50 \
--guidance-scale 3.0 \
--precision bf16 \
--output-dir outputs/example
For offline/local-only CLIP loading, make sure openai/clip-vit-large-patch14 is cached locally and add:
--local-files-only
This is a custom PyTorch implementation, not a native Diffusers pipeline. The included source code is required for inference.
Trained/evaluated with COCO-style image-caption data. Add more precise dataset, metrics, and limitations here before making the repo public.
If you use this model, please cite the project/repository.