通过智能AI给图片换衣服的教程
前言
AI智能不断创新,前一阵比较火的“AI模特一键换装”吸引了不少眼球
该篇博客就来讲讲关于这个“AI一键换装” 【stable-diffusion-webui
】
【YouTube 视频参考】
搭建环境
GitHub项目
主要依靠【Stable Diffusion GitHub】这个项目,实现换装
【Stable Diffusion】主要是以 python
语言为主
步骤
- 下载最新版 stable-diffusion-webui
- 安装
Python 3.10.6
(较新版本的 Python 不支持 torch),勾选“Add Python to PATH”
。 - 安装Git。
- 以普通非管理员用户身份从 Windows 资源管理器运行
webui-user.bat
。 - 安装中文语言:
1
https://github.com/VinsonLaro/stable-diffusion-webui-chinese
- 暗黑模式:访问这个地址(启动项目后访问)
1
http://127.0.0.1:7860/?__theme=dark
- 安装 sd-webui-controlnet 外挂程序,新版本在插件中心搜索安装即可,如果你是旧版本,可以通过手动安装
1
https://github.com/Mikubill/sd-webui-controlnet
- 下载模型:【点击获取】
-
- 所需主模型:【chilloutmix_NiPrunedFp32Fix】
- Lora模型: 【cuteGirlMix4_v10】、【seeThroughSilhouette_v10】
1
2
3
4
5
6
7
8
9
10extremely detailed CG unity 8k wallpaper,(masterpiece),(best quality),(ultra detailed),(ultra realistic),(Best character details:1.36),nikon d750 f/1.4 55mm,dynamic angle,professional lighting, photon mapping, radiosity, physically-based rendering,
outdoors,looking at viewer,blush,(taut shirt), jeans,
1girl,(mature female:0.2),tall body,golden proportions,(Kpop idol),(shiny skin:1.2),(oil skin:1.1),makeup,[:(high detailed face:1.2):0.2]:, <lora:cuteGirlMix4_v10:0.8>, (close up), park, depth of field, <lora:seeThroughSilhouette_v10:0.5>,( closed mouth: 0.5)
((wavy gray hair and a sophisticated sense of style)),(aegyo sal:1),(puffy eyes),(eyelashes:1.1),(parted lips:1.1),red lipstick,wide shoulders,
Negative prompt: Multiple people,More than one person,2girl,DeepNegative,
sketches,lowres,polar lowres,(worst quality:2),(low quality:2),(normal quality:2),((monochrome)),((grayscale)),blurry,cropped,mutation,deformed,text,error,signature,watermark,username,extra digit,fewer digits,jpeg artifacts,
skin spots, acnes, skin blemishes,
bad anatomy,bad anatomy,bad proportions,gross proportions,long neck,cross-eyed,malformed limbs,blurred hands,fused fingers,poorly drawn face,poorly drawn hands,
(mutated hands and fingers:1.3),(mutated legs and foots:1.3),bad body,bad limbs,bad arms,bad hands,bad fingers,bad leg,bad feet,missing limbs,missing arms,missing hands,missing fingers,missing legs,missing footextra limbs,extra arms,extra fingers,extra leg,extra foot,
Steps: 28, Sampler: DPM++ SDE Karras, CFG scale: 7.5, Seed: 1340860639, Face restoration: CodeFormer, Size: 640x960, Model hash: fc2511737a, Model: chilloutmix_NiPrunedFp32Fix, Denoising strength: 0.4, Hires upscale: 1.5, Hires steps: 30, Hires upscaler: Latent (bicubic antialiased)
推荐使用
【majicMIX sombre】
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 学弟不想努力了!
评论