851-labs/background-remover 🖼️📝✓🔢 → 🖼️

▶️ 8.9M runs 📅 Dec 2024 ⚙️ Cog 0.13.6 🔗 GitHub 📄 Paper ⚖️ License
background-removal background-replacement image-editing image-to-image

About

Remove backgrounds from images.

Example Output

Output

Example output

Performance Metrics

0.65s Prediction Time
0.67s Total Time
All Input Parameters
{
  "image": "https://replicate.delivery/pbxt/MAqakpYnuaS5IxU4WZAh5irkSn92wuYc5bdU1TNV5xzIJ8sM/gzp35qt55t4aatwznmccv2ssgds2.png",
  "format": "png",
  "reverse": false,
  "threshold": 0,
  "background_type": "rgba"
}
Input Parameters
image (required) Type: string
Input image
format Type: stringDefault: png
Output format (e.g., png, jpg). Defaults to png.
reverse Type: booleanDefault: false
If True, remove the foreground instead of the background.
threshold Type: numberDefault: 0
Threshold for hard segmentation (0.0-1.0). If 0.0, uses soft alpha.
background_type Type: stringDefault: rgba
Background type: 'rgba', 'map', 'green', 'white', [R,G,B] array, 'blur', 'overlay', or path to an image.
Output Schema

Output

Type: stringFormat: uri

Version Details
Version ID
a029dff38972b5fda4ec5d75d7d1cd25aeff621d2cf4946a41055d7db66b80bc
Version Created
December 19, 2024
Run on Replicate →