Stable Diffusion - AWPortrait 1.1 模型与 Prompts 设置

欢迎关注我的CSDN:https://spike.blog.csdn.net/
本文地址:https://spike.blog.csdn.net/article/details/131565908

AWPortrait 1.1 网址:https://www.liblibai.com/modelinfo/721fa2d298b262d7c08f0337ebfe58f8

介绍:AWPortrait1.1的创作过程其实是思考真实人像和AI生成影像视觉上的区别是什么的过程,希望AWPortrait能够在AI模拟人像摄影的真实度探索上再进一步;AI只是创作工具,只有每个人无可取代的想象力,才能开启属于我们独特的虚拟摄影之旅。

使用说明:

  1. 在t2i直出时,模拟影棚人像摄影的效果是最好的,如:Pure white background, Studio light, Studio
  2. 人像景别可选,如:Close-up , Upper body,全身full body 直出需要配合ADetailer插件控制脸部
  3. 可使用Prompts控制模特彩妆,如:Make up Portrait, pink eyeshadows, red lips等
  4. 表情可选,如: emotional face, smile, happy等

AW

模型下载约 2G。

Prompts 参数配置:

masterpiece, best quality, 1girl, rainbow and purple swirling vortexes colourful cloudy and smoke and colorful background, (snowing) (( swirling vortexes colourful hair)), wear white fur coat, ((long Hair)), ((front)), emotional face, close up, studio light, studio, (((makeup portrait, pink eye shadow))), ((with many purple rainbow swirling vortexes colourful snow and feather on face))
Negative prompt: ng_deepnegative_v1_75t, (badhandv4:1.2), (worst quality:2), (low quality:2), (normal quality:2), lowres, bad anatomy, bad hands, ((monochrome)), ((grayscale)) watermark, moles, large breast, big breast, sunshine, bright,background blur,
Steps: 30, Sampler: DPM++ 2M SDE Karras, CFG scale: 7, Seed: 2629405120, Face restoration: CodeFormer, Size: 512x768, Model hash: 86aa256dd5, Model: AWPortrait_v1.1, Denoising strength: 0.3, Hires upscale: 2, Hires upscaler: 8x_NMKD-Superscale_150000_G, Version: v1.4.0

具体解释:

质量:masterpiece, best quality,
人物:1girl
背景:rainbow and purple swirling vortexes colourful cloudy and smoke and colorful background (彩虹和紫色旋转漩涡多彩多云和烟雾和彩色背景)
头发:(snowing) (( swirling vortexes colourful hair)) (下雪 旋转漩涡七彩头发)
穿搭:wear white fur coat (穿白色毛皮大衣)
镜头:((front)), emotional face, close up
场景:studio light, studio,
妆容:(((makeup portrait, pink eye shadow)))
特色:((with many purple rainbow swirling vortexes colourful snow and feather on face))

效果:

AW

### Stable Diffusion-XL 模型介绍 Stable Diffusion-XL (SDXL) 是一种先进的图像生成模型,其具体架构之前的版本相似但具有更大规模和更多参数量[^1]。该模型旨在提供更高质量的图像生成效果,在保持计算效率的同时提升了视觉质量。 #### SDXL Refiner 模型 除了基础模型外,还存在一个名为 `stable-diffusion-xl-refiner-1.0` 的细化模型。此模型基于潜在扩散机制工作,专注于改善由基础模型产生的初步图像的质量。Refiner 主要用于执行最终阶段的降噪操作,从而增强图像细节并提高整体清晰度[^2]。 ### 使用方法 为了方便用户访问多种不同的预训练权重文件,一些第三方工具已经集成了多个版本的 SDXL 模型。例如,在 AUTOMATIC1111 开发的 WebUI 中可以找到如下几个选项: - `sd_xl_base_1.0.safetensors`: 基础版 SDXL 模型 - `animagine-xl-3.0-base.safetensors`: 另一变体的基础模型 - `Anything-V3.0-pruned.safetensors`: 经过剪枝优化后的特定风格化模型 这些模型可以通过图形界面轻松加载,并支持自定义设置来调整生成过程中的各项参数[^3]。 对于希望利用 Python 编程接口调用 SDXL 功能的应用开发者来说,有教程介绍了如何借助百度 API 实现这一点。这使得即使不具备深厚机器学习背景的人也能快速上手创建自己的艺术作品或实用程序[^4]。 ```python from diffusers import StableDiffusionPipeline, EulerAncestralDiscreteScheduler import torch model_id = "stabilityai/stable-diffusion-xl-base-1.0" scheduler = EulerAncestralDiscreteScheduler.from_pretrained(model_id, subfolder="scheduler") pipe = StableDiffusionPipeline.from_pretrained(model_id, scheduler=scheduler, torch_dtype=torch.float16).to("cuda") prompt = "A majestic lion jumping from a big stone at night" image = pipe(prompt=prompt).images[0] image.save("./output_image.png") ``` 上述代码片段展示了如何使用 Hugging Face 提供的库加载并运行 SDXL 模型以生成指定主题的艺术图片。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

ManonLegrand

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值