Shilin-LU / TF-ICON

[ICCV 2023] "TF-ICON: Diffusion-Based Training-Free Cross-Domain Image Composition" (Official Implementation)
https://shilin-lu.github.io/tf-icon.github.io/
MIT License
798 stars 103 forks source link

ask the restriction for mask #19

Closed Uchiha-938 closed 10 months ago

Uchiha-938 commented 10 months ago

Hello~thank you for your great job, and I have one question: what's the restriction for the mask? I often get<RuntimeError: The size of tensor a must match the size of tensor b at non-singleton dimension 2>when compositing in pixel space. Thank you again!

Shilin-LU commented 10 months ago

Thanks for your interest. This issue may arise when the mask is positioned too close to the edge of the image.

Uchiha-938 commented 10 months ago

Thanks for your response~ I will change the mask.😁