avatar-graph-comfyui
A custom nodes module for creating real-time interactive avatars powered by blender bpy mesh api + Avatech Shape Flow runtime.
Demo
| ➡️Open in Avatech Labs | ➡️Open in Avatech Labs | ➡️Open in Avatech Labs | ➡️Open in Avatech Labs |
| ➡️Open in Avatech Labs | ➡️Open in Avatech Labs | ➡️Open in Avatech Labs | ➡️Open in Avatech Labs |
Contents
Workflow Template
Template01 - Simple Shape Flow
To enable the character to blink eyes and talking.
🎯Notice
For optimal results, please input a character image with an open mouth and a minimum resolution of 768x768. This higher resolution will enable the tool to accurately recognize and work with facial features.
💡Make your character mouth open Guide
Download: 📂Template01 - Simple Shape Flow
Download: 📂Template01 - ControlNet Gen
If you don't want to modify any values in the custom nodes, you can download the ControlNet Gen Template to generate your own image.
Image Preprocess Guide
💡If you want to generate a new character image
you can download this Template and refer to the Guide!
Character Gen Prompting Guide
Character Gen Prompting Guide
🎯Notice
We need a character image with an open mouth and enable the tool to easily recognize facial features, so please add to the prompt:
looking at viewer, detailed face, open mouth, [smile], solo,eye-level angleDownload: 📂Character Gen Template
Feel free to change any checkpoint model that suits your needs.
💡If you have a character image but it's not mouth open
you can download this Template and refer to the Guide!
Mouth Open Guide (Inpaint)
Mouth Open Guide (Inpaint)
To maintain consistency with the base image, it is recommended to utilize a checkpoint model that aligns with its style.
Download: 📂MouthOpen Template
Inpaint Demonstration
Recommend Checkpoint Model List
Anime Style SD1.5
- https://civitai.com/models/35960/flat-2d-animerge
- https://civitai.com/models/24149/mistoonanime
- https://civitai.com/models/22364/kizuki-anime-hentai-checkpoint
Realistic Style SD1.5
Custom Nodes
Expand to see all the available nodes description Mesh Edit Nodes Shape Keys Nodes Avatar Output Nodes
Image Segmentation Nodes
Image Segmentation Nodes
| Name | Description | Preview |
|---|---|---|
Segmentation (SAM) |
Integrative SAM node allowing you to directly select and create multiple image segment output. |
Mesh Edit Nodes
Mesh Edit Nodes
Shape Keys Nodes
Shape Keys Nodes
Avatar Output Nodes
Avatar Output Nodes
| Name | Description | Preview |
|---|---|---|
Avatar Main Output |
The primary output of the .ava file. The embeded Avatar View will auto update with this node's output |
Shape Flow
Installation
Clone the repository to custom_nodes in your ComfyUI directory:
-
cd custom_nodes -
git clone https://github.com/avatechgg/avatar-graph-comfyui.git -
Install deps
cd avatar-graph-comfyui && python -m pip install -r requirements.txt -
Restart comfyui
-
Run comfyui with enable-cors-header
python main.py --enable-cors-headeror (mac)python main.py --force-fp16 --enable-cors-header
Development
If you are interested in contributing expand to see development details
For comfyui frontend extension, frontend js located at avatar-graph-comfyui/js
Web stack used: vanjs tailwindcss
Install deps
pnpm i
Run the dev command to start the tailwindcss watcher
pnpm dev
For each changes, simply refresh the comfyui page to see the changes.
p.s. For tailwind autocomplete, add the following to your vscode settings.json.
{
"tailwindCSS.experimental.classRegex": [
["class\\s?:\\s?([\\s\\S]*)", "(?:\"|')([^\"']*)(?:\"|')"]
]
}