ComfyUI Extension: ComfyUI-Universal-Latent
Enhanced empty latent node with extended aspect ratio support for ComfyUI
Custom Nodes (0)
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 1536x1536 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_nodesdirectory: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.