From 5b35c13510a5343f57b6349255cb6bc24b32af41 Mon Sep 17 00:00:00 2001 From: kijai Date: Fri, 3 Jul 2026 14:47:32 +0300 Subject: [PATCH] use lanczos for mask too like upstream --- comfy_extras/nodes_trellis2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comfy_extras/nodes_trellis2.py b/comfy_extras/nodes_trellis2.py index 7798526e5..eca319e8e 100644 --- a/comfy_extras/nodes_trellis2.py +++ b/comfy_extras/nodes_trellis2.py @@ -674,8 +674,8 @@ def _crop_image_with_mask(item_image, item_mask, max_image_size=1024, pad_factor if max(H, W) > max_image_size: scale = max_image_size / max(H, W) new_w, new_h = int(W * scale), int(H * scale) - img = comfy.utils.common_upscale(img, new_w, new_h, "lanczos", "disabled") - mask = comfy.utils.common_upscale(mask, new_w, new_h, "nearest-exact", "disabled") + img = comfy.utils.common_upscale(img, new_w, new_h, "lanczos", "disabled") + mask = comfy.utils.common_upscale(mask, new_w, new_h, "lanczos", "disabled") H, W = new_h, new_w scene_size = (W, H)