1 Star 0 Fork 0

ComfyUI CustomNodes Clone/ComfyUI_TiledKSampler

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
GPL-3.0

Tiled sampling for ComfyUI

panorama of the ocean, sailboats and large moody clouds

this repo contains a tiled sampler for ComfyUI. It allows for denoising larger images by splitting it up into smaller tiles and denoising these. It tries to minimize any seams for showing up in the end result by gradually denoising all tiles one step at the time and randomizing tile positions for every step.

settings

The tiled samplers comes with some additional settings to further control it's behavior:

  • tile_width: the width of the tiles.
  • tile_height: the height of the tiles.
  • tiling_strategy: how to do the tiling

Tiling strategies

random:

The random tiling strategy aims to reduce the presence of seams as much as possible by slowly denoising the entire image step by step, randomizing the tile positions for each step. It does this by alternating between horizontal and vertical brick patterns, randomly offsetting the pattern each time. As the number of steps grows to infinity the strength of seams shrinks to zero. Although this random offset eliminates seams, it comes at the cost of additional overhead per step and makes this strategy incompatible with uni samplers.

visual explanation

gif showing of the random brick tiling

example seamless image

This tiling strategy is exceptionally good in hiding seams, even when starting off from complete noise, repetitions are visible but seams are not.

gif showing of the random brick tiling

random strict:

One downside of random is that it can unfavorably crop border tiles, random strict uses masking to ensure no border tiles have to be cropped. This tiling strategy does not play nice with the SDE sampler.

padded:

The padded tiling strategy tries to reduce seams by giving each tile more context of its surroundings through padding. It does this by further dividing each tile into 9 smaller tiles, which are denoised in such a way that a tile is always surrounded by static contex during denoising. This strategy is more prone to seams but because the location of the tiles is static, this strategy is compatible with uni samplers and has no overhead between steps. However the padding makes it so that up to 4 times as many tiles have to be denoised.

visual explanation

gif showing of padded tiling

simple

The simple tiling strategy divides the image into a static grid of tiles and denoises these one by one.

roadmap:

  • latent masks
  • image wide control nets
  • T2I adaptors
  • tile wide control nets and T2I adaptors (e.g. style models)
  • area conditioning
  • area mask conditioning
  • GLIGEN

空文件

简介

ComfyUI_TiledKSampler 展开 收起
README
GPL-3.0
取消

发行版

暂无发行版

贡献者 (2)

全部

语言

近期动态

1年多前同步了仓库
1年多前推送了新的 12月第三周稳定版 标签
1年多前推送了新的 12月第二周稳定版 标签
1年多前推送了新的 12月第一周稳定版 标签
1年多前推送了新的 11月第四周稳定版 标签
加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/custom_nodes_clone/ComfyUI_TiledKSampler.git
git@gitee.com:custom_nodes_clone/ComfyUI_TiledKSampler.git
custom_nodes_clone
ComfyUI_TiledKSampler
ComfyUI_TiledKSampler
master

搜索帮助