Background Removal

by mdhdilawardeoco.huggingface.mdhdilawardeo/background-removal

  • Remote endpoint
  • 3 tools

Tools

  • background_removal_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. If a user passes a file as an input, use the upload_file_to_gradio tool, if present, to upload the file to the gradio app and create a Gradio File Input. Then use the returned path as the input to the tool. Returns: tuple:, - origin (PIL.Image): The original RGB image, unchanged., - processed_image (PIL.Image): The input image with the background removed and transparency applied.
  • background_removal_fn_1 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: tuple:, - origin (PIL.Image): The original RGB image, unchanged., - processed_image (PIL.Image): The input image with the background removed and transparency applied.
  • background_removal_process_file Load an image file from disk, remove the background, and save the output as a transparent PNG. If a user passes a file as an input, use the upload_file_to_gradio tool, if present, to upload the file to the gradio app and create a Gradio File Input. Then use the returned path as the input to the tool. Returns: str: Path to the saved PNG image with background removed.

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