CivArchive
    Multiple characters - v1.0
    NSFW
    Preview 60268511
    Preview 59396082
    Preview 59396081
    Preview 59983549

    The workflow has been updated to be fully compatible with the latest version of ComfyUI by replacing several nodes with their newer alternatives.
    couple_workflow1.1 in the archive is the older release, while couple_workflow2 is the latest one.
    The latest version also includes additional notes for each node.

    How to fix the "No module named 'pandas'" error in the latest version of ComfyUI

    If clicking “TryFix” in the ComfyUI Manager doesn’t solve the issue,
    or

    If you get the error
    ModuleNotFoundError: No module named 'pandas'
    Follow these manual installation steps when loading acgem156-ComfyUI:

    1. Go to your ComfyUI folder → open ComfyUI_windows_portable/python_embeded.

    2. Open a Command Prompt in that folder.

    3. Run this command:

      .\python.exe -m pip install pandas
    4. Restart ComfyUI.

    After that, the error will disappear and the node should work normally.

    ///

    For non-portable (regular) ComfyUI installations

    If you’re not using the portable version, just install pandas in your current Python environment.
    Open a terminal or command prompt and run:

    pip install pandas

    Then restart ComfyUI.
    That’s all — the “No module named 'pandas'” error should be gone.

    ///

    This workflow aims to generate multiple characters in a single image using ComfyCouple.
    A brief explanation is provided below, but if anything is unclear, feel free to ask in the comments.

    https://civarchive.com/articles/11788/multiple-character-for-comfyui-couple

    I believe it is usable with almost all checkpoints.

    required nodes

    https://github.com/laksjdjf/cgem156-ComfyUI

    Description

    FAQ

    Comments (30)

    zczcgFeb 22, 2025
    CivitAI

    能大概說一下怎麼用嗎,譬如prompt是否能雙人nsfw,謝謝~

    kkr3
    Author
    Feb 22, 2025· 1 reaction

    Also available for NSFW content

    We have created a sample

    https://civitai.com/images/59402691

    zczcgFeb 22, 2025· 1 reaction

    thanks for sharing!

    zczcgFeb 22, 2025
    CivitAI

    by it appear Missing Node Types

    When loading the graph, the following node types were not found AttentionCouple|cgem156

    kkr3
    Author
    Feb 22, 2025

    Sorry, the link seems to be out of date.

    https://github.com/laksjdjf/cgem156-ComfyUI

    It seems to have been merged here now

    TheNevyGamer30Nov 5, 2025

    @kkr3 dont working This node doesn't appear?

    kkr3
    Author
    Nov 5, 2025· 1 reaction

    @TheNevyGamer30 The node may not have been installed correctly. Please try running .\python.exe -m pip install pandas following the steps in the description.

    TheNevyGamer30Nov 5, 2025· 1 reaction

    @kkr3 So that was it after all.

    I thought “pandas” would be something else unrelated.

    But now it works :3

    gallopfeel263Apr 27, 2025
    CivitAI

    作为AI新手,向大佬请教一下:如果两人物叠加面积较大(例如骑单车时,A从B身后环抱,只露出头-手-脚),工作流也能生效吗?画遮罩时,不同角色是不是还需要分层、加标注什么的(类似PS分图层再叠加)?

    kkr3
    Author
    Apr 27, 2025

    This is effective even when there are overlapping body positions, but it takes some getting used to.

    In particular, if you include prompts for clothing and physical features, the AI will try to describe the clothing as much as possible, which complicates the composition.

    Prompts that include character traits are best kept completely separate

    gallopfeel263Apr 28, 2025

    @kkr3 大佬,我尝试参考着你的工作流,然后自己搭建工作流。输入的遮罩图片都是用PS画好(设定为1920x1080),再使用“加载图像遮罩”导入。因为是新手,我看不懂你工作流里是怎样设定每次生成的图片数量和指定尺寸,我用的是“空latent”指定1920x1080(为了与遮罩图片的尺寸保持一致)和“K采样器”,结果运行时报错:shape '[4, 8160, 1]' is invalid for input of size 1920。请问怎样解决?

    kkr3
    Author
    Apr 28, 2025

    @gallopfeel263
     I cannot determine the exact solution because I don't fully understand the situation in which the error occurs, but it is possible that the mask area has abnormal values.
    It would be better not to use images created manually in PS or similar software for the mask. Instead, you should use ComfyUI's Mask Editor directly on the generated images.

    In my workflow, the "width" and "height" settings inside the Efficient Loader's "Empty latent" correspond to the size of the generated images.
    The number of generated images is controlled by the "Batch count" setting of the XY node placed above the Image Loader, as I use XY Input.

    gallopfeel263Apr 29, 2025· 1 reaction

    Thank you for your reply and patient explanation. After listening to your suggestions and trying multiple times, I finally understand how to use this workflow.

    As I become more familiar with this workflow, I increasingly feel that the construction of the entire process is great! Thank you again for sharing!

    GreenGoblincelJun 17, 2025
    CivitAI

    comfy ui says cr latent switch is from an outdated github page, also xy workflow is where?

    kkr3
    Author
    Jun 17, 2025

    Depending on the environment, XYnode may not be able to load, but the cause is unknown.

    Please try the 1.1 version attached to this page

    https://civitai.com/articles/11788/multiple-character-for-comfyui-couple

    CR Latent... is a node included in this

    https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes

    GreenGoblincelJun 17, 2025

    @kkr3 Thank you, I tried using the workflow but it is still very confusing. I am unsure which mask corresponds to what and whether to keep the first mask node place bypassed. Additionally I am unsure where lora 1 and lora 2 and lora 3 etc correspond to as my images only show 1 lora. Is it possible to do a more indepth tutorial

    kkr3
    Author
    Jun 20, 2025

    @GreenGoblincel I want to rewrite it, but I don't have the time, so it's impossible.

    The first Load image, which can be bypassed, is used for i 2 i and is not normally used for masking.

    Lora is applied to the entire range, so you cannot choose where to apply it. Everything read by LoraStacker on the right side of the K sampler is applied.

    krigetaSep 28, 2025
    CivitAI

    how can we create overlapped characters as when the region overlapped the character got weird

    kkr3
    Author
    Sep 28, 2025

    For complex compositions, it’s difficult to create a perfect result in a single generation, so adjustments using Image to Image (i2i) are necessary.

    When generating with i2i, it’s recommended to adjust the mask area and pre-paint the parts you want to modify in the original image with the ideal colors using external software.

    eatlunchbecuaseOct 22, 2025
    CivitAI

    I got everything to work. My workflow is now on the level of gods. I fixed everything and it works with the latest version of ComfyUI. I even got it to work for an arbitrary amount of characters. In a singular day, I, with your black magic forbidden wizardry of a technique that only 100 out of a quarter million people have progressed in, feel I have made something precious like diamonds. I'm tempted to share, but my brain tells me I desperately need an ego check and that what I have is not even close to good enough to share. Over 136 version upgrades of the workflow within 4 months of progress off of 2 years prior experience and a life background in computer science is not enough for my brain to feel confident in sharing apparently. I'll give it another month or two unless someone actually reads this and messages me before then telling me to share.

    awooOct 26, 2025

    Share it lol, I'll give it a try. Never hurts to put more workflows out there

    HotNCuteBoxingOct 30, 2025

    Share. We want to be cursed by your black magic forbidden wizardry.

    gojap410868Nov 1, 2025

    If you've managed to fix it to work with the latest version of ComfyUI, please share it with me. This is definitely something I need in my life.

    xjp664Nov 15, 2025
    CivitAI

    https://www.youtube.com/watch?v=zhJJcegZ0MQ
    I found this up sharing his workflow on youtube, doing the similar thing. It works with the new version Comfy. I tried with SDXL and my own character LoRAs, works great.

    TienXNov 19, 2025
    CivitAI

    Can't for the life of me figure out inpainting, lol...I wish I wasn't too dumb to use this, if anyone ever makes a video explaining how to get 3 characters to work with this, shoot me a comment/message!

    Dante3rdDec 19, 2025
    CivitAI

    help me plz with this error:

    La ejecución del prompt falló

    Prompt outputs failed validation: LoadImageMask: - Value not in list: channel: 'clipspace/clipspace-paint-1180264.png [input]' not in ['alpha', 'red', 'green', 'blue']


    :'c

    kkr3
    Author
    Dec 19, 2025· 1 reaction

    Please verify that the channel of the Load Image (as Mask) node is set to alpha.

    Dante3rdDec 19, 2025· 1 reaction

    @kkr3 Do both masks have to be in alpha?

    kkr3
    Author
    Dec 19, 2025· 1 reaction

    @Dante3rd 
    This error is likely occurring because a value other than the default has been entered for some reason.

    It will not function properly if the value is anything other than [‘alpha’, ‘red’, ‘green’, ‘blue’]. This is a node specification.

    Dante3rdDec 19, 2025

    @kkr3 Yes, I already changed both masks to alpha and it worked!

    Thanks for your help and work!

    If I have any more questions, I'll come back and ask you. n.n'

    Workflows
    Illustrious
    by kkr3

    Details

    Downloads
    2,227
    Platform
    CivitAI
    Platform Status
    Available
    Created
    2/22/2025
    Updated
    4/30/2026
    Deleted
    -

    Files

    multipleCharacters_v10.zip

    Mirrors

    CivitAI (1 mirrors)

    multipleCharacters_v10.zip

    Mirrors

    CivitAI (1 mirrors)

    multipleCharacters_v10.zip

    Mirrors

    CivitAI (1 mirrors)