Haoming02 / sd-forge-couple

An Extension for Forge Webui that implements Attention Couple
GNU General Public License v3.0
160 stars 8 forks source link

Allow setting a background image in the canvas #22

Closed arcusmaximus closed 1 month ago

arcusmaximus commented 2 months ago

Being able to set a custom background image in the canvas is useful when you're doing img2img or using e.g. ControlNet Canny. Bonus points for having a button that retrieves the current img2img input image without the user having to save and reupload it.

See this code for an example of how it can all be done without using sluggish Gradio (lines 157 to 216).

superfid2006 commented 2 months ago

Nice, came here since I wanted to ask for just this. This functionality in Regional Prompter was very helpful for i2i, seeing the same way to draw the rectangles for advanced regional control in Forge Couple would be great.

arcusmaximus commented 2 months ago

If you want to use background images already now, you can use my fork of this extension.