Repository navigation
Add Pad Image node with mirror padding and pad to multiple - #17224
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the
Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📜 Recent review details
📝 Walkthrough
Priority: ➖ Normal Merge Risk: ⚪ Minimal · up to
|
5d90403 to
c22e4f4
Compare
Models like LTX need width/height to be multiples of 32. Padding then cropping back keeps the exact resolution, but the core pad nodes only pad with a solid color, which models turn into hard edges. Mirror padding works much better.
Adds a
Pad Imagenode (PadImageNode) as agreed in :padding_type: pad dimensions, pad by multiplier, pad to multiplepadding_style: color (with feathering), mirror imageKeeps the input dtype and device, with no clamping, so HDR values pass through. Existing pad nodes are unchanged.
Tests:
tests-unit/comfy_extras_test/pad_image_test.py, plus manual testing in the frontend.