# ComfyUI-Universal-Latent **Repository Path**: sjfaa/ComfyUI-Universal-Latent ## Basic Information - **Project Name**: ComfyUI-Universal-Latent - **Description**: ComfyUI插件:ComfyUI-Universal-Latent. B站--走在路上跑同步. 感谢原作者theshubzworld贡献,请在github上给他们点个star吧! - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-01-28 - **Last Updated**: 2026-01-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## 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 1. Clone this repository into your ComfyUI `custom_nodes` directory: ``` cd ComfyUI/custom_nodes git clone https://github.com/theshubzworld/ComfyUI-Universal-Latent.git ``` 2. Restart ComfyUI ## 🎨 Usage 1. Find the node in the node browser as "🌌✨ Universal Latent (Enhanced) 🎨⚡" 2. Select your desired resolution from the dropdown 3. Adjust batch size and other parameters as needed 4. 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](LICENSE) file for details.