Spaces:
Sleeping
Sleeping
File size: 1,183 Bytes
f1e1987 d6dd227 f1e1987 fca54c5 f1e1987 d6dd227 53f163e 91e64cb 53f163e 91e64cb 53f163e 91e64cb 53f163e 91e64cb fca54c5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | ---
title: Color Loss Demo
emoji: 🎨
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 5.19.0
app_file: app.py
pinned: false
---
# Color Loss Demo
This app demonstrates different color loss functions that can modify the color distribution in images.
## Features
- Apply different color loss effects:
- Yellow Loss: Reduces yellow tones in the image
- Cyan Loss: Reduces cyan tones in the image
- Magenta Loss: Reduces magenta tones in the image
- Control the strength of the color loss effect
- Upload your own images to apply color loss effects
- Generate placeholder images in different styles
## How to Use
1. Enter a prompt (for placeholder image text)
2. Select a style for the placeholder image
3. Choose a color loss type (or "None" for no effect)
4. Set a seed value (for reproducibility)
5. Adjust the color loss strength
6. Upload your own image (optional)
7. Click "Apply Color Loss"
## Examples
The app includes several example configurations that you can try with a single click.
## Technical Details
This app uses:
- PIL for image processing
- NumPy for efficient array operations
- Custom color loss functions that target specific color ranges |