首页 > Ai资讯 > Ai教程 > 【AI绘画】Stable-Diffusion 通过骨架分析插件ControlNet 来制作超有意境的图片

【AI绘画】Stable-Diffusion 通过骨架分析插件ControlNet 来制作超有意境的图片

发布时间:2024年04月23日

 

A.开始前的准备工作,你需要先安装必备的环境

  1. 安装 Python 3.10.6,  “Add Python to PATH”
  2. 安装 git.

B.正式开始安装的步骤:

1.下载 Stable-Diffusion-webui 【链接地址】  Github开源项目,【中文语言包】  (注意:大陆用户请挂梯子,否则打不开

2.安装扩展 :https://github.com/Mikubill/sd-webui-controlnet.git

3.下载ControlNet模型【链接】选择里面的 control_sd15_openpose.pth,下载后放入./stable-diffusion-webui/extensions/sd-webui-controlnet/models 文件夹下

4.重启进入 WebUi 选择 ControlNet模型

5.载入训练好的模型:stablydiffuseds_26  也就是模型:StablyDiffused’s Aesthetic Mix 【点击下载】

6.载入图片进行骨架分析,并输入下面的正负关键词:

 

正面关键词:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
4 girls,4 girls on the beach,back to the sea,White dress,beautiful white gauze skirt,bikini,intricate,elegant,highly detailed,digita painting,concept art,summer lights,queen,sunset,orange sky,pink nightgown,simple background,soft light<lora:dalcefopainting_Lora300:1>
4 girls,4 girls on the beach,back to the sea,White dress,beautiful white gauze skirt,bikini,intricate,elegant,highly detailed,digita painting,concept art,summer lights,queen,sunset,orange sky,pink nightgown,simple background,soft light<lora:dalcefopainting_Lora300:1>
4 girls,4 girls on the beach,back to the sea,White dress,beautiful white gauze skirt,bikini,intricate,elegant,highly detailed,digita painting,concept art,summer lights,queen,sunset,orange sky,pink nightgown,simple background,soft light<lora:dalcefopainting_Lora300:1>

负关键词:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
nude,naked,hands,cartoon,thick strokes,((disfigured)),((bad art)),((deformed)),((poorly drawn)),((extra limbs)),((close up)),((b&w)),weird colors,blurry,complex
nude,naked,hands,cartoon,thick strokes,((disfigured)),((bad art)),((deformed)),((poorly drawn)),((extra limbs)),((close up)),((b&w)),weird colors,blurry,complex
nude,naked,hands,cartoon,thick strokes,((disfigured)),((bad art)),((deformed)),((poorly drawn)),((extra limbs)),((close up)),((b&w)),weird colors,blurry,complex

 

 

关键词大家可以根据自己的需要进行修改,最后生成即可

 

C.当然还有更多的好玩的玩法,比如这个国风模型:【点击下载】模型 和 【提示词

正面提示词:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
1girl, beautiful, realistic
1girl, beautiful, realistic
1girl, beautiful, realistic

负提示词:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
(((simple background))),monochrome ,lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry, lowres, bad anatomy, bad hands, text, error, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry, ugly,pregnant,vore,duplicate,morbid,mut ilated,tran nsexual, hermaphrodite,long neck,mutated hands,poorly drawn hands,poorly drawn face,mutation,deformed,blurry,bad anatomy,bad proportions,malformed limbs,extra limbs,cloned face,disfigured,gross proportions, (((missing arms))),(((missing legs))), (((extra arms))),(((extra legs))),pubic hair, plump,bad legs,error legs,username,blurry,bad feet
(((simple background))),monochrome ,lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry, lowres, bad anatomy, bad hands, text, error, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry, ugly,pregnant,vore,duplicate,morbid,mut ilated,tran nsexual, hermaphrodite,long neck,mutated hands,poorly drawn hands,poorly drawn face,mutation,deformed,blurry,bad anatomy,bad proportions,malformed limbs,extra limbs,cloned face,disfigured,gross proportions, (((missing arms))),(((missing legs))), (((extra arms))),(((extra legs))),pubic hair, plump,bad legs,error legs,username,blurry,bad feet
(((simple background))),monochrome ,lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry, lowres, bad anatomy, bad hands, text, error, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry, ugly,pregnant,vore,duplicate,morbid,mut ilated,tran nsexual, hermaphrodite,long neck,mutated hands,poorly drawn hands,poorly drawn face,mutation,deformed,blurry,bad anatomy,bad proportions,malformed limbs,extra limbs,cloned face,disfigured,gross proportions, (((missing arms))),(((missing legs))), (((extra arms))),(((extra legs))),pubic hair, plump,bad legs,error legs,username,blurry,bad feet

 

输出结果样式

 

 

 

 

 

 

 

 

 

比如还有这个模型:SamDoesArts (Sam Yang) Style LoRA

模型下载

提示词:

正面

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
sam yang, (dreamlikeart, redshift style, analog style:1.1), (copeseethemald style:0.5), (thepit bimbo, glossy), sexy, bimbo,portrait, 1girl, solo, ([Nina Dobrev|Emma Stone]:1.1), closeup, extreme closeup, looking at viewer, symmetric, centered, pantsuit, business suit, elegant suit, white crop top shirt, shinny skin, oily skin, subsurface skin scattering, shiny skin, choker, earrings, eyelashes, eyeshadow, lips, lipstick, jewelry, makeup, nose, parted lips, navel, beautiful detailed blue eyes, redhead, realistic, photo-realistic, well-lit face, glowing face, face focus, see-through, (night:1.2), dark, scary, dark city, alley, chased, danger, worried, afraid, stressed, building, street lights, detailed background, [(dust particle paint explosion:1.2)::0.11], (secret:0.8), <lora:samdoesartsSamYang_offsetRightFilesize:0.65>
sam yang, (dreamlikeart, redshift style, analog style:1.1), (copeseethemald style:0.5), (thepit bimbo, glossy), sexy, bimbo,portrait, 1girl, solo, ([Nina Dobrev|Emma Stone]:1.1), closeup, extreme closeup, looking at viewer, symmetric, centered, pantsuit, business suit, elegant suit, white crop top shirt, shinny skin, oily skin, subsurface skin scattering, shiny skin, choker, earrings, eyelashes, eyeshadow, lips, lipstick, jewelry, makeup, nose, parted lips, navel, beautiful detailed blue eyes, redhead, realistic, photo-realistic, well-lit face, glowing face, face focus, see-through, (night:1.2), dark, scary, dark city, alley, chased, danger, worried, afraid, stressed, building, street lights, detailed background, [(dust particle paint explosion:1.2)::0.11], (secret:0.8), <lora:samdoesartsSamYang_offsetRightFilesize:0.65>
sam yang, (dreamlikeart, redshift style, analog style:1.1), (copeseethemald style:0.5), (thepit bimbo, glossy), sexy, bimbo,portrait, 1girl, solo, ([Nina Dobrev|Emma Stone]:1.1), closeup, extreme closeup, looking at viewer, symmetric, centered, pantsuit, business suit, elegant suit, white crop top shirt, shinny skin, oily skin, subsurface skin scattering, shiny skin, choker, earrings, eyelashes, eyeshadow, lips, lipstick, jewelry, makeup, nose, parted lips, navel, beautiful detailed blue eyes, redhead, realistic, photo-realistic, well-lit face, glowing face, face focus, see-through, (night:1.2), dark, scary, dark city, alley, chased, danger, worried, afraid, stressed, building, street lights, detailed background, [(dust particle paint explosion:1.2)::0.11], (secret:0.8), <lora:samdoesartsSamYang_offsetRightFilesize:0.65>

反面:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
lowres, low quality, doll, bad anatomy, poorly drawn, ugly, maiden, virgin, malformed, deformed, masculine, manly, black skin, asian, blurry, out of focus, freckles, skin defects, skin marks, long neck, anime, highlights, shadows,
lowres, low quality, doll, bad anatomy, poorly drawn, ugly, maiden, virgin, malformed, deformed, masculine, manly, black skin, asian, blurry, out of focus, freckles, skin defects, skin marks, long neck, anime, highlights, shadows,
lowres, low quality, doll, bad anatomy, poorly drawn, ugly, maiden, virgin, malformed, deformed, masculine, manly, black skin, asian, blurry, out of focus, freckles, skin defects, skin marks, long neck, anime, highlights, shadows,

 

 

 

还有这个模型也不错:dalcefoV3Painting_dalcefoV3Painting 【模型下载

正提示词

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
slora:dalcefoPainting_LoRA300:1>dalcefo realistic,painting,portrait of a girl,full-body shot,collar,tattoo,luminous design,pastel colours,ink drips,autumn lights,sharp face,blue eyes,sharp eyes
slora:dalcefoPainting_LoRA300:1>dalcefo realistic,painting,portrait of a girl,full-body shot,collar,tattoo,luminous design,pastel colours,ink drips,autumn lights,sharp face,blue eyes,sharp eyes
slora:dalcefoPainting_LoRA300:1>dalcefo realistic,painting,portrait of a girl,full-body shot,collar,tattoo,luminous design,pastel colours,ink drips,autumn lights,sharp face,blue eyes,sharp eyes

负提示词:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
cartoon,3d,((disfigured)),((bad art)),((deformed)),((poorly draw)),((extra limbs)),((close up)),((b&w)),weird colors,blurry,(worst quality,low quality:1.4),(more than 2 nipples:1-331),(missing arms:1-331),(extra
legs:1.331),(fused fingers:1.61051),(too many fingers:1.61051),(mutilated:1.21),mutated hands,(poorly drawn hands:1.331),(unclear eyes:1.331),lowers,bad hands,missing fingers,bad hands
cartoon,3d,((disfigured)),((bad art)),((deformed)),((poorly draw)),((extra limbs)),((close up)),((b&w)),weird colors,blurry,(worst quality,low quality:1.4),(more than 2 nipples:1-331),(missing arms:1-331),(extra
legs:1.331),(fused fingers:1.61051),(too many fingers:1.61051),(mutilated:1.21),mutated hands,(poorly drawn hands:1.331),(unclear eyes:1.331),lowers,bad hands,missing fingers,bad hands
cartoon,3d,((disfigured)),((bad art)),((deformed)),((poorly draw)),((extra limbs)),((close up)),((b&w)),weird colors,blurry,(worst quality,low quality:1.4),(more than 2 nipples:1-331),(missing arms:1-331),(extra
legs:1.331),(fused fingers:1.61051),(too many fingers:1.61051),(mutilated:1.21),mutated hands,(poorly drawn hands:1.331),(unclear eyes:1.331),lowers,bad hands,missing fingers,bad hands

 

就可以获得如下的输出结果:

 

 

如果你想要了解关于智能工具类的内容,可以查看 智汇宝库,这是一个提供智能工具的网站。
在这你可以找到各种智能工具的相关信息,了解智能工具的用法以及最新动态。