demobook

ComfyUI: Adjusting K Sampler Parameters

ComfyUITry it →Watch full video →Fictitiousness ·

Demo summary

A walkthrough of the K Sampler settings including Seed, Steps, CFG scale, and Sampler/Scheduler selection to control the final image output.

Step-by-step

  1. Set the Seed value to define the starting random noise pattern
  2. Adjust the Steps to determine the number of denoising iterations
  3. Set the CFG scale to control prompt adherence versus creative freedom
  4. Select a Sampler Name to choose the denoising algorithm
  5. Choose a Scheduler to control how steps are distributed over time
  6. Adjust the Denoise value to set the strength of the diffusion process

Options

  • Set 'control after generate' to 'fixed' to reproduce results
  • Set 'control after generate' to anything other than 'fixed' to randomize the seed automatically
  • Choose between samplers like Euler, DPM++, DDIM, or Heun
  • Select schedulers such as simple, Karras, or exponential

Watch out for

  • Setting CFG too low can result in flat or bland images
  • Setting CFG too high can make images look oversharpened or unnatural
  • Higher step counts increase processing times

Tips

  • Use 20 to 30 steps as a sweet spot for SDXL
  • Set CFG between 4 to 6 for more creative freedom and softer images
  • Set CFG between 7 to 10 for stronger prompt adherence and more contrast
  • Use a Denoise value of 1.0 for generating entirely new images from pure noise
  • Use lower Denoise values for image-to-image or inpainting to modify existing pictures
  • Experiment with different sampler and scheduler pairs to find a specific aesthetic

Highlights

Together, these settings give you precise control over how your images are created.

All demos from “ComfyUI for Beginners Pt. 1: Installation, Interface & Your First SDXL Workflow

  1. 4:071:10Install ComfyUI and Manager with Stability MatrixThe video demonstrates how to use the Stability Matrix launcher to install ComfyUI in portable mode and add the ComfyUI Manager extension via the package menu.ComfyUIAI Image Generator
  2. 6:504:15ComfyUI Interface and Sidebar NavigationA walkthrough of the ComfyUI interface, including the main menu, Q panel for tracking generations, model library, and the canvas tools for node navigation.ComfyUIAI Image Generator
  3. 11:472:24Building a K Sampler and Checkpoint Node SetupThe creator demonstrates starting a blank workflow and connecting a K Sampler node to a Load Checkpoint node using the node-based drag-and-drop interface.ComfyUIAI Image Generator
  4. 14:130:45Download SDXL Models via Stability Matrix BrowserThe demo shows how to use the built-in CivitAI integration in Stability Matrix to browse, filter for SDXL 1.0 checkpoints, and download them directly to the shared models folder.Stability AIAI Image Generator
  5. 16:374:03Completing a Text-to-Image Workflow in ComfyUIThe video shows the step-by-step connection of CLIP Text Encode nodes for prompts, Empty Latent Image for resolution, VAE Decode, and the Save Image node to complete a functional pipeline.ComfyUIAI Image Generator
  6. 21:100:42Running an AI Image GenerationThe user enters a prompt and clicks 'Run', demonstrating how ComfyUI highlights active nodes with a green border as it processes the image through the pipeline.ComfyUIAI Image Generator
  7. 21:523:43Adjusting K Sampler ParametersCurrentA walkthrough of the K Sampler settings including Seed, Steps, CFG scale, and Sampler/Scheduler selection to control the final image output.ComfyUIAI Image Generator
  8. Watch “ComfyUI for Beginners Pt. 1: Installation, Interface & Your First SDXL 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