FastAPI service that pulls an original from Immich and runs a GPU image enhancement pipeline.
5.1K
Repair and enhance old, blurry, noisy or low-resolution photos in your self-hosted Immich library
Open a photo in Immich, click the Forge icon, and Forge can:
You will also need the Forge for Immich Chrome extension.
Quick start — works on any Intel/AMD computer, with or without a GPU:
docker run -d --name immich-forge -p 8000:8000 \
-v immich-forge-weights:/app/weights --restart unless-stopped \
jamiekyu/immich-forge
Adjust for your computer:
Install the NVIDIA Container Toolkit, then add --gpus all:
docker run -d --name immich-forge --gpus all -p 8000:8000 \
-v immich-forge-weights:/app/weights --restart unless-stopped \
jamiekyu/immich-forge
Use Docker Desktop (WSL 2 backend, the default) with a current NVIDIA driver. In PowerShell:
docker run -d --name immich-forge --gpus all -p 8000:8000 `
-v immich-forge-weights:/app/weights --restart unless-stopped `
jamiekyu/immich-forge
In Docker Desktop → Settings → General, turn on "Use Rosetta for x86_64/amd64 emulation on Apple Silicon" (much faster than the default emulation), then:
docker pull --platform linux/amd64 jamiekyu/immich-forge
docker run -d --name immich-forge --platform linux/amd64 -p 8000:8000 \
-v immich-forge-weights:/app/weights --restart unless-stopped \
jamiekyu/immich-forge
Without --platform linux/amd64, Docker fails with "no matching manifest for linux/arm64/v8". Expect enhancements to be slow (minutes per photo).
Use the quick start command as-is.
In your browser, go to http://YOUR_FORGE_IP:8000 (or http://localhost:8000 on the same computer).
http://192.168.1.50:2283.
localhosthttp://YOUR_FORGE_IP:8000 (or http://localhost:8000 if Forge runs on the same computer as your browser) — and your Forge token from step 2, then click Save & test. Allow access when Chrome asks.Save as docker-compose.yml, run docker compose up -d, then continue from step 2 above:
services:
forge:
image: jamiekyu/immich-forge:latest
# platform: linux/amd64 # uncomment on Apple Silicon Macs
ports:
- "8000:8000"
volumes:
- immich-forge-weights:/app/weights
# Delete this "deploy" block if you have no NVIDIA GPU:
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
restart: unless-stopped
volumes:
immich-forge-weights:
| Problem | Fix |
|---|---|
no matching manifest for linux/arm64/v8 | You're on an Apple Silicon Mac. Add --platform linux/amd64 (see step 2). |
| "The requested image's platform (linux/amd64) does not match…" warning | Harmless on Apple Silicon — it's running through emulation. Add --platform linux/amd64 to silence it. |
| The setup page won't open | Check the container is running (docker ps) and you're using port 8000. From another computer, use the Forge machine's IP, not localhost. |
| Test connection can't reach Immich | Use your Immich computer's IP address (not localhost — inside the container that means the container itself) and port 2283. |
| Extension says the server isn't set up yet | Finish step 2 on the setup page. Until then Forge refuses all requests — this keeps your library private. |
| Extension says token rejected | Paste the Forge token again. If you made a new one on the setup page, the old one stopped working. |
| Lost your Forge token | Sign in to the setup page with your Immich address and API key and copy it from there. Or run docker exec immich-forge python -m app.reset_token to make a new one. |
| Forging says models still downloading | Wait for the download to finish — progress is on the setup page. If a download failed, click Retry there. |
| Extension can't reach the server | Check the container is running (docker ps), the address uses port 8000, and no firewall blocks it. From another computer, use the Forge machine's IP, not localhost. |
"cuda_available": false on an NVIDIA machine | Add --gpus all (or the compose deploy block), and install the NVIDIA Container Toolkit on Linux. |
| Out of GPU memory | Lower FORGE_TILE_SIZE to 256, and FORGE_LOW_LIGHT_MAX_PIXELS to 2000000. |
| Auto says "face detection unavailable" | The face model hasn't downloaded. Check the setup page, and click Retry if it failed. |
Changed a -e setting but nothing happened | Environment settings are read at start: recreate the container (docker rm -f + run again, or docker compose up -d). A plain docker restart keeps the old settings. (Changes on the setup page apply straight away.) |
Set these with -e NAME=value (or under environment: in compose).
Essentials
| Variable | Default | What it does |
|---|---|---|
FORGE_DEVICE | cuda | cuda uses an NVIDIA GPU when one is available, and the CPU otherwise — no change needed without a GPU. cpu forces the CPU even when a GPU is present. |
Connection (optional) — normally set on the setup page. If you set them here instead, they're used as-is and shown on the page as read-only (handy for scripted installs).
| Variable | Default | What it does |
|---|---|---|
IMMICH_BASE_URL | (set on the page) | Your Immich address. |
IMMICH_API_KEY | (set on the page) | Your Immich API key. |
FORGE_API_TOKEN | (created on the page) | The token the extension must send. Until one exists, Forge refuses all requests. |
Performance and limits
| Variable | Default | What it does |
|---|---|---|
FORGE_TILE_SIZE | 512 | Images are processed in tiles this big. Lower (e.g. 256) if the GPU runs out of memory; 0 turns tiling off. |
FORGE_LOW_LIGHT_MAX_PIXELS | 4000000 | Largest photo brightened in one piece (~1.35 GB VRAM per megapixel). Bigger photos use a downscale carried back to full size. Raise on a big GPU (e.g. 12000000 on 24 GB). |
FORGE_MAX_IMAGE_PIXELS | 40000000 | Largest photo Forge accepts (40 MP). |
FORGE_MAX_OUTPUT_PIXELS | 100000000 | Largest result (100 MP). Enlarge ×4 drops to ×2 (or off) to fit. |
FORGE_MAX_CONCURRENT_GPU_JOBS | 1 | Jobs processed at once. |
FORGE_JOB_TTL_SECONDS | 3600 | How long a forge result is kept (counted from when the job started) before it's discarded if not saved. |
AI models — each can be swapped, and most turned off (none greys that option out in the extension)
| Variable | Default | Options |
|---|---|---|
FORGE_DEJPEG_BACKEND | fbcnn | fbcnn (FBCNN, Apache-2.0) · none |
FORGE_DENOISE_BACKEND | scunet | scunet (SCUNet) · nlm (classic non-AI denoiser) · none |
FORGE_LOW_LIGHT_BACKEND | hvicidnet | hvicidnet (HVI-CIDNet, MIT) · classical (CLAHE + gamma) |
FORGE_UPSCALE_BACKEND | realesrgan | realesrgan (Real-ESRGAN) · lanczos (classic resize) |
FORGE_FACE_BACKEND | codeformer | codeformer (best results; non-commercial S-Lab license) · gfpgan (Apache-2.0) · gfpgan+codeformer · none |
FORGE_COLORIZE_BACKEND | ddcolor | ddcolor (DDColor) · none |
Auto mode
| Variable | Default | What it does |
|---|---|---|
FORGE_AUTO_FACE_DETECTION | true | Look for faces (on the CPU) to decide whether to suggest Restore faces. false skips it. |
FORGE_AUTO_* | — | Fine-tune when Auto suggests each enhancement (e.g. FORGE_AUTO_NOISE_SIGMA_MIN). See the full list and how the rules work. |
Advanced
| Variable | Default | What it does |
|---|---|---|
FORGE_SKIP_WEIGHT_DOWNLOAD | 0 | 1 skips the model download (for offline hosts with a pre-filled weights volume). Forging then doesn't wait for downloads. |
FORGE_WEIGHTS_DIR | weights | Where the AI models — and the setup page's saved settings — are stored inside the container (/app/weights). Keep the volume mounted there, or your setup is lost when the container is recreated. |
FORGE_CORS_ORIGINS | (empty) | Leave empty. The extension doesn't need it; set only for a custom web client. |
Content type
Image
Digest
sha256:2a0c325d8…
Size
3.8 GB
Last updated
2 days ago
docker pull jamiekyu/immich-forge