Stable Diffusion创作:控制身体的362种姿势

2023-07-0622:13:31办公软件与工具应用Comments1,235 views字数 2552阅读模式

Stable Diffusion创作:控制身体的362种姿势文章源自菜鸟学院-https://www.cainiaoxueyuan.com/office/50343.html

在使用Stable Diffusion创作的时候,经常会遇到一个问题:角色的身体并不是创作者想要的姿势。文章源自菜鸟学院-https://www.cainiaoxueyuan.com/office/50343.html

 文章源自菜鸟学院-https://www.cainiaoxueyuan.com/office/50343.html

比如想让她做出挥手的动作,输入对应的提示词,效果不明显,甚至AI对此不为所动(AI经常对一些提示词不敏感)。文章源自菜鸟学院-https://www.cainiaoxueyuan.com/office/50343.html

Stable Diffusion创作:控制身体的362种姿势

ControlNet插件提供了一个约束身体姿势的功能,叫openpose。文章源自菜鸟学院-https://www.cainiaoxueyuan.com/office/50343.html

这个功能有两个用法,分别是标准用法和高阶用法,我逐个介绍一下。文章源自菜鸟学院-https://www.cainiaoxueyuan.com/office/50343.html

ControlNet插件内置了openpose模型,如果未能自动安装,可以到官方地址下载(文末的链接中,我也会放上该模型),然后拷贝至\extensions\sd-webui-controlnet\models文章源自菜鸟学院-https://www.cainiaoxueyuan.com/office/50343.html

下载地址:文章源自菜鸟学院-https://www.cainiaoxueyuan.com/office/50343.html

https://huggingface.co/lllyasviel/ControlNet/blob/main/models/control_sd15_openpose.pth文章源自菜鸟学院-https://www.cainiaoxueyuan.com/office/50343.html

同时为了方便使用,还要安装openpose编辑器插件:文章源自菜鸟学院-https://www.cainiaoxueyuan.com/office/50343.html

Stable Diffusion创作:控制身体的362种姿势

https://github.com/fkunn1326/openpose-editor.git文章源自菜鸟学院-https://www.cainiaoxueyuan.com/office/50343.html

安装成功后,可以在webui界面看到该选项卡:文章源自菜鸟学院-https://www.cainiaoxueyuan.com/office/50343.html

Stable Diffusion创作:控制身体的362种姿势

一、标准用法文章源自菜鸟学院-https://www.cainiaoxueyuan.com/office/50343.html

我看到一张造型非常棒的照片,想画出同样姿势但是完全不同场景的图片。文章源自菜鸟学院-https://www.cainiaoxueyuan.com/office/50343.html

Stable Diffusion创作:控制身体的362种姿势

那就可以使用openpose来实现。文章源自菜鸟学院-https://www.cainiaoxueyuan.com/office/50343.html

首先上传姿态比较完美的照片,文章源自菜鸟学院-https://www.cainiaoxueyuan.com/office/50343.html

Stable Diffusion创作:控制身体的362种姿势

然后选择“启用”,否则无效。文章源自菜鸟学院-https://www.cainiaoxueyuan.com/office/50343.html

Stable Diffusion创作:控制身体的362种姿势

预处理器选择openpose,模型选择control_v11p_sd15_openpose。文章源自菜鸟学院-https://www.cainiaoxueyuan.com/office/50343.html

引导介入时机选择0,意味着从一开始生成图片就介入引导。文章源自菜鸟学院-https://www.cainiaoxueyuan.com/office/50343.html

控制模式选择更偏向controlNet。文章源自菜鸟学院-https://www.cainiaoxueyuan.com/office/50343.html

点击一下预览,会提取出当前图片的骨架。文章源自菜鸟学院-https://www.cainiaoxueyuan.com/office/50343.html

Stable Diffusion创作:控制身体的362种姿势

在文生图里输入想要的内容,选择合适的模型,生成的图片人物就会是这个造型了。文章源自菜鸟学院-https://www.cainiaoxueyuan.com/office/50343.html

比如:文章源自菜鸟学院-https://www.cainiaoxueyuan.com/office/50343.html

Stable Diffusion创作:控制身体的362种姿势

模型:breakdomainrealistic_R2333文章源自菜鸟学院-https://www.cainiaoxueyuan.com/office/50343.html

提示词:文章源自菜鸟学院-https://www.cainiaoxueyuan.com/office/50343.html

bestquality,1girl,babyface,smile,cute,<lora:baby_face_v1:0.7> <lora:add_detail:1>
Stable Diffusion创作:控制身体的362种姿势

二、高阶用法文章源自菜鸟学院-https://www.cainiaoxueyuan.com/office/50343.html

如果我对图片提取的姿势不满意怎么办?文章源自菜鸟学院-https://www.cainiaoxueyuan.com/office/50343.html

