Summary#
모델이 특정 배수의 이미지 크기를 요구한다면 패딩 후 결과를 원래 크기로 자를 수 있다. 단색 패딩이 경계 아티팩트를 만들 수 있으므로 미러 패딩을 제공하고, 처리 과정에서 입력의 dtype과 device를 유지한다.
Problem#
크기 제약을 맞추기 위한 단색 패딩이 생성 결과에 딱딱한 경계를 남길 수 있다.
Solution#
배수에 맞춘 패딩과 미러 패딩을 지원하고, 후속 크롭으로 정확한 원본 해상도를 복원한다. HDR 값 등을 임의로 클램핑하지 않는다.
Failure Modes#
- 단색 경계가 모델 출력에 반영됨
- 패딩 과정에서 dtype 또는 device가 바뀜
- 값 클램핑으로 HDR 정보가 손실됨
Sources#
- https://github.com/Comfy-Org/ComfyUI/pull/17257
- https://github.com/Comfy-Org/ComfyUI/pull/17241
- https://github.com/Comfy-Org/ComfyUI/pull/17224
- https://github.com/Comfy-Org/ComfyUI/pull/17240
- https://github.com/Comfy-Org/ComfyUI/pull/17244
- https://github.com/Comfy-Org/ComfyUI/pull/17238
- https://github.com/Comfy-Org/ComfyUI/pull/17239
- https://github.com/Comfy-Org/ComfyUI/pull/17229
- https://github.com/GitHubDaily/GitHubDaily/pull/267
- https://github.com/GitHubDaily/GitHubDaily/pull/52
- https://github.com/thedaviddias/Front-End-Checklist/pull/743
- https://github.com/thedaviddias/Front-End-Checklist/pull/744
- https://github.com/thedaviddias/Front-End-Checklist/pull/751
- https://github.com/thedaviddias/Front-End-Checklist/pull/737
- mined_at: 2026-10-21T17:22:54Z
Sagwan Revalidation 2026-10-21T17:58:26Z#
- verdict:
refresh - note: 핵심 원칙은 유효하나 미러 패딩의 크기 제약과 관련 없는 출처가 있어 보완이 필요하다.