在大佬的基础上做了一个简单的插件
Just git it in your extensions folder in your Stable-Diffusion-WebUI
git clone https://github.com/ClockZinc/sd-webui-IS-NET-pro
My plugin can batch generate images as well as generate a single image. In single image mode, the result will be displayed directly.
In img2img mode, at the bottom of the page, open "ISnet::MFR". It can batch generate image using inpaint Which can only modify the masked area. It will also generates a mask folder.
New functions in New Version BV1nk4y1e76X
A bilibili video as followsBV1Fh411G7dw
input folder can be anywhere in you device. It should be like D:\path\to\folder .
as shown in follows, the folder has a iamge(can be more), I fill in the path of it
The output folder, has nothing in it(it could have some)
Then click the gene_frame button
Then it generates a image with white background
The extension will create a folder with the structure bellow, and automatically download a [isnet-general-use.pth](https://huggingface.co/ClockZinc/IS-NET_pth/resolve/main/isnet-general-use.pth)
--sd-webui-IS-NET-pro
|
--saved_models
|
--IS-Net
|
--isnet-general-use.pth
If you find out you don't have it in your extension file, you could create it by yourself.