demobook

Building a text-to-image workflow in ComfyUI

ComfyUITry it →Watch full video →RyanOnTheInside ·

Demo summary

The video shows how to connect a Load Checkpoint node to a KSampler, CLIP Text Encoders for positive/negative prompts, and a VAE Decode node to create a functional image generation pipeline.

Step-by-step

  1. Click and drag from the Model output of a Load Checkpoint node to the canvas.
  2. Select the KSampler node from the suggested menu to connect it.
  3. Drag from the CLIP output to create a CLIP Text Encode node for the positive prompt.
  4. Hold the ALT key and drag the CLIP Text Encode node to duplicate it for the negative prompt.
  5. Connect the positive and negative CLIP nodes to the corresponding inputs on the KSampler.
  6. Drag from the Latent input on the KSampler and select Empty Latent Image.
  7. Connect the VAE output from the Load Checkpoint node to a VAE Decode node.
  8. Connect the KSampler output to the VAE Decode node.
  9. Drag from the VAE Decode output and select Preview Image to view the result.

Options

  • Hold Shift while dragging a noodle to access the full node menu instead of filtered suggestions.
  • Use a Save Image node instead of Preview Image if you want to store the file on your computer.

Watch out for

  • All inputs on the KSampler must be filled for the workflow to function.
  • Negative prompts like 'bad anatomy' may not be very effective when using the base Stable Diffusion model.

Tips

  • Use the ALT + drag shortcut to quickly duplicate existing nodes.
  • Stick to the default 512x512 resolution for the Empty Latent Image as that is what the base model was trained on.

Highlights

this ladies and gentlemen is the default text to image workflow

All demos from “Comfyui For Beginners - First Workflow

  1. 2:140:48Adding nodes in ComfyUIThe creator demonstrates three ways to add nodes to the ComfyUI graph: right-clicking the canvas, using the node library sidebar, and double-clicking to search.ComfyUIAI Image Generator
  2. 5:503:09Building a text-to-image workflow in ComfyUICurrentThe video shows how to connect a Load Checkpoint node to a KSampler, CLIP Text Encoders for positive/negative prompts, and a VAE Decode node to create a functional image generation pipeline.ComfyUIAI Image Generator
  3. 9:021:31Generating images with ComfyUIThe creator demonstrates how to queue a prompt and monitor the generation progress through the KSampler node to produce a final image output.ComfyUIAI Image Generator
  4. Watch “Comfyui For Beginners - First Workflow” →

AI Image Generator

  1. 8:418:40Building a ComfyUI workflow from scratchA step-by-step walkthrough of adding nodes (Checkpoint, CLIP Text Encode, KSampler, VAE Decode) and connecting them to build a custom image generation pipeline.AI Search
  2. 19:571:09Generating a medieval warrior with batch processingDemonstrates generating multiple images of a medieval warrior by increasing the batch size in the Empty Latent Image node.AI Search
  3. 25:330:32Importing workflows from image metadataShows how to drag an existing AI-generated image into the ComfyUI canvas to automatically reconstruct the entire node workflow used to create it.AI Search
  4. 58:094:05Controlling character poses with ControlNetDemonstrates using the OpenPose pre-processor and ControlNet Union model to force a generated princess character into a specific pose from a reference image.AI Search
  5. 1:360:57Install custom workflows and missing nodes in ComfyUIThe video demonstrates how to drag and drop a JSON workflow file into ComfyUI and use the Manager to identify and install missing custom nodes.Sebastian Kamph
  6. 3:020:20Search and install models via Model ManagerA walkthrough of using the ComfyUI Model Manager to search for specific AI models, such as ControlNet, and install them directly.Sebastian Kamph
  7. 3:281:10Running and managing image generation queuesDemonstration of starting a workflow using the 'Run' button, setting up 'Run Instant' for continuous generation, and using 'Run on Change' to trigger generation upon prompt edits.Sebastian Kamph
  8. 4:590:55Navigating the ComfyUI workspace and UI settingsShows how to use zoom, fit view, pan modes, and toggle link visibility or themes (light/dark mode) within the ComfyUI interface.Sebastian Kamph
  9. 11:311:49Adding and connecting nodes in ComfyUIThe video demonstrates adding a 'Load Image' node via the library or right-click menu and connecting it to other nodes like 'Save Image' using spaghetti links.Sebastian Kamph
  10. 19:431:34Converting widgets to inputs in ComfyUIShows how to convert a node's internal settings (like seed) into an external input pin and connect a 'Primitive' node to control it.Sebastian Kamph
  11. 25:032:06Managing seeds and randomizationShows the difference between 'Randomize' and 'Fixed' seed settings in the KSampler to either generate new variations or reproduce the same image.Sebastian Kamph
  12. 36:450:34Saving images to specific foldersShows how to use the 'Save Image' node and file path syntax to organize output images into custom subfolders.Sebastian Kamph