AP Plot 1.0 for ComfyUI

New!

In 2023, Alessandro created the AP Workflow for ComfyUI, an advanced automation workflow to orchestrate Stable Diffusion and dozens of other AI models.

Since then, AP Workflow has been downloaded over 30,000 times by inviduals and organizations all around the world.

AP Plot (APP) is Alessandro’s second workflow for ComfyUI, designed to solve a specific problem: evaluating and comparing the best Stable Diffusion fine-tuned models for photorealism.

AP Plot 1.0 focuses SDXL fine-tunes, but it can be reconfigured to compare anything you like.

The list of models being compared in this first release:

  • STOIQO NewReality XL 4.0
  • ICBINP XL 6
  • epiCRealism XL 7
  • RealVis XL 4.0
  • HelloWorld XL 7.0
  • Juggernaut X XL

To compare the behavior of these modes with a wide range of prompts, Stable Diffusion users would typically use an XY Plot.

The problem is that in a comparison with a traditional XY Plot (including the one in AP Workflow), each model is used with the same set of parameters.

That might seem a fairer comparison, but it doesn’t help you see the true potential of each model.

AP Plot allows you to have the best of both worlds, and then some:

  1. It compares the output of each model according to the parameters indicated by each model author.
  2. It compares the output of each model according to the parameters Alessandro personally recommends, identical for each model.
  3. It compares the output of each model according to parameters defined by you, identical for each model.

In other words, AP Plot can show you an apple-to-orange comparison side by side with an apple-to-apple comparison. And it comes all preconfigured, so you don’t have to worry about much except downloading the models.

And just like AP Workflow, AP Plot is free.

Keep reading and download AP Plot 1.0 for ComfyUI.

Jumpstart

How to Download AP Plot 1.0

Download the JSON version of AP Plot 1.0 and load it via ComfyUI Manager. That’s it!


Show your support!


AP Plot 1.0 is also embedded in the workflow picture below. Click on it, and the full version will open in a new tab. Right click on the full version image and download it. Drag it inside ComfyUI, and you’ll have the same workflow you see below.

Be sure to review the Required Custom Nodes and Required AI Models sections of this document before you download APW 10.0.

Early Access Program

Join the Early Access Program to access unreleased workflows, bleeding-edge new features, and the advanced web front end for non-technical users.

APW 12.0 EA4



AP Workflow for ComfyUI early access features available now:
  • [EA4] APW now supports multiple LoRAs for CogVideoX.
    For example, now, you can use DimensionX Orbit LoRAs.
  • [EA4] APW front ends (Discord and Telegram bots, web) can serve videos generated with Mochi and CogVideoX (T2V only).
  • [EA4] The Dall-E Image Generation function is replaced by the Recraft Image Generation function. So, now, you can see what the new Recraft v3 (Red Panda) model is capable of.

    Notice that you'll be able to use the images generated via Recraft with all the other APW functions in the L2, L3, and L4 pipelines: best image selection, face/hand detailing, upscaling, video generation, etc.
  • [EA4] The Controller function has been redesigned to group its toggles and offer more clarity.

  • [EA3] APW now features a second video provider (T2V only): Mochi 1 Preview.
  • [EA3] The Face Detailer function now allows you to manually choose which faces from the source image should be detailed. Notice that the feature is disabled by default and the function continues to automatically detail all identified faces as usual.
  • [EA3] The DetailerDebug nodes in the Face Detailer function have been fixed.
  • [EA3] The L3 Pipeline is more compact and the Image Manipulators functions now are executed after the Upscalers functions.
  • [EA3] The entire workflow is now perfectly aligned to the canvas grid with standardized distances between groups. Yes, Alessandro is the only one who cares about this.

  • [EA2] Support for Stable Diffusion 3.5 Large.
  • [EA2] APW now features a dedicated L4 pipeline for text-to-video (T2V) and image-to-video (I2V) generation powered by CogVideoX.
  • [EA2] APW new features a dedicated T2V/I2V Trajectory Editor function to control the motion of generated movies via the new Alibaba Tora model.
  • [EA2] DynamiCrafter is removed.

  • [EA1] APW now features a second video provider alongside DynamiCrafter: CogVideoX. You can activate both in the Controller function and compare the videos they generate from the same source image.
  • [EA1] The Image Saver function is now split in two: Final Image Saver and Intermediate Images Saver. The former is always on, and continues to save two versions of the same image: one with metadata and one without. The latter function is muted by default and you must activate it manually if you want to save all the intermediate images generated by the various APW functions.
  • [EA1] Now only the image saved by the Final Image Saver function generate (sound, browser, and/or Discord) notifications.
  • [EA1] All saved image filenames start with the seed number again.
  • [EA1] APW now serves the web front end on port 80 by default (if you prefer, you can still change it back to 8000, or any other).
  • [EA1] APW now supports the updated Advanced Prompt Enhancer node.
  • [EA1] The XYZ Plot function has been moved into the L3 pipeline.

