SDXL Img2img + MoD Tile Upscaler🤗

Convert a lit 3D animatic frame to a photoreal still with ControlNet Union img2img (default), then optionally run the 📜 MoD tiled upscaler. 💻 GitHub Code 🚀 Controlnet Union Power! Check out the model: Controlnet Union 🎨 RealVisXL V5.0 for Stunning Visuals! Explore it here: RealVisXL
Mode
Users are getting the 'ZeroGPU worker error' because the execution time on Zero GPU for non-Pro users is 120s. I reduced the number of steps to 18 in the LCM examples to avoid this error, however this will result in low quality in the final result. It is better to run this application locally or duplicate the environment for a paid account. If you are not a Pro account, run the LCM sampler examples on the RealVisXL_V5.0_Lightning model. For best results use the UniPC sampler and RealVisXL_V5.0 model examples.

Modes

  • Img2img (default): photoreal pass at ~1408–1536 long side, with optional depth, style IP-Adapter, and color match.
  • Upscale: the original MoD tiled ControlNet upscaler (same behavior as before).
  • Img2img → Upscale: img2img first, then the result is automatically fed into MoD upscale (same depth map, resized).

Method

This project proposes an enhanced image upscaling method that leverages ControlNet Tile and Mixture-of-Diffusers techniques, integrating tile diffusion directly into the denoising process within the latent space.

Let's compare our method with conventional ControlNet Tile upscaling:

Conventional ControlNet Tile:

  • Processes tiles in pixel space, potentially leading to edge artifacts during fusion.
  • Processes each tile sequentially, increasing overall execution time (e.g., 16 tiles x 3 min = 48 min).
  • Pixel space fusion using masks (e.g., Gaussian) can result in visible seams.
  • Fixed or adaptively sized tiles and overlap can vary, causing inconsistencies.

Proposed Method (MoD ControlNet Tile Upscaler):

  • Processes tiles in latent space, enabling smoother fusion and mitigating edge artifacts.
  • Processes all tiles in parallel during denoising, drastically reducing execution time.
  • Latent space fusion with dynamically calculated weights ensures seamless transitions between tiles.
  • Tile size and overlap are dynamically adjusted based on the upscaling scale. For scales below 4x, fixed overlap maintains consistency.
Examples
Input Image Mode Model Prompt Negative Prompt (Optional) Upscale resolution HDR Effect Inference Steps Upscale denoise ControlNet Strength Gaussian Sigma Sampler Guidance Scale Max. Tile Size Tile Weighting Method

📧 Contact
If you have any questions or suggestions, feel free to send your question to contact@devaiexp.com.