openpose编辑器提供了一个调整姿势的方法。文章源自菜鸟学院-https://www.cainiaoxueyuan.com/office/50343.html

先选择“从图片中提取”,把想要调整姿态的图片上传,文章源自菜鸟学院-https://www.cainiaoxueyuan.com/office/50343.html

Stable Diffusion创作:控制身体的362种姿势

然后编辑器会自动读取该图片的姿势信息,生成一个骨架图,注意,这个图是可以拖动的。文章源自菜鸟学院-https://www.cainiaoxueyuan.com/office/50343.html

图里每个小亮点,都可以用鼠标拖动,这样可以根据自己的想法,来控制身体骨架的姿态变化。文章源自菜鸟学院-https://www.cainiaoxueyuan.com/office/50343.html

调整完毕后,点击“发送到文生图”,就会回传到ControlNet界面,后面的就和标准用法一致了。文章源自菜鸟学院-https://www.cainiaoxueyuan.com/office/50343.html

想象力不足怎么办?文章源自菜鸟学院-https://www.cainiaoxueyuan.com/office/50343.html

那就不要去想象,我从C站下载了362个参考姿势,你直接拿来用就好了。文章源自菜鸟学院-https://www.cainiaoxueyuan.com/office/50343.html

这个姿势使用起来非常简单,除了姿势外,还有效果预览图,先从预览图里找到想要的姿势图片,再找到对应的姿势图,扔给ControlNet就好了!文章源自菜鸟学院-https://www.cainiaoxueyuan.com/office/50343.html

每个姿势都有对应的编号。文章源自菜鸟学院-https://www.cainiaoxueyuan.com/office/50343.html

Stable Diffusion创作:控制身体的362种姿势

看中该姿势后再到姿势图里寻找到对应编号的姿势图。文章源自菜鸟学院-https://www.cainiaoxueyuan.com/office/50343.html

Stable Diffusion创作:控制身体的362种姿势

再在ControlNet里上传该姿势图。和标准玩法略有不同的是,预处理器选择none,模型不变,然后上传姿势图片,再点击文生图就可以了!文章源自菜鸟学院-https://www.cainiaoxueyuan.com/office/50343.html

Stable Diffusion创作:控制身体的362种姿势

模型:meinamix_meinaV10文章源自菜鸟学院-https://www.cainiaoxueyuan.com/office/50343.html

提示词:文章源自菜鸟学院-https://www.cainiaoxueyuan.com/office/50343.html

absurdres, highres, ultra detailed, (1girl:1.3), BREAK , Sun Knight, solar magic, light manipulation, radiant power, sunbeam attacks, aura of warmth, shining armor BREAK , photo manipulation, altered realities, fantastical scenes, digital artistry, creative editing, evocative narratives, striking visuals BREAK , kinetic art, moving sculptures, mechanical creations, interactive installations, dynamic motion, engineering ingenuity, captivating visuals.
<lyco:GPTS8 Elusive World_493473:0.3>

负面提示词:文章源自菜鸟学院-https://www.cainiaoxueyuan.com/office/50343.html

illustration, 3d, sepia, painting, cartoons, sketch, (worst quality:2), (low quality:2), (normal quality:2), monochrome, (grayscale:1.2), (backlight:1.2), analog, analogphoto, , RAW photo, (open mouth), (((text, signature, watermark, username, artist name, stamp, title, subtitle, date, footer, header))), nsfw, nipples, pubic hair, EasyNegativeV2, bad anatomy, long_neck, long_body, longbody, deformed mutated disfigured, missing arms, extra_arms, mutated hands, extra_legs, bad hands, poorly_drawn_hands, malformed_hands, missing_limb, floating_limbs, disconnected_limbs, extra_fingers, bad fingers, liquid fingers, poorly drawn fingers, missing fingers, extra digit, fewer digits, ugly face, deformed eyes, partial face, partial head, bad face, inaccurate limb, cropped, multipul angle, split view, grid view
Stable Diffusion创作:控制身体的362种姿势

需要注意的是,openpose成功率非常高,但也不是100%,有些比较复杂的姿势,有可能出现引导错误。文章源自菜鸟学院-https://www.cainiaoxueyuan.com/office/50343.html

openpose模型、362个姿势预览图和姿势文件下载:文章源自菜鸟学院-https://www.cainiaoxueyuan.com/office/50343.html

https://www.123pan.com/s/ueDeVv-oB0I.html 提取码:lgyh文章源自菜鸟学院-https://www.cainiaoxueyuan.com/office/50343.html

  • 本站内容整理自互联网,仅提供信息存储空间服务,以方便学习之用。如对文章、图片、字体等版权有疑问,请在下方留言,管理员看到后,将第一时间进行处理。
  • 转载请务必保留本文链接:https://www.cainiaoxueyuan.com/office/50343.html

Comment

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定