abir614/i
0
IMGFLOW — Pro Pipeline (Server-Side Edition)
All image processing now runs on the server via a Python FastAPI backend. No ONNX downloads to the browser. No GPU required in the visitor's device.
Architecture
Browser (UI only) Server (FastAPI + Python)
───────────────── ─────────────────────────────────
Drop images → POST /api/process (multipart form)
Show progress bar ← Processing runs in Python:
Receive blob + headers ← • Pillow — Lanczos upscale, resize, WebP
Download / ZIP ← • rembg — ISNet BG removal
← • opencv — edge erosion, Sobel saliency
← • scipy — Gaussian feather / blur
← • iopaint — LaMa AI fill (optional)Flows
Repo structure
├── Dockerfile
├── README.md
├── index.html
├── style.css
├── script.js
└── backend/
├── main.py
├── processing.py
└── requirements.txtLocal dev
pip install -r backend/requirements.txt
uvicorn backend.main:app --reload --port 7860
# open http://localhost:7860Or with Docker:
docker build -t imgflow .
docker run -p 7860:7860 imgflow