adetailer icon indicating copy to clipboard operation
adetailer copied to clipboard

When using alwayson_scripts controlnet and After Detailer together, the API does not return the ControlNet processed image

Open entmike opened this issue 1 year ago • 4 comments

When using alwayson_scripts controlnet and After Detailer together, the API does not return the ControlNet processed image. The final image returns, however the canny/depth/pose reference image is not returned.

EDIT: I might have answered my own question, I see additional settings in the A1111 Settings:

  • ad_save_previews
  • ad_save_images_before

I'll see if these change the expected behavior.

EDIT 2: Nope, unfortunately the API still only returns the final image.

entmike avatar May 08 '23 22:05 entmike

Well, do you have the same problem when applying controlnet alone?

Bing-su avatar May 08 '23 23:05 Bing-su

I've just added an option to run only selected scripts.

Bing-su avatar May 09 '23 08:05 Bing-su

Well, do you have the same problem when applying controlnet alone?

No, if I run without After Detailer, I get the processed CN image (depth/canny/pose) and the final generated image in the response payload from the API call.

entmike avatar May 09 '23 12:05 entmike

I've just added an option to run only selected scripts.

Hmm, I think that I might not be explaining my problem clearly, so I will post a complete example API call later today, but basically I was After Detailer to run along with the controlnet script (and this works GREAT!) but I still wish to have the ControlNet processed image included (which does when i run controlnet by itself, it returns an array of 2 images - the processed canny/depth/pose reference image and the final output image.)

Thanks again for all the helpful replies and I'll get a better example posted if that helps.

entmike avatar May 09 '23 12:05 entmike