Open nykwil opened 8 months ago
Have a fix for the reason this occurred after torch update.
It does run but the behavior is not completely as expected. Cropped image is not centered on mask, and sometimes does not even contain the masked area.
It does run but the behavior is not completely as expected. Cropped image is not centered on mask, and sometimes does not even contain the masked area.
The bug is the extra column in nonzero, the change to the while loop is just better style so you don't get infinite loops when you get results you aren't expecting. Those new cases should never run when nonzero is working properly.
Fixed a bug with the bounded mask return which also needs to have the new column if you are using the newer comfy version.
Added a padding feature.
Fixed another bug if there's another mask format improved min sizes.
Also put a gitignore.