← See All Custom Node Packs

ComfyUI-Inspyrenet-Rembg

743
Updated almost 2 years ago
View on GitHub →See Common Issues →

Run ComfyUI Easily with InstaSD

Skip the complex setup and run ComfyUI online. InstaSD helps creative professionals build workflows and deploy them to the world:

  • One-click deployment
  • Any model, any node
  • Powerful GPUs for rapid iteration
Get Started

Documentation

ComfyUI-Inspyrenet-Rembg

Overview

ComfyUI-Inspyrenet-Rembg is a custom node repository for ComfyUI that provides advanced tools for background removal using InSPyReNet. This repository is designed to deliver superior image background removal quality compared to other AI methods like BRIA, U2Net, IsNet, and others. It includes tools that are capable of processing image batches efficiently, making it especially useful for applications involving video frames.

Installation

Simple Installation

  1. Use the ComfyUI-Manager to search for ComfyUI-Inspyrenet-Rembg.
  2. Click install.

That's it! The installation is complete.

Manual Installation

  1. Navigate to your custom_nodes folder within ComfyUI.

  2. Open a terminal and run the following command:

    git clone https://github.com/john-mnz/ComfyUI-Inspyrenet-Rembg.git
    
  3. To install the required dependencies, run:

    cd ComfyUI-Inspyrenet-Rembg
    pip install -r requirements.txt
    

The pretrained model will be automatically downloaded upon first use.

Node Descriptions

This repository contains the following nodes:

Node Implementations

  • InspyrenetRembg: This implementation focuses on streamlined background removal.
  • InspyrenetRembgAdvanced: This node provides advanced features, including threshold support for fine-tuning results.

Features and Capabilities

  • Superior Quality: InSPyReNet provides enhanced background removal quality that exceeds other AI-based methods.
  • Batch Processing: Efficiently handle batches of images, making it ideal for processing sequences such as video frames.
  • Dual Outputs: Provides both the altered image and the corresponding mask.
  • Progress Tracking: Terminal output allows you to track the progress of processing tasks.
  • Optimized Performance: Designed to be the fastest available rembg node in its category.
  • Torchscript JIT Compiler: Optionally use PyTorch's built-in torchscript JIT compiler to reduce inference time and GPU memory usage.

Usage in ComfyUI Workflows

The ComfyUI-Inspyrenet-Rembg nodes are well-suited for any workflow that requires high-quality background removal. By supporting batch input and quick processing times, these nodes are particularly beneficial for workflows that involve video editing, animation, and other media projects where seamless background removal is crucial.

To get started, download and integrate the basic workflow file (inspyrenet-rembg-basic-workflow.json) to explore how these nodes can enhance your ComfyUI workflows through efficient and high-quality background removal.

By incorporating InspyrenetRembg and InspyrenetRembgAdvanced into your ComfyUI setup, you'll have access to state-of-the-art tools for superior image and video background processing tasks.

Want to try ComfyUI-Inspyrenet-Rembg without installing anything? Run ComfyUI online on InstaSD's cloud GPUs — no setup required.