CivArchive
    Model Card - v3.0
    NSFW
    Preview 10675660
    Preview 10187213
    Preview 10187435

    CLICK EXPAND AND READ ME PLZ!

    This ComfyUI workflow generates a Model Card for showcasing checkpoints or LoRAs.

    A rewrite of the Model Card workflow by @Stevie2k8

    V4 Beta 2

    V4 Beta 2 is another complete rewrite to reduce memory usage and complexity.

    This version uses Flow Control techniques together with Autoqueue in order to perform different actions separately in a controlled order.

    Intermediary steps produce images that are saved into a project folder.

    This version uses my custom IndustrialMagick node that requires you to install ImageMagick on your machine. This is an opensource command line application similar to photoshop or gimp, which is much more powerful and optimized than image manipulation within comfyUI.


    Looking for feedbacks before adding more features.

    Common issue resolution:

    1. project folder not created

    • I use ComfyUI save node to create the project folder inside your ComfyUI output directory by saving an empty image.

    • The output directory path can be changed by modifying your run_cpu.bat or run_nvidia_gpu.bat start file. (these files only exist on ComfyUI Portable for windows)
      By default, it is located in: `...\ComfyUI_windows_portable\ComfyUI\output`

    • If the creation fails, which it should not, you can create the directory manually.

    2. Error at the grid creation stage

    • You can check the actual image magick error in the logs in the comfyui cmd window before the same message as displayed in the error popup.

    • From my experience debugging the workflow, I believe the error will be because image magick cannot open one of the row_xx.png files listed in the rows.txt list file.

    • In that case, hit 0 or reset the view to go back to the control panel, below from the control flow group, you have a box to provide the absolute path to your comfyUI output directory. Please check that the path is valid.

    • You can also go to the project folder and open the rows.txt file to double check the paths of all row images.

    3. Error at the card creation stage

    • This should not happen, but did happen in debugging and was corrected.

    • If the flow controls is not set properly or if you disable the random number generators, ComfyUI may skip the header or grid generation because their parameters did not change.

    • If this issue presents itself to you, you can disable the autoqueue, set the header and grid controllers to active, set the loopCount to the number of selected rows plus one (27 if you selected all 26 prompt groups) and queue. It will generate the header and grid, then you can set all values as before but also enable the card controller, generation will happen without error this time.

    V4 Beta 2 Flow Control explanation:

    Flow control serves two purposes in V4 beta 2.

    Order of generation

    You will notice a chain from the loop count value all the way to the autoqueue. That's called the signal. This is a technique to enforce that several steps happen before others.

    Workflow routing


    This workflow is designed to queue itself twice before starting to generate row images and once after. Before each queue the loop counter value will update and the workflow will activate or deactivate multiple stages.

    Before I describe the order of operations, let's define some terms:

    • loopCount: is an integer value starting at -1. It keeps track of the current iteration. It acts as an index in a programmatic loop. It's maximum value will be one more than the number of prompt groups you select to generate, so if you select 3 it will be 4.

    • N: represents the number of prompt groups selected. loopCount maximum value will be N+1.

    • Controllers: ComfyUI has a specific order of operations. It will only execute nodes in a branch that ends with a saving or preview node.This allows us to activate or deactivate a route or diagram branch by disabling the saving or preview node at its end. I have put these nodes into separate groups called controllers.

    • In the following flow explanation, I will write [autoqueue] to represent the last action in a workflow. That action is different whether you have activated the autoqueue option in the workflow or not. In the former case, it corresponds to the last node in the workflow queueing itself, in the latter, it corresponds to you the user queueing the workflow at the end of its execution.


    Flow control works as follow:

    Before you queue for the first time, ensure that:

    • all controllers are set to NO (disabled).

    • the value of loopCount is set to -1

    You queue once.

    STEP -1

    The workflow enables two controllers:

    • folder creation

    • rows.txt text file reset

    The workflow updates the value of loopCount to 0.

    [autoqueue]

    STEP 0
    The workflow runs:

    • folder creation

    • rows.txt text file reset

    The workflow disables two controllers:

    • folder creation

    • rows.txt text file reset

    The workflow enables three controllers:

    • row

    • row2

    • save row image name to rows.txt

    The workflow updates the value of loopCount to 1.
    [autoqueue]

    STEP 1 to STEP N-1
    The workflow runs:

    • row

    • row2

    • save row image name to rows.txt

    The workflow updates the value of loopCount by 1.
    [autoqueue]

    STEP N
    The workflow runs:

    • row

    • row2

    • save row image name to rows.txt

    The workflow disables three controllers:

    • row

    • row2

    • save row image name to rows.txt

    The workflow enables three controllers:

    • header

    • grid

    • card

    The workflow updates the value of loopCount to N+1.
    [autoqueue]


    STEP N+1
    The workflow runs:

    • header

    • grid

    • card

    The workflow disables three controllers:

    • header

    • grid

    • card

    The workflow updates the value of loopCount to -1.

    No queue, the workflow executed completely.

    V4 Beta 1

    I am trying to reduce the memory load from V3.
    In V4 I saw significant reduction of the RAM in use after an initial peak.
    Looking for feedbacks before adding more features.

    V3 Status

    Issues:

    • Group Average gen times: check formula

    • Global generation times: not working, issue with lists

    • VRAM hungry

    Description

    This workflow generates a customizable Model Card.

    Header

    • Can be toggled on or off entirely.

    • Logo to the left, toggable.

    • Generation info.

    • Baner to the right, toggable.

    Grid body

    • Customizable number of columns (recommended values: 1 or 2).

    • Toggable prompt groups (26).

    • Customizable max number of images per group (recommended <8).

    • Supports groups of different sizes.

    • Each group prints one headline.

    • Each group may print one description.

    • Each image in group prints a label.

    V3 exclusive

    • Each image may print a generation time, toggable.

    • (broken) Each group may print a total or average generation time.

    • (planned) Total or global average generation time may print to the header.

    Use

    • You may clone this repository into the pysssss-workflows ComfyUI subdirectory.

    • Load the .json file.

    • Install missing nodes using the ComfyUI Manager.

    • (V3) Install my custom node "KSamplerTimer" for Version 3.

      • Install with the ComfyUI Manager: Insall via git URL: https://gitlab.com/lanterieur/comfyui_ksamplertimer

      • Get it from CivitAI: CivitAI

      • Get it from the repository: Gitlab

    • Set checkpoint settings.

    • Set default sd1.5 & sdxl image sizes.

    • Set LoRA settings if needed.

    • Set template (columns).

    • Toggle groups to generate.

    • (V2) Toggle "just the right amount" of "batch"es.

    • (Recommended) Disable generation and dry fire.

    • Queue workflow

    FAQ

    • I cannot find the custom node "workflow/xxx".
      This workflow uses "group nodes" which is a built in feature that groups nodes together. If a group node is red, it's most likely because you are missing a custom node inside the group node. Try installing missing custom nodes from the ComfyUI Manager.
      Alternatively, inspect the missing node errors in the ComfyUI console to find which custom nodes to install.

    Changes

    V 3.0.2

    • Updated Hair prompts

    • Updated Headlines

    • Updated Descriptions

    • Updated Labels

    • Fixed bugs:

      • Mismatched Headlines.

      • Mismatched negative prompts.

      • Mismatched labels.

    V 3.0.1

    • Fixed bugs

    V 3.0.0

    • Complete refactor.

    • Swapped native KSampler for custom KSamplerTimer.

    • Supports batch generation with checkpoints configuration from file.

    • Exposes negative prompts and seeds to user.

    • Generates all images in one sampler run (list not batch). => Always regenerates all images.

    • Adds ability to print generation times.

    • Improved GUI:

      • Toggles are black.

      • Anything Everywhere declarations are gold.

      • Number of column is red.

      • Save location controls moved to top.

      • Custom LoRA controls moved to top.

      • Reorganized variable columns.

    • Fixed bugs

    V 2.0.0

    • Refactor.

    • Swapped multiple custom nodes (maths, simple & multiline strings).

    • Improved GUI:

      • Reorganized nodes in columns by functions.

      • Color coded node groups.

      • Annotations for users.

    • Removed save to jpg.

    Description

    V 3.0.2

    + Fixed Headlines bug
    + Updated Descriptions
    + Updated Prompts
    + Fixed Negative Prompts
    + Fixed Labels

    V 3.0.1

    + Fixed minor bugs
    + Fixed Checkpoint from file mode detection


    V 3.0.0
    Complete refactor.

    + Added generation times using KSamplerTimer (see my models)
    + Supports controls from text file
    + Better LCM Lightning LoRA
    + Finer generation controls
    + Single batch sampler
    + Logo ControlNet

    Known Issues:
    (Help appreciated)

    • Global Average Generation Time computation (int list issue)

    • Individual image NSFW borders (img batch list + string list issue)

    FAQ

    Comments (22)

    Jon_KingApr 19, 2024· 1 reaction
    CivitAI

    Where do I find the "workflow/Prompt Processor" custom node ? Manager is not finding it

    IndustrialVectors
    Author
    Apr 19, 2024

    Prompt Processor is a "group nodes", that's a built in feature.

    If it's red, it can mean two things.

    You either need to update your comfyui to have this feature.

    Or

    One of the custom nodes inside the Prompt Processor is missing.

    I'll check what is inside when I get back to my computer.

    Meanwhile you can try to right click one prompt precessor and see if you have the option to "convert to nodes".

    Jon_KingApr 20, 2024

    Thanks for the help.

    I managed to work it out after 2 hours of debugging ALL the boot up errors I get from the custom nodes and turning problem nodes off if I can't fix them. A number of Updates and attempts to resolve python dependencies.

    Essentially, I run it on a linux (Kubuntu) machine with an i9-139000K, 64 GB ram and a 3090 with 24GB ram, in a conda environment. So plenty of grunt.

    The Mixlab nodes have some hard coding for windows and the ComfyRoll nodes have a linux path that falls short of the actual fonts.

    I must admit I got distracted by the MixLab workflows, getting a web cam image of me processed to an image, not quite real time but fun. I was missing a lot of models.

    I have got it working BUT, I find that with all the nodes the browser starts to spit the dummy, In Chrome my page becomes unresponsive, Firefox works but will lock up after a few runs.

    IndustrialVectors
    Author
    Apr 20, 2024

    @Jon_King Got back to my computer 6 hours after your message.
    Thank you for such a precise reply.
    Optimization was a big issue on my system too. I recorded a video explaining V2 vs V3 and choices. But being sick my voice sounded like crap. Will record again.
    As you may have seen in the system info, my system is much older than yours, the chrome tab that runs the workflow uses about 800 mb of ram. When I was working on v2.1 (dropped for v3), I was always getting upward of 900mb and it often just became unresponsive.
    I'd guess chrome implementation in linux is the culprit for your issues.
    Monday i'm testing a egpu enclosure to see if I can extract my gpu and use it with my laptop as an option for nomadic rendering. It's a dual boot win10/ubuntu and I was thinking linux would be the better host os. I think I may stay with windows then.
    By the way, there are nodes that are hardcoded with linux/mac paths in mind, there are a couple custom nodes that I had to alter locally to use os path separator rather than forward slashes.

    diaserikcg114May 4, 2024· 1 reaction
    CivitAI

    When loading the graph, the following node types were not found:

    1- Manager don't know "KSamplerTimer"

    2- Manager find "Derfuu_ComfyUI_ModdedNodes" but it remains red and when I check, I have the 3 choices: Try update, Disable, Uninstall.

    After trying everything, nothing has changed.

    What can i do next, please ?
    Thx for your time and work

    IndustrialVectors
    Author
    May 4, 2024

    Hello,

    KSamplerTimer.
    Please read the description of this model card. In the "USE" section, I specify that V3 requires my custom node KSamplerTimer. I wrote instructions on where to get it / how to install it.

    Derfuu.
    I cannot be sure what's the cause for your issue.
    As a troubleshoot I suggest that you update your comfyui install and all extensions.
    Then when you restart ComfyUI, check the console window, it should log issues with extensions as it loads them.
    Most common issue with custom nodes is when other extensions have custom nodes with the same name. I believe only the first extension will load, others will fail.

    EricRollei21May 26, 2024· 1 reaction
    CivitAI

    Really want to get this to work, but haven't so far. I have all the nodes, but maybe the derfu seed with integer output is conflicted with something - can I replace with any seed generator node?

    IndustrialVectors
    Author
    May 27, 2024

    Yes. Most nodes can be replaced by alternatives. Sometimes it's as easy as opening the json file in a text editor and replacing the name of the class/node.

    EricRollei21May 28, 2024· 1 reaction

    @IndustrialVectors That's a good idea to edit the json!

    IndustrialVectors
    Author
    Aug 9, 2024

    Perhaps V4B2 will work better for you?

    EricRollei21Aug 10, 2024· 1 reaction

    @IndustrialVectors  Sorry I didn't come back to comment earlier but your suggestion to edit the json worked out and I did get your workflow going, thanks!

    BadaxiomJun 16, 2024
    CivitAI

    As of 15th of June and after the latest update of ComfyUI this Workflow is broken. I hope the author takes the time to fix it.

    IndustrialVectors
    Author
    Jun 16, 2024

    Can you describe what broke?

    predestJun 23, 2024

    @IndustrialVectors I see that at least Get Latent Size and KSamplerTimer nodes are no longer valid, after updating ComfyUI and all custom nodes to the latest version.

    IndustrialVectors
    Author
    Jun 23, 2024

    @predest thanks for the report.

    Ksamplertimer is just a wrapper I made of the default ksampler, it should still work but you need to follow the install instruction.

    I recently reopened a github, so I might have it added to the manager soon.

    predestJun 23, 2024

    @IndustrialVectors Thanks for the explanation, I did not really go through the install description. Indeed there is a KSamplerTimer customized node that will have to be installed separately, cannot be done via ComfyUI manager. Since I don't really need the generation time for benchmarking, I will modify it to the regular Ksampler. And Thanks again for making such an excellent workflow.

    IndustrialVectors
    Author
    Jun 24, 2024

    @predest you can use the manager using the git repo link (gitlab).

    To replace the ksampler, you can edit the JSON file. You may get some errors thought, there are other nodes linked to the extra 2 outputs.

    IndustrialVectors
    Author
    Aug 9, 2024

    @predest I don’t recommend using V3 anymore, but the Ksampler timer node is now available on the Manager, so it may help.

    GunMollieJun 21, 2024
    CivitAI

    After some node substitution and a little rewiring, I am getting model card rows. What I cannot get it to do is make a single image with all the rows. What am I missing to get your workflow to output a composite with all the rows?

    Lots of detailed workflow pieces I've not encountered. I'll be studying for some time. Love your work, thanks!

    GunMollieJun 21, 2024

    Nevermind -- That is apparently what generation 1 does! in my defense, I misunderstood what it did before some of the rewiring and never turned it on for the successful runs. Thanks again for making this workflow

    IndustrialVectors
    Author
    Jun 21, 2024

    I did not open this workflow in a while as I work on another project at the moment so please excuse inaccuracies.
    I believe you should be able to get one isolated row.
    - download a fresh copy of the workflow again
    - load it
    - install missing nodes if any
    - on the far left, toggle on the manual checkpoint selection method
    - pick a sd1.5 model (not a lora variant)
    - check all settings so that they reflect that model type
    - additional lora: make sure you have none
    - move to the column count input box (red in a sea of blue), set to 1
    - move to the main switch board (column with 2 boards)
    - disable every option
    - enable the generation of one row
    - try and see if it will work (shouldn’t start)
    - enable each generation step (steps, not row) until you get a generation.
    - you should be able to keep the header, logo and banner off
    When I was testing the workflow, I had generated rows in isolation so it should work.
    However since the intended use case is to output a grid of grids, I focused testing on generating the whole card and not just parts.

    IndustrialVectors
    Author
    Aug 9, 2024

    Perhaps you can check v4b2, provided you install the requirements, it should be much easier to operate.

    Workflows
    Other

    Details

    Downloads
    246
    Platform
    CivitAI
    Platform Status
    Available
    Created
    4/18/2024
    Updated
    5/13/2026
    Deleted
    -

    Files

    modelCard_v30.zip

    Mirrors

    CivitAI (1 mirrors)