TiledKSamplerProvider
A tiled sampler for TwoSamplersForMask and friends
- basic_pipe
- KSAMPLER
TwoSamplersForMask and TwoAdvancedSamplersForMask need their sampler inputs as a connectable KSAMPLER object, not a sampler_name dropdown string - and by default the only way to build one is KSamplerProvider, which wraps a plain KSampler. TiledKSamplerProvider is the alternative: it wraps ComfyUI_TiledKSampler instead, so the sampler you plug into a two-samplers node is tiled - useful when the region you're sampling (or the whole canvas) is large enough that a plain KSampler pass would blow your VRAM budget. Per the README, it's "a wrapper that provides KSAMPLER," built specifically so ComfyUI_TiledKSampler's tiling can slot into places that expect the pack's KSAMPLER type.
This node needs BlenderNeko's ComfyUI_TiledKSampler installed separately - the same dependency PixelTiledKSampleUpscalerProvider has, since both wrap the same underlying tiled sampler.
How it works
It bundles model/clip/vae/positive/negative - via a basic_pipe - with the usual sampling controls and the Tiled KSampler's own tile_width/tile_height/tiling_strategy, and produces a KSAMPLER object. Whatever downstream node actually calls that KSAMPLER - TwoSamplersForMask, TwoAdvancedSamplersForMask, TwoSamplersForMaskUpscalerProvider - runs it as its sampling step, tiled, without needing to know or care that it's tiled rather than a plain KSampler underneath.
The inputs and outputs that matter
basic_pipe(required) - model/clip/vae/positive/negative, bundled.seed/steps/cfg/sampler_name/scheduler/denoise- the usual sampling controls, applied whenever thisKSAMPLERis invoked.tile_width/tile_height(default 512, step 64) - tile size for the internal sampling. 512 is a sane SD 1.5/SDXL-era default.tiling_strategy(random/padded/simple) - how seams between tiles are handled across steps.randomdenoises gradually while shuffling tile positions (best at hiding seams);paddedgives each tile static context instead (no per-step overhead);simpleis a plain static grid (fastest, most seam-prone).
Output is a single KSAMPLER - it doesn't sample anything by itself. Plug it into base_sampler/mask_sampler on TwoSamplersForMask, or wherever else the pack expects a KSAMPLER type.
How to install it
Via ComfyUI Manager: search ComfyUI Impact Pack, install, restart. Manually:
cd ComfyUI/custom_nodes
git clone https://github.com/ltdrdata/ComfyUI-Impact-Pack comfyui-impact-pack
cd comfyui-impact-pack
python -m pip install -r requirements.txt # ComfyUI's python; python_embeded on portable
then restart. Also install BlenderNeko/ComfyUI_TiledKSampler - search "Tiled sampling for ComfyUI" in Manager, or clone it manually. This node cannot function without it.
Common issues & troubleshooting
Node missing or errors. ComfyUI_TiledKSampler isn't installed - check that first, it's a separate pack from Impact Pack.
Nothing happens when this node runs alone. Expected - it only builds a KSAMPLER object. It has to feed into something that actually samples with it, like TwoSamplersForMask.
Seams visible where tiles meet. Switch tiling_strategy to random if you're on simple, or increase tile size if your regions are small relative to the detail you're trying to preserve.
Do you need the tiled version over plain KSamplerProvider? Only if you're hitting VRAM limits with a plain KSampler in this slot - say, sampling a large masked region inside TwoSamplersForMask. If a regular KSampler fits fine, KSamplerProvider is simpler and has no extra dependency.
Inputs (10)
| Name | Type | Default | Description |
|---|---|---|---|
| seed | INT | 00–18446744073709550000 | Random seed to use for generating CPU noise for sampling. |
| steps | INT | 201–10000 | total sampling steps |
| cfg | FLOAT | 8.000–100 | classifier free guidance value |
| sampler_name | COMBO | sampler | |
| scheduler | COMBO | noise schedule | |
| denoise | FLOAT | 1.000–1 | The amount of noise to remove. This amount is the noise added at the start, and the higher it is, the more the input latent will be modified before being returned. |
| tile_width | INT | 512320–16384 | Sets the width of the tile to be used in TiledKSampler. |
| tile_height | INT | 512320–16384 | Sets the height of the tile to be used in TiledKSampler. |
| tiling_strategy | COMBO | Sets the tiling strategy for TiledKSampler. | |
| basic_pipe | BASIC_PIPE | basic_pipe input for sampling |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| KSAMPLER | KSAMPLER | sampler wrapper. (Can be used when generating a regional_prompt.) |