Face detection & restoration tools for ComfyUI by Sunx.ai
[!NOTE] This projected was created with a cookiecutter template. It helps you start writing custom nodes without worrying about the Python setup.
ComfyUI/custom_nodes.本插件使用 InsightFace 进行高精度性别检测,首次使用时会自动下载模型:
pip install insightface
注意: InsightFace 需要额外的模型文件,首次运行时会自动下载。
To install the dev dependencies and pre-commit (will run the ruff hook), do:
cd comfyui_sunxAI_facetools
pip install -e .[dev]
pre-commit install
The -e flag above will result in a "live" install, in the sense that any changes you make to your node extension will automatically be picked up the next time you run ComfyUI.
Install Github Desktop or follow these instructions for ssh.
git add .
git commit -m "project scaffolding"
git push
An example custom node is located in node.py. To learn more, read the docs.
This repo contains unit tests written in Pytest in the tests/ directory. It is recommended to unit test your custom node.
If you wish to share this custom node with others in the community, you can publish it to the registry. We've already auto-populated some fields in pyproject.toml under tool.comfy, but please double-check that they are correct.
You need to make an account on https://registry.comfy.org and create an API key token.
@ sign on your registry profile).REGISTRY_ACCESS_TOKEN.A Github action will run on every git push. You can also run the Github action manually. Full instructions here. Join our discord if you have any questions!
Face detection & restoration tools for ComfyUI by Sunx.ai
[!NOTE] This projected was created with a cookiecutter template. It helps you start writing custom nodes without worrying about the Python setup.
ComfyUI/custom_nodes.本插件使用 InsightFace 进行高精度性别检测,首次使用时会自动下载模型:
pip install insightface
注意: InsightFace 需要额外的模型文件,首次运行时会自动下载。
To install the dev dependencies and pre-commit (will run the ruff hook), do:
cd comfyui_sunxAI_facetools
pip install -e .[dev]
pre-commit install
The -e flag above will result in a "live" install, in the sense that any changes you make to your node extension will automatically be picked up the next time you run ComfyUI.
Install Github Desktop or follow these instructions for ssh.
git add .
git commit -m "project scaffolding"
git push
An example custom node is located in node.py. To learn more, read the docs.
This repo contains unit tests written in Pytest in the tests/ directory. It is recommended to unit test your custom node.
If you wish to share this custom node with others in the community, you can publish it to the registry. We've already auto-populated some fields in pyproject.toml under tool.comfy, but please double-check that they are correct.
You need to make an account on https://registry.comfy.org and create an API key token.
@ sign on your registry profile).REGISTRY_ACCESS_TOKEN.A Github action will run on every git push. You can also run the Github action manually. Full instructions here. Join our discord if you have any questions!