I get error :(422, '{"error":"HTTPException","detail":"No image selected","body":"","errors":""}')
I fix this by this change:
controlnet_images->controlnet_input_images.
def controlnet_detect(
self, images, module="none", processor_res=512, threshold_a=64, threshold_b=64
):
images = [b64_img(x) for x in images]
payload = {
"controlnet_module": module,
"controlnet_input_images": images, ##"controlnet_images": images,
"controlnet_processor_res": processor_res,
"controlnet_threshold_a": threshold_a,
"controlnet_threshold_b": threshold_b,
}
r = self.custom_post("controlnet/detect", payload=payload)
return r
PS:this used to be fine, so I guess the controlnet extension change their api? Which is weired, such break change is annoying.
I get error :(422, '{"error":"HTTPException","detail":"No image selected","body":"","errors":""}')
I fix this by this change:
controlnet_images->controlnet_input_images.
def controlnet_detect(
self, images, module="none", processor_res=512, threshold_a=64, threshold_b=64
):
images = [b64_img(x) for x in images]
payload = {
"controlnet_module": module,
"controlnet_input_images": images, ##"controlnet_images": images,
"controlnet_processor_res": processor_res,
"controlnet_threshold_a": threshold_a,
"controlnet_threshold_b": threshold_b,
}
r = self.custom_post("controlnet/detect", payload=payload)
return r
PS:this used to be fine, so I guess the controlnet extension change their api? Which is weired, such break change is annoying.