Background Removal

by dearbeetaco.huggingface.dearbeeta/removebackground2

How the score works

  • Remote endpoint
  • 4 tools
  • MIT

Tools

  • removebackground2_fn Remove the background from an image and return both the transparent version and the original. This function performs background removal using a BiRefNet segmentation model. It is intended for use with image input (either uploaded or from a URL). The function returns a transparent PNG version of the image with the background removed, along with the original RGB version for comparison. Returns: , origin (PIL.Image): The original RGB image, unchanged., processed_image (PIL.Image): The input image with the background removed and transparency applied.
  • removebackground2_fn_ Remove the background from an image and return both the transparent version and the original. This function performs background removal using a BiRefNet segmentation model. It is intended for use with image input (either uploaded or from a URL). The function returns a transparent PNG version of the image with the background removed, along with the original RGB version for comparison. Returns: , origin (PIL.Image): The original RGB image, unchanged., processed_image (PIL.Image): The input image with the background removed and transparency applied.
  • removebackground2_process_file Load an image file from disk, remove the background, and save the output as a transparent PNG. Returns: Path to the saved PNG image with background removed.
  • removebackground2_remove_bg_api API endpoint used by the CRM Image Editor browser extension. Matches the payload the extension sends to POST /gradio_api/call/remove_bg: data: [image (FileData), show_box (bool), canvas_size (int), padding_px (int)] No resizing or padding is applied here — the returned image is the background-removed cutout at the original input resolution. `canvas_size` and `padding_px` are accepted (so the extension's existing payload shape still works) but intentionally ignored; do any resizing/padding on the extension side instead. Returns: RGBA image with background removed, at original resolution.

As the server's own listing gives them. We never call a tool.