Install this extension via the ComfyUI Manager by searching
for ComfyUI_yanc
1. Click the Manager button in the main menu
2. Select Custom Nodes Manager button
3. Enter ComfyUI_yanc 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
ComfyUI_yanc enhances ComfyUI by adding a collection of useful nodes, expanding its functionality. For more details, visit the GitHub page.
ComfyUI_yanc Introduction
ComfyUI_yanc is an extension for ComfyUI, a powerful and modular interface for creating and executing advanced Stable Diffusion workflows. This extension adds a collection of useful nodes that can enhance your image processing and text manipulation capabilities within ComfyUI. Designed to meet the author's personal needs, ComfyUI_yanc offers a variety of tools that can help AI artists streamline their creative processes, solve common problems, and achieve more refined results.
How ComfyUI_yanc Works
ComfyUI_yanc works by integrating additional nodes into the ComfyUI environment. These nodes are like building blocks that you can connect in a flowchart-style interface to create complex workflows without needing to write any code. Each node performs a specific function, such as rotating an image, generating noise, or manipulating text. By combining these nodes, you can create customized workflows tailored to your artistic needs.
Think of it like a digital art studio where each tool (node) has a specific purpose. You can pick and choose the tools you need, arrange them in the order you want, and create a seamless workflow that transforms your input into the desired output.
ComfyUI_yanc Features
Image Nodes
Rotate Image: Rotates an image and outputs the rotated image along with a mask. This can be useful for aligning elements in your artwork.
Scale Image to Side: Scales an image to a specified side (width, height, shortest, longest). You can also apply a mask, which will be resized accordingly.
Resolution By Aspect Ratio: Calculates the aspect ratio of an input image and returns the closest matching resolution for either SD 1.5 or SDXL.
Load Image: Similar to the ComfyUI vanilla node but includes a filename output option. You can choose to strip or keep the file extension.
Save Image: Saves images with additional options like specifying a target folder and including metadata. Be cautious with the filename option to avoid overwriting files.
Load Image From Folder: Loads images randomly or iteratively from a specified folder. Useful for batch processing or random image selection.
Noise From Image: Generates noise from an image with various parameters to control the noise characteristics. Can be used with the NIKSampler.
Normal Map Lighting: Adjusts the lighting of an image using a diffuse map, normal map, and specular map.
Text Nodes
Text: A simple multiline text node.
Text Combine: Combines two text inputs with an optional delimiter and the option to add an empty line between them.
Text Pick Random Line: Picks a random line from a multiline text input. You can set a fixed seed to stop the random selection.
Clear Text: Empties the text based on a given chance (0.0 = 0%, 1.0 = 100%).
Text Replace: Replaces specified text within the input text.
Text Random Weights: Adds random weights to lines of text, useful for creating varied text outputs.
Int to Text: Converts an integer to text, with options for leading zeros and specifying the length of the output string.
Basic Nodes
Int: Outputs a simple integer value.
Float to Int: Converts a float value to an integer using functions like round, floor, or ceil.
Sampling Nodes
NIKSampler: A specialized sampler node. For detailed usage, refer to the video tutorial.
Masking Nodes
Light Source Mask: Creates a blurred mask from the brightest parts of an image, adjustable with a threshold.
Utility Nodes
Get Mean Color: Calculates the mean color of an image, with an option to apply a mask to a specific area.
RGB Color: Creates RGB colors and outputs them in various formats (INT, HEX).
ComfyUI_yanc Models
Currently, ComfyUI_yanc does not include different models. It focuses on providing a versatile set of nodes that can be used within the existing ComfyUI framework.
What's New with ComfyUI_yanc
Latest Updates
2024/06/10: Added RGBColor, GetMeanColor, and NormalMapLighting nodes.
2024/05/27: Added LightSourceMask and mask support for the rescale image node.
2024/05/17: Added NIKSampler and "Noise From Image" nodes.
2024/04/14: Added the "Resolution by Aspect Ratio" node.
2024/04/08: Added an option to warn the user if files will get overwritten and added a "Scale to Image Side" node.
2024/04/04: Added nodes: "Int to Text", "Int", "Float to Int".
2024/04/03: First Commit.
These updates bring new functionalities and improvements, making the extension more versatile and user-friendly for AI artists.
Troubleshooting ComfyUI_yanc
Common Issues and Solutions
Images Overwriting: If your images are being overwritten, ensure that the filename_opt input is not connected or is dynamically changing.
Node Errors: If a node is not functioning as expected, double-check the input connections and parameter settings.
Loading Images: Ensure that the specified folder for loading images exists within the input directory.
Frequently Asked Questions
Q: How do I reset the index for the "Load Image From Folder" node?
A: Set the primitive connected to the "index" input back to 0.
Q: What values should I use for the "Noise From Image" node parameters?
A: For SD 1.5, a noise_resize_factor of 2 is good, while SDXL would take 3-4. Adjust other parameters based on the desired noise characteristics.
Learn More about ComfyUI_yanc
For additional resources, tutorials, and community support, you can visit the following links:
ComfyUI Discord Community
These resources provide valuable information and support to help you get the most out of ComfyUI_yanc and enhance your AI art projects.