AP Plot 2.0 EA2



AP Plot for ComfyUI early access features available now:
  • [EA2] AP Plot now comes with 14 prompts to use for comparisons.
  • [EA2] Approach 3 is now dedicated to testing each chosen model with the addition of a LoRA.
  • [EA2] Approach 2 now features a Sampler Custom node instead of the default KSampler to accommodate changes in the Fixed Generation Parameters function.

  • [EA1] AP Plot replaced HelloWorld XL 7.0 with the new FLUX 1 Dev.

How to Join


Get an Early Access membership via Patreon or Ko-fi, and you'll have access to a dedicated Discord server where Alessandro shares the unfinished new versions of AP Workflow as he progresses in its development.

Pros

  • You'll gain a competitive edge at work!
  • You'll be able to provide early feedback on the AP Workflow design and potentially influence its development.
  • You'll support the future development of the AP Workflow.
Cons

  • There will be no documentation.
  • Things might change without notice.
  • There is no guarantee you'll receive support.

Stay In The Loop
Sign up to to receive notifications when a new Early Access build is released.

Where to Start?

AP Plot features a modular design. There’s no wire going from one group to another. Which means that you can move groups around to completely change the design of AP Plot.

Four areas are dedicated to the workflow configuration, three areas are dedicated to image generation, and three areas are dedicated to image inspection and saving.

Workflow Configuration

0 – The control panel where you centrally enable or disable all the other groups.

1 – The list of models being compared.

2 – The prompt builder.
As AP Plot is not meant to replace AP Workflow in any way, this is very simple and only allows you to choose between a few alternatives.

3 – The configuration parameters Alessandro recommends.
These should not be touched as they are only used by group #5.

Image Generation

4 – Image generation according to the parameters indicated by each model author (Approach 1).
These recommendations are retrieved from the Civitai pages indicated in the Notes. Occasionally, the recommendations are not crystal clear and I had to guess a bit.
This is NOT an apple-to-apple comparison.

5 – Image generation according to the parameters I recommend, identical for each model (Approach 2).
These parameters are defined in group #3.
This is an apple-to-apple comparison, even if an unfair one.

6 – Image generation according to parameters defined by you (Approach 3).
Customize this area for experimentation as you like.

Image Inspection and Saving

7 – Image comparison for different approaches for each tested mode.
By default, each node is configured to compare Approach 1 and Approach 2, but you can modify it to compare 1 and 3, or 2 and 3.

8 – Individual image saver.
You can disable this group if you just want to have a composite image, but this is where you do your main inspection.

9 – Composite image saver.
It arranges individual images in a grid and adds a small label in the top left corner.
At the moment, I cannot create a single image with all 18 images, so this is split into two composite images with 9 images each. In the future, there will be a single grid.

Support

Required Custom Nodes

If, after loading the workflow, you see a lot of red boxes, you must install some custom node suites.

AP Plot depends on multiple custom nodes that you might not have installed. You should download and install ComfyUI Manager, and then install the required custom nodes suites to be sure you can run this workflow.

You have two options:

  1. Recommended: Restore AP Workflow custom node suites snapshot.
  2. Discouraged: Install the required custom node suites manually.

Restore AP Workflow custom node suites snapshot

The manual installation of the required custom node suites has been proven unreliable for many users. To improve your chances to run this workflow, you should create a clean install of ComfyUI, manually install the ComfyUI Manager, and then restore a snapshot of Alessandro’s ComfyUI working environment.

This will help you install a version of each custom node suite that is known to work with AP Plot 1.0.

