Visit ComfyUI Online for ready-to-use ComfyUI environment
ComfyUI-ppm enhances ComfyUI with fixed AttentionCouple/NegPip for negative weights in prompts and introduces additional CFG++ samplers, improving the overall functionality and customization options.
ComfyUI-ppm is an extension designed to enhance the functionality of ComfyUI by providing a collection of modified, fixed, and newly created nodes. These nodes are tailored to improve compatibility, add new features, and solve common issues faced by AI artists when working with prompts and models. By integrating ComfyUI-ppm into your workflow, you can achieve more precise control over your prompts, reduce unwanted effects, and streamline your creative process.
ComfyUI-ppm works by introducing new nodes and modifying existing ones to enhance their functionality and compatibility. Nodes are the building blocks in ComfyUI that perform specific tasks, such as processing prompts or generating images. By using these nodes, you can create complex workflows that allow for greater customization and control over your AI-generated art.
For example, the CLIPNegPip
node allows you to use negative weights in your prompts, which can help in reducing or eliminating unwanted elements in your generated images. Similarly, the AttentionCouplePPM
node lets you define specific regions in your image to focus or defocus attention, providing more control over the final output.
The CLIPNegPip
node is a modified implementation that allows you to use negative weights in your prompts. This can be particularly useful for removing unwanted elements from your images. To use it, connect the CLIPNegPip
node before other model or clip patches. You can then enter negative weights in your prompts, such as (worst quality:-1.3)
. This node increases compatibility with other nodes by using ModelPatcher instead of monkey-patching.
The AttentionCouplePPM
node is a modified version of the AttentionCouple node, compatible with CLIPNegPip
and PatchModelAddDownscale (Kohya Deep Shrink)
nodes. It allows you to add or remove regions by right-clicking the node and selecting Add Region
or Remove Region
. You can use multiple LatentToMaskBB
nodes to set bounding box masks, providing precise control over which parts of the image to focus on.
This node adapts samplers to the CFG++ method, which helps reduce overexposure effects in your images. Use it together with the SamplerCustom
node and set the CFG scale to 1.0-2.0 and PAG scale to 0.5-1.0 for optimal results.
The Guidance Limiter
node implements a method to apply guidance in a limited interval, improving the quality of samples and distribution in diffusion models. It also includes RescaleCFG
functionality.
This node generates an empty latent image with a specified aspect ratio, respecting the target resolution. It is useful for creating base images with specific dimensions.
A lightweight wrapper over the ConditioningConcat
node, CLIPTextEncodeBREAK
can split prompts by the BREAK
keyword into chunks and produce a single concatenated conditioning. This is useful for managing complex prompts.
The CLIPTokenCounter
node counts tokens in your prompt and returns them as a string. It can also print the token count and individual tokens if debug_print
is enabled.
ComfyUI-ppm does not introduce new models but enhances the functionality of existing ones through its nodes. Each node is designed to work seamlessly with the models you are already using, providing additional features and customization options.
CLIPNegPip
and PatchModelAddDownscale (Kohya Deep Shrink)
.RescaleCFG
functionality.BREAK
keyword for better prompt management.CLIPNegPip
node is connected before other model or clip patches. Check that the weights are entered correctly, e.g., (worst quality:-1.3)
.Add Region
or Remove Region
to adjust the regions. Use LatentToMaskBB
nodes to set bounding box masks accurately.CLIPNegPip
node before other model or clip patches and enter negative weights in your prompts.AttentionCouplePPM
node and LatentToMaskBB
nodes to define and adjust regions.For additional resources, tutorials, and community support, consider exploring the following:
© Copyright 2024 RunComfy. All Rights Reserved.