CivArchive
    Anime2Photo | ComfyUI workflow - v1.0
    NSFW
    Preview 6196266

    (Note: in ComfyUI you can disable nodes with Ctrl+M. You can quickly disable whole groups with right click option. Useful to turn off parts you don't want.)

    This workflow takes an image to generate 4 different photo versions of it.

    Reverse workflow: Photo2Anime

    Comparison of results

    → full size image here ←

    Installation and dependencies

    1. Install WAS Node Suite custom nodes;

    2. Install ControlNet Auxiliary Preprocessors custom nodes;

    3. Download ControlNet Lineart model (both .pth and .yaml files), and put it into "\comfy\ComfyUI\models\controlnet".

    4. (optional) Install WD 1.4 Tagger custom node;

    5. (optional) Install SD Prompt Reader custom node;

    6. Download and open this workflow;

    7. (kind of important) Check "Resources and substitutions" section below for recommended extras.

    You only need WD 1.4 Tagger if you want to interrogate image for prompt automatically.

    You only need SD Prompt Reader to get prompts from metadata of realistic generations.

    With neither, you'd have to write the prompt for picture manually.

    Resources and substitutions

    Workflow was made with possibility to tune with your favorite models in mind. There is the node called "Quality prefix" near every model loader. Just put most suitable universal keywords for the model in positive (1st string) and negative (2nd string). Note that KSampler parameters are thoroughly tested and fine-tuned for selected models.

    General realistic model: epiCRealism. How to substitite: with the most versitile realistic model you know. PicX_real works. Add photorealism-guiding keywords to "Quality prefix" node.

    "Old film" model: LomoStyle. How to substitite: with any model with unique style. Examples of retro realistic models: LazyMix+, Good Old Days, Z_phyr Remember. Add universal quality tags recommended by the model author to "Quality prefix" node.

    Photorealism + realistic 3D models: Analog Madness + RealCartoon-Realistic. How to substitite: with a duo of "photorealistic, but not too versitile" (like Refined) and "versitile, but not too realistic" (like XenoGASM) models. Add universal quality tags recommended by the model author to "Quality prefix" node.

    Ulzzang models: MagMix + LEOSAM's HelloWorld Film Grain. Same as above, but with strong tendency for asian faces. NextPhoto works for both slots. Add universal quality tags recommended by the model author to "Quality prefix" node.

    VAE: vae-ft-mse-840000-ema-pruned. Standard, recommended. If your results are too contrast and bright for you, consider using Tone Range Compressor to decode.

    Embeddings: bad-prompt-version2 (optional), bad-hands-5 (optional).

    How to use

    1. Choose where to get image and prompts from and connect nodes for image, positive and negative into ">> Route your inputs here <<" group:

      • By default, manual written prompts are used

      • Turn on (Ctrl + M) and connect "WD 1.4 Tagger" node to generate prompt from picture

      • Turn on (Ctrl + M) and connect "SD Prompt Reader" node to get prompts from metadata

    2. Run it!

    Note

    Turning artistic pictures into photo-like images is harder than the other way around. Workflow works best with SD generated pictures, not real anime frames. If results still look anime, increase denoise by 0.1 in "Retro" and both "Semireal" KSampler nodes.

    Check out my other workflows

    Description

    Initial version of 03.02.2024.

    FAQ

    Comments (9)

    150839Feb 17, 2024
    CivitAI

    or occurred when executing LineArtPreprocessor: [WinError 3] The system cannot find the path specified: 'C:\\Users\\WinDows\\Downloads\\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\\ComfyUI_windows_portable\\ComfyUI\\custom_nodes\\comfyui_controlnet_aux\\ckpts\\lllyasviel/Annotators\\cache\\models--lllyasviel--Annotators\\snapshots\\982e7edaec38759d914a963c48c4726685de7d96'

    couldn't figure how to edit this

    Postpos
    Author
    Feb 17, 2024

    Not sure. Looks like you have problems downloading some model. Maybe path is too long? Also, why the slash between "Illiasviel" and "Annotators" is different from other delimeters?

    peliksaxbox316Jul 14, 2024
    CivitAI

    Wow, this is actualy good. Well done man!

    mistesrk203Aug 11, 2024
    CivitAI

    Great work, but I have a problem on the 'Realistic Lineart' node with the following error:

    LineArtPreprocessor: LineartDetector.from_pretrained() missing 1 required positional argument: 'pretrained_model_or_path'

    If I deactivate this node, it works, but I don't know how essential it is for the quality of the final rendering.

    Postpos
    Author
    Aug 11, 2024

    Click on the dropdown menu on the node and select the ControlNet Lineart model you downloaded into "\comfy\ComfyUI\models\controlnet".

    tahmmy89602Dec 25, 2024
    CivitAI

    This works fantastic out of the box. Really happy with the results, thank you!

    farizy4nFeb 24, 2025
    CivitAI

    not available for SDXL?

    Postpos
    Author
    Feb 24, 2025

    It's just a bunch of img2img operations, finetuned for specific models. All models are SD1.5 based.

    Postpos
    Author
    Feb 24, 2025

    You can modify it for the model of your liking though. Refer to "Resources and substitutions" section of description. Note that SDXL needs a different VAE and ControlNet files.

    Workflows
    SD 1.5

    Details

    Downloads
    2,733
    Platform
    CivitAI
    Platform Status
    Available
    Created
    2/3/2024
    Updated
    5/12/2026
    Deleted
    -

    Files

    anime2photoComfyui_v10.zip

    Mirrors

    CivitAI (1 mirrors)