shiimizu / ComfyUI-TiledDiffusion

Tiled Diffusion, MultiDiffusion, Mixture of Diffusers, and optimized VAE
294 stars 21 forks source link

idea / feature request: for multiple scaling stages - possible to stay in latent space? #7

Closed EricRollei closed 8 months ago

EricRollei commented 8 months ago

Thank you for your work, these are great upscaling nodes

I found that using two stages of 2x worked better than one pass with 4x upsampling. Then I found that using mixture of diffusers first at 2x followed by multi-diffusion at 2x gave improved details. At least that was my experience so far.

However, in staged use, one must decode, then encode the latent which costs time and perhaps some quality loss in converting from latent to pixels space multiple times. Is it possible to go from one stage to the next staying in the latent space? Perhaps if the tile size is kept the same?

Even better would be an iterative cycle setting - to allow users to set the final magnification and have the nodes run as many cycles as needed.

49RpK5dY commented 8 months ago

You don't need to leave the latent space until the very end. Example workflow: workflow

You might have to though since latent upscale requires pretty high denoise and will produce some serious artifacts due to prompt applying to each tile. So your choices are to use pixel upscale with lower denoise or apply controlnet which would also need a decoded image.

EricRollei commented 8 months ago

Thanks for the reply and info. It was my mistake since I overlooked the upscale between stages. I wonder what happens when you do a mixture of diffusers and a multi-diffusion on the same latent? Does it improve things? Fix tile seams? But for the upscale - It's been a while since I've compared upscaling in latent space to upscaling in pixel space but my memory is that pixel space is better, but I may try it again with your tile nodes. Pixel space allows one to use the upscale models.