mrhan1993 / Fooocus-API

FastAPI powered API for Fooocus
GNU General Public License v3.0
502 stars 131 forks source link

Should it be possible to use V1 vary/upscale endpoint with mixing_image_prompt_and_vary_upscale? #320

Open davefojtik opened 1 month ago

davefojtik commented 1 month ago

One of our RunPod users told us that he could not make /v1/generation/image-upscale-vary work with FaceSwap via the mixing_image_prompt_and_vary_upscale. I checked and our RunPod handler passes both inpaint_image and cn_imageX files correctly but the V1 seems to ignore the cn_images, while it works on V2 just fine. I quickly went through Fooocus-API source code and it might be true that there's no cn_image check for the ImgUpscaleOrVaryRequest. Before I dive into more investigation and fixes, I wanted to ask if this should be even possible, or if the user is supposed to simply use something else (like the V2 as I proposed), to face-swap and upscale an image at the same time.

Thanks!