CoolFace
Apppublic

itishanls249/real-esrgan-upscaler

sourceHugging Facemitupdated 4mo agoView on Hugging Face
0likes
App README

Image Enhancer API

Real-ESRGAN image upscaling exposed as a REST API, packaged with Docker.

Endpoints

MethodPathDescription
GET/healthService health and model status
POST/image_enhancerUpscale an uploaded image (2x or 4x)

Run with Docker

bash
docker compose up --build

API docs: http://localhost:7860/docs

Example requests

Health check

bash
curl http://localhost:7860/health

Enhance image (2x)

bash
curl -X POST http://localhost:7860/image_enhancer \
  -F "file=@input.jpg" \
  -F "scale=2" \
  --output enhanced.png

Wait until /health shows "models_loaded": true before calling /image_enhancer.

Local development (without Docker)

bash
pip install -r requirements.txt
python download_weights.py
uvicorn app:app --host 0.0.0.0 --port 7860