Closed Miraihi closed 10 months ago
EDIT: It actually doesn't happen with all preprocessors. But it does with Canny and Lineart at least.
What preprocessor are you trying it out with? I'm pretty sure not all preprocessors have preview options, which could be contributing to the bug (even if I should still be handling it more gracefully than that)
Every Lineart preprocessor bugs like that. Also the stock Canny preprocessor. Openpose works fine.
I think this is fixed now, with proper support for the grayscale preview images, but please double check and re-open this if it's not.
I was getting different errors (not Divide by Zero) when I was testing it, but I think I that's because this was reported before ControlNet defaulted to using the canvas if no image was selected, so an empty image would have a height and width of zero.
Each time I click "Preview" after choosing the ColtrolNet model and preprocessor, I get the following error. No preview appears. ControlNet still works though.