当前位置: 首页> 科技> IT业 > AIGC大模型智能抠图(清除背景):Sanster/IOPaint,python(2)

AIGC大模型智能抠图(清除背景):Sanster/IOPaint,python(2)

时间:2025/9/5 2:34:13来源:https://blog.csdn.net/zhangphil/article/details/141875720 浏览次数:0次

AIGC大模型智能抠图(清除背景):Sanster/IOPaint,python(2)

 

在文章(1)的基础上,尝试用大模型扣除图中的某些主要景物。

1、首先,安装插件:

pip install rembg

 

2、第1步安装成功,启动webui,注意,这里要启用清除背景/抠图的插件 --enable-remove-bg :

iopaint start --model=lama --device=cpu --port=8080 --model-dir=D:/code/python/Sanster/IOPaint --enable-remove-bg

 

3、以上成功后,打开 127.0.0.1:8080,导入一张图片,这张原图为

49c8661391af4614b4e54db0b7dd8eee.jpeg

 

导入,开始大模型抠图:

7cead4e36ddc4732a2b8392c8df30349.png

 

抠出图中主要景物(拿破仑):

97679399fb8a4411989e5378d9ba2f98.png

 

成功后,下载结果图:

2f1aa086085c4755aecdeba6de2801e3.png

 

 

最终AIGC大模型抠出的图为:

5c2f8ae96dd54b1c8c7cc2ff111d8dc6.jpeg

 

结果还不错。

 

 

 

b2fd91bb8f6d48669f9a9b45ef3de131.png

 

 

 

AIGC大模型智能擦除:Sanster/IOPaint,python(1)-CSDN博客文章浏览阅读521次,点赞3次,收藏9次。webui-user.bat启动stable-diffusion-webui报错:RuntimeError: Torch is not able to use GPU,AIGC,Python。webui-user.bat启动stable-diffusion-webui报错:RuntimeError: Torch is not able to use GPU,AIGC,Python-CSDN博客。2、设置 - 系统 - 可选功能 - 更多Windows功能 - 启用或关闭Windows功能。https://blog.csdn.net/zhangphil/article/details/141874543

Windows安装docker,启动ollama运行open-webui使用AIGC大模型写周杰伦歌词-CSDN博客文章浏览阅读554次,点赞9次,收藏7次。webui-user.bat启动stable-diffusion-webui报错:RuntimeError: Torch is not able to use GPU,AIGC,Python。webui-user.bat启动stable-diffusion-webui报错:RuntimeError: Torch is not able to use GPU,AIGC,Python-CSDN博客。2、设置 - 系统 - 可选功能 - 更多Windows功能 - 启用或关闭Windows功能。https://blog.csdn.net/zhangphil/article/details/141829276

 

关键字:AIGC大模型智能抠图(清除背景):Sanster/IOPaint,python(2)

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

责任编辑: