干翻全岛蛙蛙 发表于 2024-8-21 12:12:24

深度学习与图像修复:ADetailer插件在Stable Diffusion中的应用

引言

无论是专业设计师还是平常用户,都大概在处置惩罚图像时遇到一些棘手的标题。你是否也遇到过这样的困扰:图像中的某些部门不够风雅,大概面部特征处置惩罚得不够完善?比如这样:
https://i-blog.csdnimg.cn/direct/e59b4227d49b4c9993cae2a952b76202.png
大概,这样?
https://i-blog.csdnimg.cn/direct/619fd47e30bb489b93cb7c052ca14b55.png
在我们之前,对于图像控制来说,我们可以把它发送到图生图当中局部重绘,扩大它局部的,但是类似于上述的情况,你愿意花几个小时或更多的时间,对每一个面部进行重绘么,当时,是不大概的,这种方法不但效率低下,而且对于非专业人士来说,难度也相称大。但现在,我们可以实验一种全新的解决方案。
https://i-blog.csdnimg.cn/direct/f68fa7c18dba4fcdb2b157a5d1217bf4.png
正向提示词:
1gril,
(masterpiece,hyper extreme detailed:1.2),A girl is taking a selfie while surrounded by a group of men who have a gang-like appearance. The girl is holding her phone or camera at arm's length,posing for a picture of herself. She is surrounded by a group of men who are dressed in clothing that is typical of a street gang or organized crime group. They may be wearing baggy pants,bandanas,or other accessories that are associated with gangs. The men are standing around the girl,either as a protective circle or in a menacing manner. It is unclear what the relationship is between the girl and the men,or why they are all together in this situation.,
反向词:
(worst quality, low quality:1.4),(depth of field, blurry:1.2),(greyscale, monochrome:1.1),3D face,cropped,lowres,text,(nsfw:1.3),(worst quality:2),(low quality:2),(normal quality:2),normal quality,((grayscale)),skin spots,acnes,skin blemishes,age spot,(ugly:1.331),(duplicate:1.331),(morbid:1.21),(mutilated:1.21),(tranny:1.331),mutated hands,(poorly drawn hands:1.5),blurry,(bad anatomy:1.21),(bad proportions:1.331),extra limbs,(disfigured:1.331),(missing arms:1.331),(extra legs:1.331),(fused fingers:1.61051),(too many fingers:1.61051),(unclear eyes:1.331),lowers,bad hands,missing fingers,extra digit,bad hands,missing fingers,(((extra arms and legs)))
这里,需要向各人介绍一个在好易智算平台以及集成好的插件
https://i-blog.csdnimg.cn/direct/28acb1ac8ac14cdf809022d2efeb8ef3.png
起首,我们来介绍一下好易智算平台,在注册界面进行注册,就可以体验极致的设置体验
起首的话点击链接进行注册
https://i-blog.csdnimg.cn/direct/5c9fed4579514451a5ae9354fd5584ec.png
注册完成后,你将可以享受到极致的设置体验。平台界面简洁明了,操作便捷,让你轻松上手。从应用市场进去之后,可以看到有非常多的AI应用,它整合了多个AI应用程序——应用即达,AI轻启。这样的便捷性使得访问和使用这些先进技术变得前所未有地简单快捷。
https://i-blog.csdnimg.cn/direct/53d2e26f5f544b34a9dac68bfbe691d2.png
只需要在Stable Diffusion中开启ADetailer插件,在生成的过程中,就会自动识别并进行重绘:
https://i-blog.csdnimg.cn/direct/3054e7b08b404077ad5ac5bbada4a89e.png
ADetailer插件介绍

插件安装

我们可以在这里进行下载,https://github.com/Bing-su/adetailer.git
https://i-blog.csdnimg.cn/direct/a8b57197e6dc4df7b92ef70a2104bc4c.png
After Detailer插件的主界面设计简洁直观,为用户提供了便捷的操作体验。该插件具备强大的多通道处置惩罚本领,可以或许同时在一张照片中对脸部、手部等多个区域进行风雅修复,极大地提升了图片处置惩罚的效率和灵活性。
https://i-blog.csdnimg.cn/direct/e54f867521d34e47be83387f09b03358.png
启用After Detailer,只需轻轻一勾,即可轻松开启您的图片修复之旅。在模型选择方面,After Detailer提供了丰富多样的模型选项,以满意不同场景下的修复需求。尤其是脸部修复功能,其结果堪称完善,赢得了用户的同等好评。
别的,若您在插件中未找到所需模型,可以访问huggingface网站进行下载,网址为:https://huggingface.co/Bingsu/adetailer/tree/main。
常用模型

起首我们先来看看它的一些常用模型:
https://i-blog.csdnimg.cn/direct/43c2e74ab9824f238a440884b081606e.png
   Stable Diffusion的ADetailer插件是一套专门用于图像检测和细节增强的工具。以下是该插件支持的不同检测目的及其对应的模型和推荐情况:


[*]人物面部检测:

[*]模型名称:face_yolov8n
[*]类型差异:低强度
[*]推荐:
页: [1]
查看完整版本: 深度学习与图像修复:ADetailer插件在Stable Diffusion中的应用