Replies: 1 comment
-
|
I agree, it looks like a bug. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I was looking through and comparing what the server endpoint
/v1/images/editsdoes to what CLI does, as well as what the official ComfyUI workflows do (at least for Klein and QIE), and I wanted to ask whether I have spotted what may be an important distinction?So basically from what I can tell, current
stable-diffusion.cppserver code forcesinit_imageto be assigned and always copies it from the first reference image, which I believe in turn forces all/v1/images/editsrequests to route throughimg2img(to be specific: this is what I saw inexamples/server/routes_openai.cppwhere it looks like decoded edit images are pushed intorequest.gen_params.ref_imagesand that first one is copied intorequest.gen_params.init_image).My understanding from looking at the CLI side is that this behavior is not shared over there and looking through commit history it also looks like this was not the original behavior of the
/v1/images/editsendpoint and came along with some of the refactoring that's been going on with the server code.Now as a reference point for comparison with the official Comfy workflows it looks like this server behavior more or less matches up for QIE, but where things don't match I believe is for their Klein workflows. In this one, for example, it looks like the sampler’s
latent_imageis coming fromEmptyFlux2LatentImage, which I assume would match up more with the old behavior for the sd.cpp endpoint and what is possible through the CLI if you don't explicitly pass an init image?Now, I don't know this code base or comfy's well enough to confidently say much more than that, and I could totally be off here or maybe this isn't an important difference, so that's why I am posting this in "Discussions", but I at least wanted to throw this out in case I actually was on to something.
Anyways, thanks for all the hard work on this awesome project, I do appreciate it a ton!
Beta Was this translation helpful? Give feedback.
All reactions