ComfyUI  >  Nodes  >  ComfyUI-LivePortraitKJ

ComfyUI Extension: ComfyUI-LivePortraitKJ

Repo Name


kijai (Account age: 2198 days)
View all nodes (2)
Latest Updated
Github Stars

How to Install ComfyUI-LivePortraitKJ

Install this extension via the ComfyUI Manager by searching for  ComfyUI-LivePortraitKJ
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-LivePortraitKJ in the search bar
After installation, click the  Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

ComfyUI-LivePortraitKJ Description

ComfyUI-LivePortraitKJ integrates nodes for LivePortrait, requiring insightface, to enhance portrait animation capabilities within the ComfyUI framework.

ComfyUI-LivePortraitKJ Introduction

ComfyUI-LivePortraitKJ is an extension designed to integrate the LivePortrait technology into the ComfyUI environment. LivePortrait is a powerful tool that allows you to animate portraits efficiently using stitching and retargeting control. This extension provides AI artists with the ability to bring static images to life, creating dynamic and engaging animations from still portraits. By using this extension, you can easily convert your portrait images into animated videos, adding a new dimension to your artwork.

How ComfyUI-LivePortraitKJ Works

ComfyUI-LivePortraitKJ works by leveraging the LivePortrait technology, which uses advanced algorithms to animate static portrait images. The process involves several key steps:

  1. Feature Extraction: The extension extracts facial features from the input image using pre-trained models.
  2. Motion Extraction: It then extracts motion patterns from a driving video, which will be applied to the static portrait.
  3. Animation Generation: The extracted features and motion patterns are combined to generate an animated portrait.
  4. Stitching and Retargeting: The final step involves stitching the animated segments together and retargeting the animation to ensure smooth and realistic movements. By breaking down the animation process into these steps, ComfyUI-LivePortraitKJ ensures high-quality and realistic animations that can be customized to fit your artistic vision.

ComfyUI-LivePortraitKJ Features

ComfyUI-LivePortraitKJ comes with several features that make it a versatile tool for AI artists:

  • Automatic Model Download: The extension automatically downloads the necessary models if they are not present in the specified directory.
  • Insightface Integration: It integrates with Insightface for face detection and feature extraction, ensuring accurate and efficient processing.
  • Customizable Settings: You can customize various settings to control the animation process, such as the driving video, feature extraction parameters, and more.
  • Support for Safetensors: The extension supports safetensors, which are a safer and more efficient way to handle model files.

Customization Examples

  • Driving Video: You can specify different driving videos to apply various motion patterns to your portrait. For example, using a video of someone smiling can make your portrait appear happy.
  • Feature Extraction Parameters: Adjusting these parameters can help you fine-tune the animation to achieve the desired level of detail and realism.

ComfyUI-LivePortraitKJ Models

The extension uses several pre-trained models to perform its tasks. These models are automatically downloaded and stored in the ComfyUI/models/liveportrait directory. Here are the key models used:

  • Appearance Feature Extractor: Extracts facial features from the input image.
  • Motion Extractor: Extracts motion patterns from the driving video.
  • Spade Generator: Generates the animated portrait by combining the extracted features and motion patterns.
  • Warping Module: Ensures smooth transitions and realistic movements in the animation. Each model plays a crucial role in the animation process, and you can experiment with different models to see how they affect the final output.

Troubleshooting ComfyUI-LivePortraitKJ

Here are some common issues you might encounter while using ComfyUI-LivePortraitKJ and their solutions:

Issue: Insightface Installation Fails

Solution: If you have a working compile environment, you can install Insightface using:

pip install insightface

For the portable version, use:

python_embeded/python.exe -m pip install insightface

If this fails, refer to the troubleshooting section of the reactor node: .

Issue: Models Not Downloading

Solution: Ensure that your internet connection is stable and that the ComfyUI/models/liveportrait directory is writable. If the models still do not download, you can manually download them from and place them in the directory.

Issue: Animation Quality is Poor

Solution: Experiment with different driving videos and adjust the feature extraction parameters. Ensure that the input image is of high quality and that the facial features are clearly visible.

Learn More about ComfyUI-LivePortraitKJ

To learn more about ComfyUI-LivePortraitKJ and get additional support, you can explore the following resources:

  • LivePortrait GitHub Repository:
  • LivePortrait Homepage:
  • Technical Report on arXiv:
  • Hugging Face Models:
  • Community Forums: Join community forums and discussion groups to ask questions and share your experiences with other AI artists. By exploring these resources, you can gain a deeper understanding of how to use ComfyUI-LivePortraitKJ effectively and get the most out of its features.

ComfyUI-LivePortraitKJ Related Nodes


© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.