Configuring the K Sampler in ComfyUI

Demo summary
A walkthrough of the K Sampler node settings, including seed generation, step count, CFG (classifier free guidance), and sampler algorithms like Euler.
Step-by-step
- Connect the Model, Positive Prompt, and Negative Prompt to the K Sampler node
- Connect an Empty Latent Image node to the K Sampler
- Set the Latent Image resolution to the native resolution of the model (e.g., 1024x1024 for SD 3.5)
- Configure the Seed to generate the base noise layer
- Adjust the Steps to define the number of denoising passes
- Set the CFG (Classifier Free Guidance) value to control prompt adherence
- Select a Sampler Name and Scheduler algorithm
Options
- Use a specific Seed number to attempt to recreate or maintain consistency across images
- Select alternative samplers like Euler Ancestral if required
- Add upscaler models after the K Sampler to reach higher resolutions like 1920x1080
Watch out for
- Models have specific latent image requirements based on their training; using non-native resolutions (like 1024x1024 on a 512x512 model) causes the generation to struggle
- Do not set the initial latent image to your final desired high resolution if it exceeds the model's native training size
Tips
- Keep Steps between 20 and 30; exceeding 50 is often a waste of computation and electricity with diminishing returns
- Use a low CFG value to make the model stick strictly to your prompt, or a high value to give the AI more creative leeway
- Stick with the 'Euler' sampler and default scheduler unless you have a specific technical reason to change them
- Hover over settings to view the built-in tooltips for more information
- Use the same seed and settings to achieve approximately 80% more consistency than random generation
Highlights
“the K sampler sort of been described as sort of the heart... of image generation.”
All demos from “ComfyUI Explained: How AI Image Generation Actually Works (Step-by-Step)”
9:522:41Basic Text-to-Image Workflow in ComfyUIThe host walks through a standard text-to-image template in ComfyUI, explaining the 'Load Checkpoint' node for selecting models like Stable Diffusion XL and the difference between safe tensor and diffuser files.ComfyUI· AI Image Generator
12:331:24CLIP Text Encoding in ComfyUIThe demo shows how to use CLIP Text Encode nodes for positive and negative prompting to translate text into latent vectors that the model can understand.ComfyUI· AI Image Generator
13:575:43Configuring the K Sampler in ComfyUICurrentA walkthrough of the K Sampler node settings, including seed generation, step count, CFG (classifier free guidance), and sampler algorithms like Euler.ComfyUI· AI Image Generator
19:430:44VAE Decoding and Image Saving in ComfyUIThe host demonstrates the VAE Decode node to convert latent space data back into pixel space (JPEG/PNG) and the Save Image node for local file output.ComfyUI· AI Image Generator
24:012:38Using LoRAs in ComfyUI WorkflowsThe video demonstrates how to insert a 'Load LoRA' node into a workflow to influence a base model's style or character consistency.ComfyUI· AI Image Generator
27:340:56Managing Models and Missing Nodes in ComfyUIThe host shows the built-in model manager to download CLIP models and the 'Install Missing Nodes' feature to automatically fix broken workflows.ComfyUI· AI Image Generator
28:561:50Image-to-Image Workflow in ComfyUIThe demo shows an image-to-image setup using a 'Load Image' node and a VAE Encode node to use an existing image as a structural guide for the K Sampler.ComfyUI· Image to Image- Watch “ComfyUI Explained: How AI Image Generation Actually Works (Step-by-Step)” →
AI Image Generator
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
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
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
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
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
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
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
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
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
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
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
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
ComfyUI