ComfyUI-LatentOrientation

ComfyUI-LatentOrientation
★ 0

潜空间处理图像旋转尺寸调整ComfyUI节点
将输入latent按常见方向旋转或缩放,便于对齐、拼接与适配模型输入,操作简单高效。
💡 在拼接或对齐多张潜空间图像前统一方向与尺寸。
🍴 1 Forks💻 Python🔄 2025-11-28
📦
网盘下载
复制链接后前往夸克网盘下载
https://pan.quark.cn/s/a9fb3a59e10c
workflow_install
📄 README

ComfyUI-LatentOrientation

A simple node for ComfyUI that rotates or resizes the input latent to common orientations.

Comfy has built-in Flip Latent and Rotate Latent (by degrees), but this is a little different.

Installation

Simply drag the image above into ComfyUI and use ComfyUI Manager » Install Missing Custom Nodes. Alternatively, clone this repo into your custom_nodes folder.

Inputs

  • samples (LATENT): The input latent to adjust.
  • orientation (CHOOSE): The adjustment logic, as defined below.
  • portrait: Rotates samples such that the height is greater than the width.
  • landscape: Rotates samples such that the width is greater than the height.
  • min square: Crops samples to equal width and height, using the smaller dimension of the two.
  • max square: Pads samples to equal width and height, using the greater dimension of the two.
  • avg square: Takes the average between width and height of samples and resizes both dimensions to this value.
  • Outputs

  • LATENT: The adjusted latent.