Stable Diffusion 一键生成涩图

date
Apr 3, 2023
slug
OneClick-Generating-Pornographic-Images-with-StableDiffusion
status
Published
tags
知识分享
AI
summary
Stable Diffusion一键生成色图,对比Draw Things、MochiDiffusion
type
Post
category
学习思考

🥵成果展示

notion image
notion image
notion image

🔨macOS安装Stable Diffusion WebUI

👾所用到的模型与LoRA

模型

LoRA

😼具体参数

Prompt

1face,(sleeveless:1), NSFW ,collared shirt,beautiful detailed eyes, 1girl, black tight skirt, black choker, (faded ash gray hair:1), (medium breasts:1.1), looking at viewer, closeup,full_body, solo, high_heels,plush_top, black lingerie, black stocking, glossy lips,dress, tall_female, beautiful_legs,perfect body,Figure centering, (black sweater :1.3), office_lady, sexy, professional lighting, photon mapping, radiosity, physically-based rendering,(8k, RAW photo, best quality, masterpiece:1.2), (realistic, photo-realistic:1.4), <lora:20d_v10:0.3> <lora:cuteGirlMix4_v10:0.7> <lora:koreandolllikeness_v20:0.2> <lora:shojovibe_v11:0.1> <lora:fashionGirl_v50:0.1> <lora:taiwanDollLikeness_v15:0.2>

negative prompt

paintings, sketches, (worst quality:2), (low quality:2), (normal quality:2), lowres, normal quality, ((monochrome)), ((grayscale)), skin spots, acnes, skin blemishes, age spot, glans, (worst quality:2), (low quality:2), (normal quality:2), lowres, normal quality, ((monochrome)), ((grayscale)), skin spots, acnes, skin blemishes, age spot, glans,extra fingers,fewer fingers,strange fingers,bad hand (low quality, worst quality:1.4), (bad_prompt:0.8), (monochrome), (greyscale)

其他参数

notion image

✅总结

显卡对比、与MochiDiffusion对比、与Draw Things对比

与MochiDiffusion对比

MD用了苹果对AI出图做的CoreML优化,出图确实非常快。缺点是只能输入75个prompt并且无法导入LoRA,作者在issue中明确表示短期内不会支持LoRA

与Draw Things对比

  • DT 同时支持 iOS、 iPadOS 与 macOS,我是在macOS上使用的。DT可以导入模型,也可以导入LoRA,但是LoRA导入后没在下拉框中出现,无法选择。试了很久找了很久不知道能以何种方式调用LoRA。
  • DT中有单独的设置可以打开CoreML优化,M1 Macbook Air开了神经网络处理器和CoreML优化后并没有发现有多大速度提升(待详细测试)。
 

5500XT与M1对比

之前文章分享过我搭的黑苹果配置,采用的是5500xt与64G内存。对比了一下M1 MacBook Air跑Stable Diffusion的表现⬇️⬇️⬇️
  • step同为28、分辨率同为512,速度差不多都在1m30s左右。
  • 在生成更高分辨率的图片中,M1耗时3m30s左右,5500XT耗时2m30s左右。
  • 都会爆内存,我的MacBook Air只有16G内存,发现最高 swap 12G,64G黑苹果直接占了80%并且swap了2G,很夸张。

参数相关

差不多花了有5h去调prompt,但依然有可能出现嘴唇裂开眼睛不正常的情况。有可能是我step或者设置的分辨率不够,但调高这两项都会增加炼丹时间,没有时间去做验证。

色图模型与色图LoRA库分享

如果有专业卡应该会很爽,科技改变人生

 

© Rysi 2018 - 2025