第三方插件 ComfyUI-KJNodes

Image Prep For ICLora

Image Prep For ICLora 218

将参考图像按比例缩放到指定高度,并与潜在图像(latent_image)拼接在一起,拼接时可以加入中间的边框宽度(border_width)。同时也会生成一个对应的掩码,用于区分参考区域与扩展区域。Image Prep For

节点中英文对比

按当前节点配置,分别展示中文与英文节点结构。

中文节点
Image Prep For ICLora
  • reference_image
  • Latent图像
  • latent_mask
  • reference_mask
  • IMAGE
  • 遮罩
  • output_width
    output_height
    border_width
    英文节点
    Image Prep For ICLora
  • reference_image
  • latent_image
  • latent_mask
  • reference_mask
  • IMAGE
  • MASK
  • output_width
    output_height
    border_width

    参数说明

    依据当前节点关联的 `NodesItems` 数据展示输入、输出与控件说明。

    输入参数
    reference_image reference_image
    参考图像,通常用于插入角色或遮罩内容的主图。
    Latent图像 latent_image
    待拼接的 latent 区图像,作为输出图右半部分。可选,用于 ICLora 风格生成时作为右图补充。
    latent_mask latent_mask
    latent 区图像的掩码,用于构建输出掩码。如果提供,将用于构造 final mask 的右半部分。
    reference_mask reference_mask
    参考图像对应的遮罩,用于裁剪参考图区域。为 None 或全黑时将忽略,非空时将裁剪参考图。
    输出参数
    IMAGE IMAGE
    合成后的图像,包含左侧参考图、可选边界与右侧 latent 图。
    遮罩 MASK
    表示参考图与 latent 区域分隔的掩码。
    控件参数
    output_width output_width
    最终输出图像的目标宽度(像素)。
    output_height output_height
    最终输出图像的目标高度(像素)。
    border_width border_width
    参考图像与 latent 图之间的间隔边界宽度(像素)。

    详细说明

    结合节点用途、参数和调用方式,给出更完整的说明内容。

    暂无节点说明

    同类节点导航

    继续浏览同一分类下的相邻节点,方便串联学习。