BlenderNeko / ComfyUI_TiledKSampler

Tiled samplers for ComfyUI
GNU General Public License v3.0
327 stars 18 forks source link

How do I use the TiledKSampler ? #23

Open UglinessInTheUI opened 11 months ago

UglinessInTheUI commented 11 months ago

I'm trying to generate one big image but I get multiple unrelated images of 512x512 inside one big image. Is it possible to render a 1920x1080 image by splitting it in 512x512 tiles ? I only have 8GB of video ram.

michaelLochlann commented 11 months ago

it sounds like what happens when denoise is set to 1.0 on a large image. try setting denoise lower if it's not the 1st sampler in the chain

UglinessInTheUI commented 11 months ago

I'm not trying to do img2img or up-scaling. I'm trying to generate one big image using txt2img but it either runs out of video memory or I get multiple unrelated images inside one big image. I guess each tile gets a different seed value and it generates different images for each tile. So far, only the Ultimate SD Upscale worked but only for img2img up-scaling.

BlenderNeko commented 11 months ago

All tiled approaches limit the spatial awareness of the sampler. So when you do txt2img with a tiling strategy that denoises tiles separately you do indeed get a series of unrelated images. If instead you pick the random strategy you will get one image but that will likely be some fever dream where things are repeated multiple times. The way this is usually used is together with an already existing image to nudge the diffusion proces in the right direction.

On Fri, 27 Oct 2023, 06:11 UglinessInTheUI, @.***> wrote:

I'm not trying to do img2img or up-scaling. I'm trying to generate one big image using txt2img but it either runs out of video memory or I get multiple unrelated images inside one big image. I guess each tile gets a different seed value and it generates different images for each tile. So far, only the Ultimate SD Upscale worked but only for img2img up-scaling.

— Reply to this email directly, view it on GitHub https://github.com/BlenderNeko/ComfyUI_TiledKSampler/issues/23#issuecomment-1782260771, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6IXUUVOSIR7WL3HSTIK6ITYBMX5JAVCNFSM6AAAAAA6KBVAKKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBSGI3DANZXGE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

UglinessInTheUI commented 11 months ago

These are some of the results I've got so far from txt2img. I'll have to try the img2img.

ComfyUI_temp_ttpcu_00001_ ComfyUI_temp_ttpcu_00002_ ComfyUI_temp_ttpcu_00003_