Sanster / IOPaint

Image inpainting tool powered by SOTA AI Model. Remove any unwanted object, defect, people from your pictures or erase and replace(powered by stable diffusion) any thing on your pictures.
https://www.iopaint.com/
Apache License 2.0
17.35k stars 1.75k forks source link

Get the mask of the brush area when Brush is wiping #456

Closed yumianhuli1 closed 2 months ago

yumianhuli1 commented 2 months ago

@Sanster Hello!how does IOPainter get the mask of the brush area when Brush is wiping? It would be nice if the core code will be pasted.

Sanster commented 2 months ago

The main logic is here.

https://github.com/Sanster/IOPaint/blob/eb77e2b27c0342b63d4b79bc5a9bede5064eb7e4/web_app/src/components/Editor.tsx#L158

yumianhuli1 commented 2 months ago

close