Stable Diffusion 参数介绍及用法

本文介绍了大模型CheckPoint如何引导作图风格,推荐使用Stable-diffusion模型,以及VAE的滤镜效果。同时探讨了CLIP的关联性与Prompt提示词在艺术创作中的重要性,以及采样方法如DPM和2MKarras的应用和参数设置。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

大模型 CheckPoint 介绍

作用:定调了作图风格,可以理解为指挥者
安装路径:models/Stable-diffusion
推荐
AnythingV5Ink_v32Ink.safetensors
cuteyukimixAdorable_midchapter2.safetensors
manmaruMix_v10.safetensors
counterfeitxl_v10.safetensors
darkjunglemix_V2InkFix.safetensors 在这里插入图片描述

变分自编码器 VAE (Variational Auto Encoder)

作用:滤镜效果,增加饱和度之类的,类似美颜吧
安装路径:models/VAE
推荐:暂无,不咋用
在这里插入图片描述

Clip跳过层 (Contrastive Language Image Pre-training)

作用:就是 prompt 与生成图的关联性,数值越高关系越低,反之亦然
推荐:2-4

Prompt 提示词

内容

  • 人物表情:sexy lady, smiling, curly blonde hair, big eyes
  • 服装:black suit, jeans, dress
  • 场景和环境:Universe,Galaxy,Mars,rainy day
  • 镜头:wide shot,close up,full body,portrait
  • 灯光:Cinimatic lighting, studio lighting, Neon light, high contrast, (best illumination, an extremely delicate and beautiful), (cinematic light), colorful, hyper detail, dramatic light, intricate details
  • 风格:Pixel art, surrealism, cartoon, cyberpunk
  • 质量:masterpiece, best quality, ultra-detailed, best shadow

格式

基本

词组+短句,使用英文逗号分开,核心内容推荐使用 短句

比重

括号法则,麻烦,不用,哈哈哈
数字法则,写法简单

(xxxx: 1.5)= xxxx 权重= 1 x 1.5倍
(xxxx: 0.7)= xxxx 权重= 1 x 0.7倍
推荐:尽量保持在 0.5 - 1.6 之间

融合

AND

cat AND tiger

[ tag1:tag2 ]

[cat|girl]
交替算法,13579 步渲染t cat,246810 步渲染 girl
在这里插入图片描述

渐变 [tag1:tag2:x]

[moon:sun:5] 前面 5 步画 moon,剩下的步数画 sun
在这里插入图片描述

反向提示词

常用

(worst quality:2), (low quality:2), (normal quality:2), lowres, ((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), bad anatomy,DeepNegative,(fat:1.2), looking away,tilted head, {Multiple people},bad anatomy,bad hands, text, error, missing fingers,extra digit, fewer digits, cropped,jpeg artifacts,signature, watermark, username,blurry,bad feet,cropped,poorly drawn hands,poorly drawn face,mutation,deformed,extra limbs,extra arms,extra legs,malformed limbs,fused fingers,too many fingers,long neck,cross-eyed,mutated hands,polar lowres,bad body,bad proportions,gross proportions,error,missing arms,missing legs, extra leg, extra foot,

采样方法 (sampling method)

当前直接采用 DPM++ 2M Karras 就好了,其他大多过时了

参数介绍及设置

  • 采样步数(Sampling steps): 调高的画,画得更精细。一般在 20-40 之间
  • CFG Scale: 数值越高越贴近提示词,但是 AI 想象力就降低。一般在 7-12 之间
  • denoising scale: 重绘幅度,越高的画,原画偏离度越大
  • 随机种子:设定某个特定值时,风格就会和seed相似
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值