Instructions:

  1. Install ComfyUI in a new folder to create a clean, new environment (a Python 3.10 venv is recommended).
  2. Install ComfyUI Manager.
  3. Shut down ComfyUI.
  4. Download the snapshot.
  5. Move/copy the snapshot to the /ComfyUI/custom_nodes/ComfyUI-Manager/snapshots folder.
  6. Restart ComfyUI.
  7. Open ComfyUI Manager and then the new Snapshot Manager.
  8. Restore the AP Workflow 10.0 Custom Nodes Snapshot.
  9. Restart ComfyUI.

Notice that the Snapshot Manager is a relatively new, experimental feature and it might not work in every situation. If you encounter errors, check the documentation: https://github.com/ltdrdata/ComfyUI-Manager#snapshot-manager

Install the required custom node suites manually

Install the nodes listed below via ComfyUI Manager.

Notice that some of these nodes conflict with others that you might have already installed. This is why this option is highly discouraged and you should not use it unless you know how to troubleshoot a ComfyUI environment.

  • \ComfyUI\custom_nodes\ComfyUI-Custom-Scripts
  • \ComfyUI\custom_nodes\ComfyUI-KJNodes
  • \ComfyUI\custom_nodes\rgthree-comfy
  • \ComfyUI\custom_nodes\comfyui-prompt-reader-node
  • \ComfyUI\custom_nodes\ComfyUI-Manager
  • \ComfyUI\custom_nodes\ComfyUI-Impact-Pack
  • \ComfyUI\custom_nodes\was-node-suite-comfyui
  • \ComfyUI\custom_nodes\comfy_mtb
WARNING: Regardless of the option you have chosen, after installing the required custom nodes, you might see the following error:

AttributeError: module ‘cv2.gapi.wip.draw’ has no attribute ‘Text’

after which, ComfyUI will fail to import multiple custom node suites at startup.

If so, you must perform the following steps:

  1. Terminate ComfyUI.
  2. Manually enter its virtual environment from the ComfyUI installation folder by typing: source venv/bin/activate
  3. Type: pip uninstall -y opencv-python opencv-contrib-python opencv-python-headless
  4. Type: pip install opencv-python==4.7.0.72
  5. Restart ComfyUI.

Required AI Models

The SDXL fine-tuned models compared in AP Plot 1.0 can be found on the Civitai website or on the Hugging Face website.

AP Plot only compares models that are publicly available and free to access.

Should a model become paywalled, it will be removed from AP Plot.

Node XYZ failed to install or import

Occasionally, AP Workflow users can’t install or import a custom node suite necessary to run AP Workflow. This happens when you try to use AP Workflow in a pre-existing ComfyUI environment that you have installed loooooooooong time ago.

If you have a similar problem, be sure to:

  1. Have all your packages up to date in your Python virtual environment for ComfyUI.

    To do so:

    1. Terminate ComfyUI.
    2. Manually activate its Python virtual environment with source /venv/bin/activate.
    3. Run pip install -U pip to upgrade pip.
    4. Run pip install -U setuptools to upgrade setuptools.
    5. Run pip install -U wheel to upgrade wheel.
    6. Run pip install -U -r requirements.txt to upgrade all the packages in the virtual environment.
  2. Check the installation instructions of the custom node suite you are having troubles with.

If you have installed ComfyUI in a new environment and you still fail to install or import a custom node suite, open an issue on the GitHub repository of the author.

I Need More Help!

AP Workflow and AP Plot are provided as is, for research and education purposes only.

However, if your company wants to build commercial solutions on top of ComfyUI and you need help with these workflows, you could work with Alessandro on your specific challenge.

Extras

Special Thanks

AP Workflow wouldn’t exist without the dozen of custom nodes created by very generous members of the AI community.

In particular, special thanks to:

@rgthree:

  • His Fast Groups Muters node powers AP Plot control panel.
  • His Image Comparer node is critical to inspect and compare the behavior of the models in AP Plot.

@kijai:

  • His Set and Get nodes enable the modular design of AP Plot.
  • His ImageGridComposite node generates a convenient XY Plot image.

@receyuki:

  • His SD Parameter Generator node is the most powerful and convenient way to define the Generation Parameters in AP Plot.

@ltdrdata:

  • His ComfyUI Manager is critical to manage package and model dependencies in AP Plot.

Thanks to all of you, and to all other custom node creators for their help in debugging and enhancing their great nodes.

Full Changelog

1.0

  • Initial Release.