Grounded-Segment-Anything
Grounded-Segment-Anything copied to clipboard
能实现对照片进行抠图吗?并且把背景改为白色或者其他颜色。然后结果报存到本地。
像下面这种效果?


我写的插件实现了这个功能,但是背景是透明的 见https://github.com/continue-revolution/sd-webui-segment-anything
@continue-revolution 感谢大佬,如何调整才能让背景实现上面发的?
你想要白色背景的话,需要去源代码里面找一下np.array([0, 0, 0, 0]) 把它改成白色的RGBA。 你也可以自己在PS里加背景。