chromaforge-api / README.md
birajsubedi's picture
feat: FastAPI inference server with U-Net generator
8919f98
|
Raw
History Blame Contribute Delete
856 Bytes
---
title: ChromaForge API
emoji: 🎨
colorFrom: gray
colorTo: purple
sdk: docker
pinned: false
license: mit
short_description: Conditional GAN grayscale image colorization API
---
# ChromaForge β€” Colorization API
FastAPI backend for the ChromaForge colorization system.
## Endpoints
| Method | Path | Description |
|--------|------|-------------|
| GET | `/` | Service info and model status |
| GET | `/health` | Health check |
| POST | `/colorize` | Upload image β†’ receive colorized JPEG |
| POST | `/colorize/base64` | Upload image β†’ receive JSON with base64 image |
## Usage
```bash
curl -X POST "https://your-space.hf.space/colorize" \
-F "file=@your_image.jpg" \
--output colorized.jpg
```
## Model
U-Net Generator + PatchGAN Discriminator trained on COCO 2017 (118k images).
See the main repository for training code and metrics.