ComfyUI-Universal-Latent

ComfyUI-Universal-Latent
★ 1

空latent长宽比支持高分辨率批量生成
用于生成可自定义分辨率与长宽比的空latent张量,支持高至1536×1536、锁定长宽、批量输出与灵活下采样,提升ComfyUI处理效率。
💡 在ComfyUI按任意长宽比生成初始latent张量以进行批量渲染。
🍴 1 Forks💻 Python🔄 2025-12-10
📦
网盘下载
复制链接后前往夸克网盘下载
https://pan.quark.cn/s/9d76119b2ef2
📄 README

🌌 Universal Latent Node for ComfyUI

An enhanced empty latent node for ComfyUI with extended aspect ratio support and optimized performance. Compatible with various models including SD3.5 and SDXL.

✨ Features

  • Wide Range of Aspect Ratios – Supports square, portrait, landscape, and custom aspect ratios
  • High Resolution Support – Up to 1536×1536 resolution
  • Aspect Ratio Lock – Lock width or height while adjusting the other dimension
  • Flexible Downsampling – Auto or manual selection of downsampling factor
  • Batch Processing – Generate multiple latent tensors at once
  • Optimized Performance – Efficient tensor operations for faster processing
  • 🚀 Installation

  • Clone this repository into your ComfyUI custom_nodes directory:
  • “`

    cd ComfyUI/custom_nodes

    git clone https://github.com/theshubzworld/ComfyUI-Universal-Latent.git

    “`

  • Restart ComfyUI
  • 🎨 Usage

  • Find the node in the node browser as “🌌✨ Universal Latent (Enhanced) 🎨⚡”
  • Select your desired resolution from the dropdown
  • Adjust batch size and other parameters as needed
  • Connect the output to your model’s latent input
  • ⚙️ Parameters

  • Resolution: Predefined resolutions with common aspect ratios
  • Batch Size: Number of latent tensors to generate
  • Width/Height Override: Manually set dimensions
  • Aspect Ratio Lock: Lock width or height while adjusting the other dimension
  • Latent Channels: Number of channels in latent space (4 for SD, 16 for Flux)
  • Downsample Factor: Auto (8) or manual selection (4 or 8)
  • Invert Ratios: Swap width and height dimensions
  • 🤝 Contributing

    Contributions are welcome! Please feel free to submit a Pull Request.

    📝 License

    This project is licensed under the MIT License – see the LICENSE file for details.