mrhan1993 / Fooocus-API

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

inpaint outpatient method? #71

Closed LeapLu closed 11 months ago

LeapLu commented 11 months ago
image

hey! did inpaint outpatient method supported?I didnt find it from the api of /v2/generation/image-inpait-outpaint

konieshadow commented 11 months ago

Yes. You cound pass outpaint_selections for outpaint and input_mask for inpaint, both need param input_image. The dropdown menu in your screenshot just fill some text in textfiled on the left, which equivalent to param inpaint_additional_prompt in the api.

LeapLu commented 11 months ago

so if there is the value of inpaint_additional_prompt which means the method is Modify Content?

konieshadow commented 11 months ago

Regardless of what the value of inpaint_additional_prompt is, it will apply inpaint if you pass param input_mask. The param inpaint_additional_prompt only influence the content of inpaint area. And from the Fooocus's code, the value of inpaint_additional_prompt will just override param prompt.

LeapLu commented 11 months ago

Regardless of what the value of inpaint_additional_prompt is, it will apply inpaint if you pass param input_mask. The param inpaint_additional_prompt only influence the content of inpaint area. And from the Fooocus's code, the value of inpaint_additional_prompt will just override param prompt.

thank u! ❤️❤️❤️

Laidawang commented 10 months ago

@konieshadow image As far as I know, there are three inpainting methods. What parameters do we use to control switching between them?

Laidawang commented 9 months ago

@konieshadow image As far as I know, there are three inpainting methods. What parameters do we use to control switching between them?

solved

Shivanshmundra commented 9 months ago

@Laidawang how did you switch between different ways? I am unable to find toggle.