Fix some custom nodes.

This commit is contained in:
comfyanonymous 2024-11-10 22:41:00 -05:00
parent bdeb1c171c
commit 8a5281006f
1 changed files with 1 additions and 1 deletions

View File

@ -298,7 +298,7 @@ class VAEDecodeTiled:
CATEGORY = "_for_testing" CATEGORY = "_for_testing"
def decode(self, vae, samples, tile_size, overlap): def decode(self, vae, samples, tile_size, overlap=64):
if tile_size < overlap * 4: if tile_size < overlap * 4:
overlap = tile_size // 4 overlap = tile_size // 4
images = vae.decode_tiled(samples["samples"], tile_x=tile_size // 8, tile_y=tile_size // 8, overlap=overlap // 8) images = vae.decode_tiled(samples["samples"], tile_x=tile_size // 8, tile_y=tile_size // 8, overlap=overlap // 8)