<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>ComfyUI | Alessandro Zonta</title><link>https://www.alessandrozonta.net/tag/comfyui/</link><atom:link href="https://www.alessandrozonta.net/tag/comfyui/index.xml" rel="self" type="application/rss+xml"/><description>ComfyUI</description><generator>Wowchemy (https://wowchemy.com)</generator><language>en-us</language><lastBuildDate>Tue, 11 Jun 2024 00:00:00 +0000</lastBuildDate><image><url>https://www.alessandrozonta.net/media/icon_hu0b7a4cb9992c9ac0e91bd28ffd38dd00_9727_512x512_fill_lanczos_center_3.png</url><title>ComfyUI</title><link>https://www.alessandrozonta.net/tag/comfyui/</link></image><item><title>Enhancing Image Cropping with ComfyUI-CenterNode</title><link>https://www.alessandrozonta.net/post/comfyui-centernode/</link><pubDate>Tue, 11 Jun 2024 00:00:00 +0000</pubDate><guid>https://www.alessandrozonta.net/post/comfyui-centernode/</guid><description>&lt;h2 id="enhancing-image-cropping-with-comfyui-centernode">Enhancing Image Cropping with ComfyUI-CenterNode&lt;/h2>
&lt;p>The ComfyUI-CenterNode, developed by Alessandro Zonta, introduces the &amp;ldquo;Bounding Box Crop&amp;rdquo; node for precise image cropping within the ComfyUI framework. This node computes the top-left coordinates of a cropped bounding box based on user-defined input coordinates and dimensions, ensuring accurate and centered cropping.&lt;/p>
&lt;h3 id="how-it-works">How It Works&lt;/h3>
&lt;ol>
&lt;li>&lt;strong>Input Coordinates&lt;/strong>: Users provide the left, top, right, and bottom coordinates of the bounding box, along with the desired width and height of the cropped area.&lt;/li>
&lt;li>&lt;strong>Center Calculation&lt;/strong>: The node calculates the center of the cropping area, then determines the top-left coordinates for the final cropped image.&lt;/li>
&lt;li>&lt;strong>Output Coordinates&lt;/strong>: Outputs the computed coordinates for further use in image processing workflows.&lt;/li>
&lt;/ol>
&lt;h3 id="the-idea-behind-it">The Idea Behind It&lt;/h3>
&lt;p>The Bounding Box Crop node aims to simplify and enhance the process of cropping images in ComfyUI. By ensuring precise calculation of cropping coordinates, it aids in creating centered and accurately cropped images, which is crucial for various applications such as object detection, image analysis, and graphic design.&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="Example Workflow" srcset="
/post/comfyui-centernode/workflow_huff635cc472db9071bb65de6c8ef24600_328133_eb859ac0bc397256235c3f544fa66144.webp 400w,
/post/comfyui-centernode/workflow_huff635cc472db9071bb65de6c8ef24600_328133_e5e7a48e0e0191823cf2d2233b6af63a.webp 760w,
/post/comfyui-centernode/workflow_huff635cc472db9071bb65de6c8ef24600_328133_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://www.alessandrozonta.net/post/comfyui-centernode/workflow_huff635cc472db9071bb65de6c8ef24600_328133_eb859ac0bc397256235c3f544fa66144.webp"
width="760"
height="247"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;h3 id="installation">Installation&lt;/h3>
&lt;p>To integrate the Bounding Box Crop node into ComfyUI, follow these steps:&lt;/p>
&lt;ol>
&lt;li>Clone the repository into your ComfyUI custom_nodes directory:
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">git clone https://github.com/alessandrozonta/ComfyUI-CenterNode.git
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>or find the Custom Node from your ComfyUI-Manager&lt;/li>
&lt;/ol>
&lt;h3 id="conclusion">Conclusion&lt;/h3>
&lt;p>The ComfyUI-CenterNode is an essential tool for anyone needing precise and centered image cropping. By accurately computing the necessary coordinates, it enhances the efficiency and accuracy of image processing tasks, making it a valuable addition to the ComfyUI toolkit.&lt;/p>
&lt;p>For more details, visit the &lt;a href="https://github.com/alessandrozonta/ComfyUI-CenterNode" target="_blank" rel="noopener">GitHub page&lt;/a>.&lt;/p></description></item><item><title>Introducing the LayersSaver Node for ComfyUI</title><link>https://www.alessandrozonta.net/post/comfyui-layerssaver/</link><pubDate>Tue, 11 Jun 2024 00:00:00 +0000</pubDate><guid>https://www.alessandrozonta.net/post/comfyui-layerssaver/</guid><description>&lt;h2 id="introducing-the-layerssaver-node-for-comfyui">Introducing the LayersSaver Node for ComfyUI&lt;/h2>
&lt;p>The LayersSaver nodes, developed by Alessandro Zonta, is a powerful custom addition to ComfyUI, designed to enhance image manipulation workflows. Two nodes are available on the packadge. The first node allows users to create and manage image layers based on input masks, saving the results into a PSD file. The second node does a similar thing but only from th einput images. It can receive a batched image and every image in the batch is going to be saved as a separate layer on the ouput PSD. This functionality is particularly valuable for graphic design, image processing, and other tasks requiring layer-based image manipulation.&lt;/p>
&lt;h3 id="how-it-works">How It Works&lt;/h3>
&lt;ol>
&lt;li>&lt;strong>Input Image Handling&lt;/strong>: The first node processes a single input image, ensuring the removal of the batch dimension for simplicity. The second nodes processes a infinite bach dimension input image.&lt;/li>
&lt;li>&lt;strong>Mask Application&lt;/strong>: Multiple masks are applied to the input image, creating distinct layers for each masked region.&lt;/li>
&lt;li>&lt;strong>Original Image Inclusion&lt;/strong>: Users can optionally include the original image as a separate layer in the PSD file.&lt;/li>
&lt;li>&lt;strong>Alpha Channel Management&lt;/strong>: Ensures the input image includes an alpha channel, facilitating transparency.&lt;/li>
&lt;li>&lt;strong>Dynamic PSD Naming&lt;/strong>: If a filename isn&amp;rsquo;t specified, the node generates a unique PSD filename based on the current timestamp.&lt;/li>
&lt;li>&lt;strong>PSD File Creation&lt;/strong>: The final image layers are saved into a PSD file, which can then be used in various image editing software.&lt;/li>
&lt;/ol>
&lt;h3 id="the-idea-behind-it">The Idea Behind It&lt;/h3>
&lt;p>The idea behind the LayersSaver node is to streamline the process of creating and managing image layers within ComfyUI. By allowing users to segment images into separate layers based on masks, it provides a high degree of flexibility and control over image editing. This is especially useful in professional graphic design and advanced image processing tasks, where layer manipulation is crucial.&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="Example Workflow" srcset="
/post/comfyui-layerssaver/workflow_hu8ca26801d43b21801df4a3c696022995_581075_cc3537b08c0cc878489310fb3f1283b1.webp 400w,
/post/comfyui-layerssaver/workflow_hu8ca26801d43b21801df4a3c696022995_581075_2c0a0c72f84d16ac3fce070f322a13d9.webp 760w,
/post/comfyui-layerssaver/workflow_hu8ca26801d43b21801df4a3c696022995_581075_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://www.alessandrozonta.net/post/comfyui-layerssaver/workflow_hu8ca26801d43b21801df4a3c696022995_581075_cc3537b08c0cc878489310fb3f1283b1.webp"
width="760"
height="327"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="Example Workflow" srcset="
/post/comfyui-layerssaver/workflow%281%29_hud1088d815a437de9a51564dbaf4250c1_567139_eea22798eb5922e5fcbfb0f053612916.webp 400w,
/post/comfyui-layerssaver/workflow%281%29_hud1088d815a437de9a51564dbaf4250c1_567139_e70ad81bb53815e444de12f6273f6622.webp 760w,
/post/comfyui-layerssaver/workflow%281%29_hud1088d815a437de9a51564dbaf4250c1_567139_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://www.alessandrozonta.net/post/comfyui-layerssaver/workflow%281%29_hud1088d815a437de9a51564dbaf4250c1_567139_eea22798eb5922e5fcbfb0f053612916.webp"
width="760"
height="374"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;h3 id="installation">Installation&lt;/h3>
&lt;p>To integrate the LayersSaver node into ComfyUI, follow these steps:&lt;/p>
&lt;ol>
&lt;li>
&lt;p>Clone the repository into your ComfyUI custom_nodes directory:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">git clone https://github.com/alessandrozonta/ComfyUI-Layers
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>or find the Custom Node from your ComfyUI-Manager&lt;/p>
&lt;/li>
&lt;li>
&lt;p>Install the necessary libraries by running:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">pip install pytoshop -I --no-cache-dir
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">pip install psd-tools --no-deps
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>Restart ComfyUI to load the new node.&lt;/p>
&lt;/li>
&lt;/ol>
&lt;h3 id="conclusion">Conclusion&lt;/h3>
&lt;p>The LayersSaver node is an invaluable tool for anyone involved in graphic design or image processing. By providing a streamlined method for creating and managing image layers, it enhances the functionality of ComfyUI, making complex image editing tasks more efficient and manageable. Whether you&amp;rsquo;re a professional designer or a hobbyist, this node offers the flexibility and power needed to take your projects to the next level.&lt;/p>
&lt;p>For more details, visit the &lt;a href="https://github.com/alessandrozonta/ComfyUI-Layers" target="_blank" rel="noopener">GitHub page&lt;/a>.&lt;/p></description></item><item><title>Unleashing the Power of Human Pose Estimation with ComfyUI-OpenPose</title><link>https://www.alessandrozonta.net/post/comfyui-openpose/</link><pubDate>Tue, 11 Jun 2024 00:00:00 +0000</pubDate><guid>https://www.alessandrozonta.net/post/comfyui-openpose/</guid><description>&lt;h2 id="unleashing-the-power-of-human-pose-estimation-with-comfyui-openpose">Unleashing the Power of Human Pose Estimation with ComfyUI-OpenPose&lt;/h2>
&lt;p>The ComfyUI-OpenPose node, created by Alessandro Zonta, brings advanced human pose estimation capabilities to the ComfyUI ecosystem. This custom node leverages OpenPose models to extract and visualize human pose keypoints from input images, enhancing image processing and analysis workflows.&lt;/p>
&lt;h3 id="how-it-works">How It Works&lt;/h3>
&lt;ol>
&lt;li>&lt;strong>Model Integration&lt;/strong>: The node downloads OpenPose models from the Hugging Face Hub and saves them locally.&lt;/li>
&lt;li>&lt;strong>Image Processing&lt;/strong>: Processes a single input image to extract human pose keypoints, ensuring batch processing is not required.&lt;/li>
&lt;li>&lt;strong>Visualization&lt;/strong>: Draws keypoints and limbs on the original image with adjustable transparency, providing clear visual representation.&lt;/li>
&lt;li>&lt;strong>Alternative Outputs&lt;/strong>: Generates an image with keypoints on a black background and exports keypoints data in JSON format.&lt;/li>
&lt;li>&lt;strong>Model Options&lt;/strong>: Users can choose between two OpenPose representations: COCO and BODY_25.&lt;/li>
&lt;/ol>
&lt;h3 id="the-idea-behind-it">The Idea Behind It&lt;/h3>
&lt;p>The primary goal of the ComfyUI-OpenPose node is to simplify and enhance human pose estimation within the ComfyUI framework. By integrating OpenPose models, this node allows for precise keypoint extraction and visualization, making it invaluable for applications in computer vision, animation, sports analysis, and more.&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="Example Workflow" srcset="
/post/comfyui-openpose/body_25_hu6246aac3495108dd144f70334bf00404_422765_c4b593ab6133fd5ca8d193e3de7d9bd2.webp 400w,
/post/comfyui-openpose/body_25_hu6246aac3495108dd144f70334bf00404_422765_a039e3b0d825363de100b5295dc904fb.webp 760w,
/post/comfyui-openpose/body_25_hu6246aac3495108dd144f70334bf00404_422765_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://www.alessandrozonta.net/post/comfyui-openpose/body_25_hu6246aac3495108dd144f70334bf00404_422765_c4b593ab6133fd5ca8d193e3de7d9bd2.webp"
width="760"
height="424"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="Example Workflow" srcset="
/post/comfyui-openpose/coco_huc7efca75ec83526110807b400f2bffa9_361350_e064174c730559675e8483d59b36aeb4.webp 400w,
/post/comfyui-openpose/coco_huc7efca75ec83526110807b400f2bffa9_361350_bed20e2116ada303703b8dfc820a0113.webp 760w,
/post/comfyui-openpose/coco_huc7efca75ec83526110807b400f2bffa9_361350_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="https://www.alessandrozonta.net/post/comfyui-openpose/coco_huc7efca75ec83526110807b400f2bffa9_361350_e064174c730559675e8483d59b36aeb4.webp"
width="760"
height="418"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;h3 id="installation">Installation&lt;/h3>
&lt;p>To integrate the OpenPose node into ComfyUI, follow these steps:&lt;/p>
&lt;ol>
&lt;li>
&lt;p>Clone the repository into your ComfyUI custom_nodes directory:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">git clone https://github.com/alessandrozonta/ComfyUI-OpenPose.git
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>or find the Custom Node from your ComfyUI-Manager&lt;/p>
&lt;/li>
&lt;li>
&lt;p>Install the necessary libraries by running:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">pip install -r requirements.txt
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>or&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">python install.py
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>Restart ComfyUI to load the new node.&lt;/p>
&lt;/li>
&lt;/ol>
&lt;h3 id="conclusion">Conclusion&lt;/h3>
&lt;p>The ComfyUI-OpenPose node is a powerful addition for anyone looking to incorporate human pose estimation into their image processing tasks. By providing robust keypoint extraction and visualization capabilities, it significantly enhances the functionality of ComfyUI, making it a valuable tool for both professionals and enthusiasts in various fields.&lt;/p>
&lt;p>For more details, visit the &lt;a href="https://github.com/alessandrozonta/ComfyUI-OpenPose" target="_blank" rel="noopener">GitHub page&lt;/a>.&lt;/p></description></item></channel></rss>