Metadata-Version: 2.4
Name: comfyui-character-generator
Version: 0.2.4
Summary: Automated ComfyUI character generator
Project-URL: Homepage, https://github.com/jpchauvel/comfyui-character-generator
Project-URL: Documentation, https://github.com/jpchauvel/comfyui-character-generator/blob/main/README.md
Project-URL: Repository, https://github.com/jpchauvel/comfyui-character-generator
Project-URL: Issues, https://github.com/jpchauvel/comfyui-character-generator/issues
Author-email: Jean-Pierre Chauvel <jean.p.chauvel@gmail.com>
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Build Tools
Requires-Python: <3.13,>=3.12
Description-Content-Type: text/markdown

# Automated ComfyUI Character Generator

This tool replicates the ComfyUI workflow that is in the [`workflows`](https://github.com/jpchauvel/comfyui-character-generator/tree/main/workflows)
subdirectory.

This workflow does the following:

1. Loads a checkpoint
2. Loads a character LoRA (or any LoRA)
3. Loads a pose controlnet
4. Concatenates the system prompt, the dressing prompt, the face expression
   prompt and the pose and environment settings prompt
5. It also concatenates the system and user negative prompts
6. Evaluates a switch to either apply the controlnet pose or just bypass it
7. If the controlnet pose is to be applied, it calculates the pose provided by
   the user and applies it to the generation
8. Finally, after generation, it does a face swap, using the face image
   provided by the user, and applies it to the generated image
9. It then saves the image to the output directory

The script does exactly the same thing as the ComfyUI workflow but it allows
configuration of some parameters (you just have to run the script with the
`--help` option to learn more about the parameters).

To run this tool, just type:

```sh
uvx comfyui-character-generator --help
```

It will prompt with all the necessary information.

**NOTE**: You can install the custom nodes using the following command:

```sh
uvx comfyui-character-generator --install_nodes --confyui_path /path/to/comfyui --venv_path relative/path/to/venv
```

Take a look at the [sample configuration file](https://github.com/jpchauvel/comfyui-character-generator/blob/main/config.toml.example).

**NOTE**: This tool works with the [ComfyUI](https://github.com/comfyanonymous/ComfyUI) version 0.3.50 and up.
