mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2025-12-09 12:54:40 +08:00
When image and mask have different input dimensions and no downscaling is needed (scaling_factor >= 1), the mask was not being resized to match the image dimensions before padding, causing mismatched output sizes. Now ensures mask dimensions match image dimensions using F.interpolate with nearest-neighbor interpolation in both scaling branches. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>