Open dendenmushy opened 1 month ago
Hey thanks mrhan1993 for your rework, is it possible to you to add this features on the image-generation ?
image-generation
Be able to choose the model, reverse the mask generation, and generate the mask beforehand.
Maybe even create a new route for this use case due to generation step
Fooocus original source code: https://github.com/lllyasviel/Fooocus/blob/f597bf1ab653bd4bea8cb1e5cc7996348fbe8879/webui.py#L253
**inpaint_mask_image** = grh.Image(label='Mask Upload', source='upload', type='numpy', tool='sketch', height=500, brush_color="#FFFFFF", mask_opacity=1, elem_id='inpaint_mask_canvas') **invert_mask_checkbox** = gr.Checkbox(label='Invert Mask When Generating', value=False) **inpaint_mask_model** = gr.Dropdown(label='Mask generation model',
Mask generation function: https://github.com/lllyasviel/Fooocus/blob/f597bf1ab653bd4bea8cb1e5cc7996348fbe8879/webui.py#L280
support for v2.5.0 is ongoing, you can see progress in the v2.5.0 branch, maybe you can help test it and provide recommendations
Yes with pleasure 👍
Is there an existing issue for this?
What would your feature do?
Hey thanks mrhan1993 for your rework, is it possible to you to add this features on the![image](https://github.com/user-attachments/assets/c9224ade-1d90-434d-8cba-a128d0ef8f23)
image-generation
?Be able to choose the model, reverse the mask generation, and generate the mask beforehand.
Proposed workflow
Maybe even create a new route for this use case due to generation step
Additional information
Fooocus original source code: https://github.com/lllyasviel/Fooocus/blob/f597bf1ab653bd4bea8cb1e5cc7996348fbe8879/webui.py#L253
Mask generation function: https://github.com/lllyasviel/Fooocus/blob/f597bf1ab653bd4bea8cb1e5cc7996348fbe8879/webui.py#L280