Open whydna opened 1 year ago
I was able to narrow it down to be related to the depth_image
property.
This is the image I'm using - it fails in the demo as well:
@anotherjesse
Here is a fix (tested on my own fork) - the depth preprocess requires images to have dimensions divisible by 64px.
See: https://github.com/patrickvonplaten/controlnet_aux/issues/2
Any chance we can get this deployed to replicate?
def depth_preprocess(self, img):
W, H = img.size
W_new = int(np.round(W/64) * 64)
H_new = int(np.round(H/64) * 64)
img = img.resize((W_new, H_new))
return self.midas(img)
Getting the following error:
when running w/ params: