Chroma Image Generator
A Gradio app for generating images using the Chroma model by lodestones.
Features
- High-quality image generation using the Chroma model
- Customizable parameters: width, height, steps, CFG scale, and seed
- Pre-cached examples for instant preview and testing
- Professional UI with Gradio interface
Example Prompts
The app includes 11 pre-configured example prompts with optimized parameters:
- High-fashion portrait with anaglyph 3D effect
- Young man with captain's hat and sunglasses
- Shiba Inu with captain's hat and sunglasses
- Impressionistic sailing painting
- Anthro wolf in forest setting
- Dragon with galaxy wings over castle
- Anthro dog in NYC apartment
- Leopard geckos collage
- Anthro wolf plushie collage
- Telegram sticker anthro fox
- Tiger eye with 'Chroma' text overlay
Caching
The app uses Gradio's built-in cache_examples=True feature to pre-generate and cache all example images. This means:
- Instant results when clicking on examples
- No waiting time for cached examples
- Automatic cache management by Gradio
- Faster user experience for trying different prompts
Usage
- Manual input: Enter your own prompt and adjust parameters
- Use examples: Click on any example to load it instantly
- Customize: Modify example prompts to create variations
- Generate: Click the Generate button to create new images
Parameters
- Prompt: Describe what you want to generate
- Negative Prompt: Describe what you want to avoid
- Width/Height: Image dimensions (512-2048px)
- Steps: Number of denoising steps (1-50)
- CFG Scale: How closely to follow the prompt (1-20)
- Seed: Random seed for reproducible results (-1 for random)
Technical Details
- Built with Gradio for the web interface
- Uses ComfyUI workflow backend
- Powered by Chroma diffusion model
- Supports GPU acceleration with Spaces
- Automatic caching for optimal performance
Running Locally
python app.py
The app will start and be available at http://localhost:7860
Cache Directory
Examples are cached in the gradio_cached_examples directory. To rebuild the cache (if examples change), delete this directory and restart the app.
Citation and attribution
This hosted interface is maintained by Gökay Aydoğan. If you reference this repository in academic work, please cite it as follows and also cite the upstream models, datasets, or projects it builds upon.
@software{aydogan2025chroma,
author = {Aydoğan, Gökay},
title = {{Chroma}},
year = {2025},
publisher = {Hugging Face},
url = {https://huggingface.co/spaces/gokaygokay/Chroma},
note = {Hosted interface; cite the upstream models and projects used by this Space as required.}
}