Files
wiki/Catalogue-Self-Hosted/apps/app-withoutbg.md
T
2026-06-09 18:40:21 +02:00

112 lines
4.0 KiB
Markdown

---
title: withoutBG
created: 2026-06-07
updated: 2026-06-07
type: app
tags: [catalogue, photos, ai, background-removal, image, self-hosted]
confidence: high
contested: false
sources: [https://selfh.st/apps/?tag=Photos, https://github.com/withoutbg/withoutbg]
---
# 📸 withoutBG
> **Suppression d'arrière-plan par IA, en local** : détourrez vos photos sans envoyer vos images sur un serveur distant, via une API HTTP simple.
## 📋 Informations Générales
| Attribut | Valeur |
|----------|--------|
| **Nom** | withoutBG |
| **Slug** | app-withoutbg |
| **Description** | API de suppression d'arrière-plan par IA locale |
| **Site officiel** | [withoutbg.com](https://withoutbg.com) |
| **Repository** | [withoutbg/withoutbg](https://github.com/withoutbg/withoutbg) |
| **Stars** | 1 109 ⭐ |
| **Licence** | MIT |
| **Langage principal** | Python, PyTorch |
| **Catégorie** | Photos |
| **Tags** | [catalogue, photos, ai, background-removal, image, self-hosted] |
## 📝 Description
**withoutBG** est un service HTTP qui expose une **API de suppression d'arrière-plan** boostée à l'IA. Vous uploadez (ou postez en multipart) une image, le serveur applique un modèle de segmentation (type U²-Net, MODNet, ou RMBG-1.4), et vous renvoie l'image détourée avec un canal alpha (PNG transparent).
Positionnement par rapport à la concurrence : la plupart des solutions SaaS (remove.bg, PhotoRoom) **envoient vos images sur leurs serveurs**. withoutBG, lui, **tourne sur votre machine** : aucune donnée ne quitte votre réseau. C'est un point crucial pour les photographes pros, les e-commerçants avec des photos de produits confidentielles, ou toute personne soucieuse de la vie privée.
Fonctionnalités : **API REST simple** (`POST /remove-background`), **formats** JPEG/PNG/WebP, **sortie PNG avec alpha**, **traitement par lot**, **GPU accéléré** (CUDA, ROCm, MPS pour Apple Silicon), **modèle interchangeable** (léger vs qualité max), **intégration n8n/HTTP facile** dans une chaîne de traitement, **mode CLI** pour script shell.
Cas d'usage : **e-commerce** (détourage catalogue produit), **portraits** (photo identité, CV), **MCP/print-on-demand**, **automatisation n8n** d'une chaîne photo.
## 🚀 Installation
### Via Docker (recommandé)
```yaml
# docker-compose.yml
services:
withoutbg:
image: ghcr.io/withoutbg/withoutbg:latest
container_name: withoutbg
restart: unless-stopped
ports:
- 8085:8080
# GPU NVIDIA (optionnel mais recommandé)
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: 1
# capabilities: [gpu]
```
### Appel API
```bash
curl -X POST -F "image=@photo.jpg" http://localhost:8085/remove-background -o output.png
```
### Installation manuelle
```bash
git clone https://github.com/withoutbg/withoutbg.git
cd withoutbg
pip install -r requirements.txt
python -m withoutbg
```
## ⚙️ Configuration
- **Modèle** : choix entre qualité max (lourd) ou rapide (léger).
- **GPU** : activer CUDA/ROCm/MPS pour 10x-50x d'accélération.
- **Taille max d'image** : paramétrable (défaut 4096px).
- **Workers concurrents** : ajuster selon CPU/RAM.
## 🔗 Alternatives
- **[[app-imagor-studio]]** — Processeur d'images générique, sans IA dédiée
- **[[app-mazanoke]]** — Compression/conversion, ne fait pas de détourage
- **remove.bg SaaS** — Même fonction, mais cloud
## 🔒 Sécurité
- **Pas d'auth par défaut** : ajouter un reverse proxy auth ou token API.
- **Pas d'upload distant** : tout reste local, le vrai avantage.
- **HTTPS** : recommandé pour appels API depuis apps tierces.
- **Surface Python/PyTorch** : tenir l'image à jour (CVE).
## 📚 Ressources
- [Site officiel](https://withoutbg.com)
- [Repository GitHub](https://github.com/withoutbg/withoutbg)
- [Démarrage rapide](https://github.com/withoutbg/withoutbg/blob/main/docs/quickstart.md)
## 🔗 Pages Liées
- [[cat-photos]]
- [[app-imagor-studio]]
- [[app-mazanoke]]
- [[app-traefik]]
- [[recettes-docker-compose]]
- [[securisation-home-lab]]