Install this extension via the ComfyUI Manager by searching
for Tiled Diffusion & VAE for ComfyUI
1. Click the Manager button in the main menu
2. Select Custom Nodes Manager button
3. Enter Tiled Diffusion & VAE for ComfyUI in the search bar
After installation, click the Restart button to
restart ComfyUI. Then, manually
refresh your browser to clear the cache and access
the updated list of nodes.
Visit
ComfyUI Online
for ready-to-use ComfyUI environment
Tiled Diffusion & VAE for ComfyUI allows large image drawing and upscaling with limited VRAM using advanced diffusion tiling algorithms, Mixture of Diffusers and MultiDiffusion, along with pkuliyi2015's Tiled VAE algorithm.
Tiled Diffusion & VAE for ComfyUI Introduction
ComfyUI-TiledDiffusion is an extension designed to help AI artists generate and upscale large images efficiently, even with limited VRAM (Video RAM). This extension leverages advanced tiling algorithms to break down large images into smaller, manageable tiles, allowing for high-quality image generation and upscaling without requiring a powerful GPU. By using ComfyUI-TiledDiffusion, you can create ultra-large images or enhance the details of existing images, making it a valuable tool for artists working with AI-generated content.
How Tiled Diffusion & VAE for ComfyUI Works
ComfyUI-TiledDiffusion works by dividing a large image into smaller tiles, processing each tile individually, and then seamlessly stitching them back together. This approach allows the extension to handle large images without overwhelming the GPU's memory. The extension uses state-of-the-art (SOTA) diffusion tiling algorithms, such as Mixture of Diffusers and MultiDiffusion, to ensure high-quality results. Additionally, it employs a Tiled VAE (Variational Autoencoder) algorithm to further enhance the image quality during the upscaling process.
Imagine you have a large canvas that you want to paint on, but your brush is too small to cover the entire canvas at once. Instead, you divide the canvas into smaller sections and paint each section individually. Once all sections are painted, you combine them to form the complete image. ComfyUI-TiledDiffusion follows a similar principle, allowing you to create large, detailed images without needing a high-end GPU.
Tiled Diffusion & VAE for ComfyUI Features
Tiled Diffusion
SDXL Model Support: Compatible with the SDXL model for high-quality image generation.
ControlNet Support: Integrates with ControlNet for enhanced control over the image generation process.
Img2img Upscale: Allows you to upscale existing images, enhancing their details and resolution.
Ultra-Large Image Generation: Enables the creation of very large images by processing them in smaller tiles.
Tiled VAE
Tile Size: The image is split into tiles, which are then padded with additional pixels in the decoder/encoder.
Fast Mode: When enabled, this mode speeds up the processing by downsampling the original input and using precomputed parameters for each tile.
Color Fix: This option helps restore colors if the tiles are too small, ensuring consistent color quality across the entire image.
Customization Options
Tile Overlap: Adjust the overlap between tiles to ensure seamless stitching.
Tile Batch Size: Set the number of tiles to process in a batch, which can improve processing speed if your machine can handle it.
Tile Arrangement: Use the Math Expression node to specify the arrangement of tiles, allowing for precise control over the tiling process.
Tiled Diffusion & VAE for ComfyUI Models
ComfyUI-TiledDiffusion supports different models to cater to various needs:
Mixture of Diffusers: Ideal for scene composition and high-resolution image generation. This model uses multiple diffusion processes to focus on different regions of the image, ensuring smooth blending and high-quality results.
MultiDiffusion: Suitable for controlled image generation with user-provided controls, such as aspect ratio and spatial guiding signals. This model allows for versatile and controllable image generation without additional training or fine-tuning.
Troubleshooting Tiled Diffusion & VAE for ComfyUI
Common Issues and Solutions
Out of Memory Errors: If you encounter out of memory errors, try reducing the tile size or enabling the cpu_vae option to run the decoder in CPU mode.
Tile Seams Visible: If you notice visible seams between tiles, adjust the tile_overlap and denoise settings to achieve a smoother blend.
Slow Processing: Increase the tile_batch_size if your machine can handle it, which can speed up the processing time.
Frequently Asked Questions
How do I set the tile arrangement?
Use the Math Expression node to divide the image dimensions by the number of rows and columns you want, ensuring precise control over the tile arrangement.
What is the recommended tile size?
The recommended tile sizes are provided upon the creation of the node based on the available VRAM.
Learn More about Tiled Diffusion & VAE for ComfyUI
For additional resources, tutorials, and community support, check out the following links:
ComfyUI-Custom-Scripts
These resources provide detailed documentation, examples, and community forums where you can ask questions and get support from other AI artists.