ComfyUI-VisualArea-Nodes

ComfyUI-VisualArea-Nodes
★ 77

区域条件化可视化预览节点扩展位置与缩放
为ComfyUI提供一组管理区域条件化的自定义节点,支持可视化定义影响范围并预览位置与缩放,便于精确控制。
💡 在图像生成流程中可视化并精确设置影响区域。
🍴 4 Forks💻 JavaScript🔄 2024-11-05
📦
网盘下载
复制链接后前往夸克网盘下载
https://pan.quark.cn/s/e98a62d17551
📄 README

ComfyUI Visual Area Nodes

Overview

This extension adds custom nodes to ComfyUI that offer enhanced control over area-based conditioning. With these nodes, you can precisely manage areas of influence by visually defining their scope. The extension also includes a compact visual panel for previewing how these areas will be positioned and scaled within the image.

The development of these nodes was heavily inspired by Davemane42’s Custom Nodes, with the goal of making those nodes accessible to everyone once again.

A special thanks to the cozy_ex_dynamic repository, which provided invaluable guidance on creating nodes with dynamic inputs.

Installation

  • Enter the custom nodes directory for ComfyUI (found in the program’s installation directory):
  • “`bash

    cd custom_nodes

    “`

  • Clone the repository:
  • “`bash

    git clone https://github.com/Fuwuffyi/ComfyUI-VisualArea-Nodes.git

    “`

  • Restart ComfyUI
  • Added Nodes

    Visual Area Prompt

    A node that allows for area prompting with a graph displaying the areas affected by the conditionings.

    There are three conditioning inputs when used:

  • area_conditioning_: This is where all the different area conditionings are going to connect. Every time the user connects one, a new one is created.
  • The rest of the widgets within the node are used to properly define the areas of each of the area conditionings. The id widget is used to choose which area to affect, while the other widgets change the area’s properties (position and dimensions)

    There are also two outputs:

  • area_conditioning: This is what all the combined conditionings and areas will result in.
  • combined_conditioning: This is all the provided conditionings in a single conditioning.
  • Visual Area Prompt “Advanced”

    Same as Visual Area Prompt node, with a couple of extra inputs to influence areas in more ways.

  • global_conditioning: It’s a conditioning that will be added onto all of the other conditionings running through the node.
  • all_area_conditioning: It’s a separate conditioning, that applies to the whole image, taking into count all of the other conditionings as well.
  • There also is a merge_global toggle, to apply the global_conditioning to all areas, meaning it gets applied once for the whole image, and once for each area.