Skip to content

ComfyUI node for GFPGAN. GFPGAN aims at developing a Practical Algorithm for Real-world Face Restoration. It leverages rich and diverse priors encapsulated in a pretrained face GAN (e.g., StyleGAN2) for blind face restoration.

License

Notifications You must be signed in to change notification settings

comfyorg/comfyui_gfpgan

Repository files navigation

ComfyUI GFPGAN

This is a custom node for ComfyUI that enables face restoration using GFPGAN.

Installation

  1. Navigate to the Custom Nodes Directory

    cd /path/to/your/ComfyUI/custom_nodes/
  2. Clone the Repository

    git clone https://github.com/lucak5s/comfyui_gfpgan.git
  3. Enter the Cloned Directory

    cd comfyui_gfpgan
  4. Install Dependencies

    pip install -r requirements.txt && pip install gfpgan --no-deps

    Note: We use pip install gfpgan --no-deps to avoid installing gfpgan’s default dependency on the outdated basicsr package, which is incompatible with newer versions of PyTorch. Make sure you have stablesr-fixed installed in your environment instead of stablesr.

Usage

Start ComfyUI and look for the node named "GFPGAN Face Restore."
The required face detection and face restoration models will be downloaded automatically and placed in the following directories:

  • ComfyUI/models/face_detection
  • ComfyUI/models/face_restoration

About

ComfyUI node for GFPGAN. GFPGAN aims at developing a Practical Algorithm for Real-world Face Restoration. It leverages rich and diverse priors encapsulated in a pretrained face GAN (e.g., StyleGAN2) for blind face restoration.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages