Adds a configurable folder watcher that auto-converts Comfy metadata into a Civitai-friendly format for automatic resource tagging when you upload images. Oh, and it makes your UI awesome, too. ๐
Makes ComfyUI cute and adorable (and TOTALLY easier to use, too! ^_^).
We are listed in the Comfy Manager custom node list!
First, install ComfyUI Manager if you have not already.
Then, go to the custom node store and search for "Cute". Click Install next to Cute Comfy! That's it! ๐
To install:
cd
into ComfyUI/custom_nodes
git clone https://github.com/zer0TF/cute-comfy.git
/ComfyUI/custom_nodes/cute-comfy/config.yaml
file with your own preferences and folder path(s).If you see:
Cute Comfy: ๐๏ธ I'm keeping an eye on: [[ YOUR COMFY OUTPUT FOLDER HERE ]]
ยฐยบยครธ,ยธยธ,รธยคยบยฐ Cute Comfy: Loaded! ยฐยบยครธ,ยธยธ,รธยคยบยฐ
Then it's up and running! ๐
You read that right. Your exported images from Comfy will now be correctly tagged when uploaded to Civitai.com. This includes prompt data as well as model and LoRA asset links. (Textual embeddings coming sometime soon~!)
See below for how to configure it. Once it's set up, it "just works" - no extra button pushes necessary!
We map the following:
We support:
๐ก Tip: We can't always figure out where your stuff is inside of your Comfy workflow - Comfy is crazy! You could have 10 separate positive prompts, 4 model merges, and 5 different sampler steps!
We do our best to support basic workflows (basic txt2img/img2img, and 2-step "hires fix" / latent upscaling).
There are some ways you can provide "hints" to the conversion script as to where your metadata is:
| Metadata | Hint |
|-----------------|--------------------------|
| Model | Use the Civitai Checkpoint Loader node. |
| LoRA(s) | Use the Civitai LoRA Loader node. |
| Positive Prompt | Set the title of your CLIP Text Encode or Primitive node to: Positive
|
| Negative Prompt | Set the title of your CLIP Text Encode or Primitive node to: Negative
|
| Seed, CFG, Sampler/Scheduler, Steps | Use a KSampler or KSampler (Efficient) node. If you have more than one sampler, set the title of your primary/base one to: Sampler
|
Sick of gray, drab UI? Sick of pressing "Extra options" and "View History" every time you open Comfy? Well have I got the solution for you! ๐๐
The Civitai metadata converter works as a file watcher - you tell it where Comfy is writing your images that have their workflow/metadata embedded in them, and we will watch that directory ๐. When we see a new file, we'll take a look at the Comfy workflow inside and extract all of the relevant bits of information, then re-write only the metadata of the file in a Civitai-compatible format. The image data itself is untouched.
When you first start Comfy after installing this addon, you'll see the following message in your console:
โฃ๏ธโก๏ธ First-time file watcher setup - please edit the config.yaml file located in the folder: "ComfyUI/custom_nodes/cute-comfy"
A sample config.yaml
file will be written to: /ComfyUI/custom_nodes/cute-comfy/config.yaml
- you'll need to edit this file to tell Cute Comfy how to watch for new files.
Here is the default contents:
watcher:
enabled: true
extensions:
- png
folders:
- Z:\Path\To\Your\Comfy\Output\Folder
overwrite: false
keep_workflow: false
verbose: false
write_suffix: __a1
Modify these settings to suit your needs!
| Setting | Default | Description |
|---------|---------|-------------|
| enabled
| true
| If the file watcher feature is enabled (or disabled). |
| overwrite
| false
| If true
, the original file that Comfy writes will be overwritten. NOTE: Comfy workflow metadata is lost when converting to Civitai-compatible format, so leave this setting false
if you want to retain copies of your workflow inside your image files! |
| keep_workflow
| false
| If true
, the original ComfyUI workflow metadata will be retained in the file, otherwise it will be removed and only the Automatic1111-compatible metadata will remain. This setting applies to both overwritten and new files. |
| write_suffix
| __a1
| The suffix to add to the image file when saving a copy. Has no effect if overwrite
is true
. |
| verbose
| false
| If true
, prints lots more info to the console when it processes an image. |
| folders
| A nonexistant sample path you must change. | Add one or more folders that Cute Comfy should watch for new files. The files written into this folder must contain Comfy workflow metadata, so if you are using a custom saving node, ensure that you are including the metadata in the images written here. Multiple directories are supported and can be watched at the same time. |
| extensions
| - .png
| A list of file extensions to watch for and modify. Currently, the only usable extension is .png (adding any others will give you an error), but if/when other image formats are supported in the future (e.g. .webp
), those can easily be added to this list. |
There is no setup - it's just on by default. ๐ I may make it toggle-able in a future update.