ComfyUI  >  Nodes  >  ComfyUI-BrushNet-Wrapper >  BrushNet Sampler

ComfyUI Node: BrushNet Sampler

Class Name

brushnet_sampler

Category
BrushNetWrapper
Author
kijai (Account age: 2237 days)
Extension
ComfyUI-BrushNet-Wrapper
Latest Updated
6/20/2024
Github Stars
0.1K

How to Install ComfyUI-BrushNet-Wrapper

Install this extension via the ComfyUI Manager by searching for  ComfyUI-BrushNet-Wrapper
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-BrushNet-Wrapper in the search bar
After installation, click the  Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

BrushNet Sampler Description

Enhance AI art generation with specialized sampling for refined, detailed outputs in BrushNet framework.

BrushNet Sampler:

The brushnet_sampler node is designed to enhance your AI art generation process by providing a specialized sampling method that integrates seamlessly with the BrushNet framework. This node is particularly useful for artists looking to achieve more refined and detailed outputs by leveraging advanced sampling techniques. The primary goal of the brushnet_sampler is to improve the quality and precision of generated images, making it an essential tool for creating high-quality AI art. By incorporating this node into your workflow, you can expect smoother gradients, better texture details, and overall more aesthetically pleasing results.

BrushNet Sampler Input Parameters:

is_brushnet

This parameter determines whether the BrushNet sampling method is enabled. When set to True, the node will apply the BrushNet-specific sampling techniques, which can significantly enhance the quality of the generated images. If set to False, the node will use a standard sampling method. The default value is False.

mid_block_add_sample

This parameter allows you to add an additional sample to the mid-block of the neural network. This can help in refining the details and improving the overall quality of the generated image. The value should be a tensor that represents the additional sample to be added.

hidden_states

This parameter represents the hidden states of the neural network, which are used during the upsampling process. The hidden states are crucial for maintaining the consistency and quality of the generated images as they pass through different layers of the network.

temb

This parameter is used in conjunction with the hidden states during the upsampling process. It represents the time embedding, which helps in maintaining temporal consistency in the generated images. This is particularly useful for generating sequences of images or animations.

BrushNet Sampler Output Parameters:

sample

The sample output parameter represents the final generated image after applying the BrushNet sampling techniques. This output is a tensor that contains the pixel values of the generated image. The quality and details of this image are significantly enhanced compared to standard sampling methods.

hidden_states

The hidden_states output parameter represents the final hidden states of the neural network after the upsampling process. These hidden states can be used for further processing or analysis, providing insights into the internal workings of the network.

BrushNet Sampler Usage Tips:

  • To achieve the best results, ensure that the is_brushnet parameter is set to True to enable the BrushNet-specific sampling techniques.
  • Experiment with different values for the mid_block_add_sample parameter to find the optimal additional sample that enhances the details of your generated images.
  • Use the hidden_states and temb parameters to maintain consistency and quality when generating sequences of images or animations.

BrushNet Sampler Common Errors and Solutions:

"Invalid tensor shape for mid_block_add_sample"

  • Explanation: This error occurs when the shape of the mid_block_add_sample tensor does not match the expected shape required by the network.
  • Solution: Ensure that the mid_block_add_sample tensor has the correct shape. Refer to the documentation or the network's requirements for the expected tensor shape.

"Hidden states not initialized"

  • Explanation: This error occurs when the hidden_states parameter is not properly initialized before being passed to the node.
  • Solution: Make sure that the hidden_states parameter is correctly initialized and contains valid data before passing it to the node.

"Time embedding (temb) missing"

  • Explanation: This error occurs when the temb parameter is not provided, but is required for the upsampling process.
  • Solution: Ensure that the temb parameter is provided and contains the correct time embedding values needed for the upsampling process.

BrushNet Sampler Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-BrushNet-Wrapper
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.