Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Inset Rect for Mask #413

Closed
xulihang opened this issue May 21, 2023 · 2 comments
Closed

Use Inset Rect for Mask #413

xulihang opened this issue May 21, 2023 · 2 comments

Comments

@xulihang
Copy link
Owner

xulihang commented May 21, 2023

For text with complex background, it is not easy to accurately generate the text mask.

image

Actually, in most cases which have complex background, an inset rect is enough.

Mask:

image

Text removed using Lama Inpaint:

image

I've created the InsetRectMaskGen mask generator plugin to do this.

@xulihang
Copy link
Owner Author

The plugin has been added in v1.9.8.

@lhj5426
Copy link

lhj5426 commented May 21, 2023

对于背景复杂的文本,准确生成文本掩码并不容易。

image

实际上,在大多数有复杂背景的情况下,插入 rect 就足够了。

面具:

image

使用 Lama Inaint 删除文字:

image

我已经创建了 InsetRectMaskGen 掩码生成器插件来实现这一点。

是的 之后会用文字遮丑所以这样就很不错了 如果再想做精点的话直接ps内容识别填充 了
不过这就需要开发者老哥 后期迭代更新 单页导出PSD文件了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants