Laufzeitprofil
Quellenbeschreibung
Sexiam - Txt2Img & Img2Img
This is not meant to be an overly complex ComfyUI workflow.
The goal is to give beginner and intermediate users a flexible two-stage generation setup without overwhelming them with extra systems, heavy post-processing chains, or complicated node networks. I do a lot of Img2Img work across different styles using Illustrious-based models, and I often found myself switching between Txt2Img and Img2Img setups.
I did not want separate redundant node networks doing almost the same thing, but I also did not want complicated switches that require remembering assigned numbers, bypassing groups, or breaking creative flow.
The solution was to reduce the main mode switching to a simple On/Off system using boolean and if/else nodes.
KI-generierter Kommentar
KI-generierte Erklärung auf Grundlage von Quellen- und Konfigurationsdetails. Vorschläge sind klar gekennzeichnet.
Sexiam - Txt2Img & Img2Img is a ComfyUI workflow for two-stage image generation and image-to-image transformation with Illustrious-based models. It accepts a checkpoint, prompts, and optionally an input image, external VAE, LoRA models, and upscaler settings, and outputs images.
Use the "Txt2Img" switch to choose text-to-image generation or image-to-image processing with a loaded image.
The first stage generates or transforms an image, and the second stage upscales it for more detail. "Upscale by Model" uses a model-based 4x upscale, while the alternative uses latent-space upscaling.
Positive prompts are split into Suffix, Body, and Prefix sections for quality tags, LoRA trigger words, effects tags, and main prompt text.
SD Prompt Saver organizes generated images by Model Name folder, and the saved images should work with Civitai's metadata retrieval system.
Load a checkpoint, choose the built-in or external VAE, add LoRA models through "Power LoRA Loader," enter positive and negative prompts, and select an upscaler model and method. For Img2Img, also load an input image.
Vorschlag · nicht geprüft
The listed model files are: 4x_foolhardy_Remacri.pth, Electrum Cinnamon Anime.safetensors, and sdxl_vae.safetensors.
The listed node packs include: comfy-image-saver, ComfyLiterals, ComfyUI_ADV_CLIP_emb, comfyui_tinyterranodes, comfyui-custom-scripts, and comfyui-easy-use.
Other listed node packs are: comfyui-impact-pack, comfyui-mxtoolkit, comfyui-prompt-reader-node, comfyui-resolution-master, rgthree-comfy, and was-ns.
In Txt2Img mode, first-stage denoise is set automatically to 1.0; in Img2Img mode, adjust it manually with the pink 2D slider.
Resolution Master offers checkpoint-size presets, image-triggered Auto-Detect, scaling by factor or megapixels, a Swap control, and an orientation preview.
Set "Upscale Image By" to 2 to double the image size or to 1.5 to make it 50% bigger.
Vorschlag · nicht geprüft
For second-stage upscaling, a denoise setting above 40 may cause large changes; below 40 is suggested to help preserve eyes, details, and composition.
Vorschlag · nicht geprüft
Before running it, verify that Electrum Cinnamon Anime.safetensors, sdxl_vae.safetensors, and was-ns are available in your setup.
Vorschlag · nicht geprüft
Muss das bearbeitet werden?
Melden Sie sich an, um eine Änderungsanfrage zu senden.
Quellen
1 QuelleQuellenauszüge
3 AuszügeSource context: 367 downloads · Type Workflows · Base model Illustrious
When the switch is off, the workflow can run as Txt2Img.
When the switch is on, it can run as Img2Img.
How to Use Workflow
Load Models & Prompt
Load Checkpoint!
Load External VAE model
Turn the "Use External VAE" on or off
(Optional) Turn the "Use External VAE" node to true if you want to use the VAE model instead of the built-in VAE that comes with the checkpoint.
Load your LoRA models in the "Power LoRA Loader" node.
Press the add LoRA button.
Select a LoRA from the list.
To find a LoRA’s trigger words or Civitai link, right-click the LoRA in the node and select "Show Info". You can then select the trigger words you want and press copy in the "trained words" cell.
Enter your positive and negative prompt.
The positive prompt is broken up into three sections labeled Suffix, Body, and Prefix. This is to give you the flexibility to set your quality tags, LoRA trigger words, and effects tags without affecting the main prompt in the Body text node. This way you can copy and paste your character and scene tags without affecting your other modifier tags.
The text encoder node network is also broken up into three separate positive prompt nodes and combined with a Condition Concat function so that checkpoints with smaller token limits have greater flexibility.
KSampler - 1st Stage
(Optional) Turn the "Txt2Img" node OFF if you want to use Img2Img processing instead.
(Optional) Turning OFF the "Upscale by Model" switch will result in the image being upscaled in latent space instead of pixel space. This is a less resource-intensive and faster process than upscale by model.
At the bottom of the node are a number of presets that represent most of the most-used checkpoints and their latent space sizes.
In the workflow, the "Auto-Detect" option is turned on, and any image loaded into the "Load Image" node will trigger it. This will result in the node picking the closest standard size for your model.
You can also upscale the generation dimensions by a factor or by total megapixels.
The "Swap" button will swap the width and height.
The 2D preview of the node will also show you what the orientation of the generation will look like before generation begins.
If you set the "Txt2Img" node to true, then the denoise setting of the KSampler will automatically be set to 1.0.
If selecting Img2Img by turning the "Txt2Img" node to false, then you will need to manually adjust the setting on the pink 2D slider at the top of the KSampler - 1st Stage group.
The 2D slider will adjust the integer numbers to floats automatically. For instance, if you set the slider to 70, then the KSampler will read it as 0.7 in the denoise setting.
If you're only wanting small changes to the input image, then a setting lower than 50 would be recommended.
If you're making large changes to the image, then a setting of 60 to 70 would be recommended.
If you're curious about using Img2Img with a high denoise strength for new creative compositions, then you can refer to my article explaining the process Underpainting for AI .
Load your preferred upscaler model and upscaling method for either upscale by model or upscale by latent.
Adjust the KSampler settings to your preferred setup.
KSampler - 2nd Stage
This group will upscale the first stage and result in more detail without the need for detailer nodes.
A setting over 40 isn't recommended on most Illustrious checkpoints since you will get big changes to the upscaled image.
To avoid changes to eyes, details, and composition, a denoise setting below 40 is recommended.
A setting of 2 means the image size will be doubled, and 1.5 means 1.5x or 50% bigger.
Depending on how much VRAM you have, you may need to adjust this to a lower value like 1.5.
Load your preferred upscaler model and upscaling method.
Adjust the settings for the second-stage KSampler to your preferred settings.
Generally, you can set the CFG of the second stage to a lower setting than you did with the first stage.
Setting the CFG too low may result in a color shift, though.
The saved images should also work with Civitai's system for metadata retrieval.
Geschätzter VRAM Bedarf
Schätzung nicht verfügbar
63,9 MB über 1 von 3 Modell-Dateien. Gesamtmodell-Dateien + 25% Ladeaufwand + 2 GB Ausführungs-Puffer, aufgerundet.
Anforderungen
15 AnforderungenUpscaler · 63.9 MB · PTH · Unknown
Electrum Cinnamon Anime.safetensors
Nicht aufgelöstCheckpoint · Unknown
sdxl_vae.safetensors
Nicht aufgelöstVAE · Unknown
Knotenpaket · Registry
Knotenpaket · Registry
Source context: 364 downloads · Type Workflows · Base model Illustrious
Source context: 349 downloads · Type Workflows · Base model Illustrious
Knotenpaket · Registry
Knotenpaket · Registry
Knotenpaket · Registry
Knotenpaket · Registry
Knotenpaket · Registry
Knotenpaket · Registry
Knotenpaket · Registry
Knotenpaket · Registry
Knotenpaket · Registry
was-ns
Nicht aufgelöstKnotenpaket · Registry