🚀 BRIA 2.3 ControlNet Pose模型卡片
BRIA 2.3 ControlNet-Pose基于BRIA 2.3文本到图像模型进行训练,它能够根据文本提示和输入图像的人体姿态估计,生成高质量的图像。这使得用户可以创建具有相同人体姿态的不同图像变体。
点击此处查看演示
BRIA 2.3是完全基于我们尊贵数据合作伙伴的授权数据从头开始训练的。因此,该模型可安全用于商业用途,并为版权和隐私侵权以及有害内容缓解提供全面的法律责任保障。也就是说,我们的数据集不包含受版权保护的材料,如虚构角色、标志、商标、公众人物、有害内容或侵犯隐私的内容。
加入我们的Discord社区,获取更多信息、教程、工具,并与其他用户交流!

✨ 主要特性
- 基于强大基础:在BRIA 2.3文本到图像模型基础上训练,生成图像质量高。
- 姿态引导生成:可根据输入图像的人体姿态估计生成具有相同姿态的不同图像变体。
- 商业安全可靠:使用授权数据训练,可安全用于商业用途,提供法律责任保障。
📦 安装指南
安装controlnet_aux
$ pip install controlnet_aux
安装diffusers
及相关包
$ pip install diffusers transformers accelerate
💻 使用示例
基础用法
from diffusers import ControlNetModel, StableDiffusionXLControlNetPipeline
from controlnet_aux import OpenposeDetector
import torch
from diffusers.utils import load_image
from PIL import Image
controlnet = ControlNetModel.from_pretrained(
"briaai/BRIA-2.3-ControlNet-Pose",
torch_dtype=torch.float16
)
pipe = StableDiffusionXLControlNetPipeline.from_pretrained(
"briaai/BRIA-2.3",
controlnet=controlnet,
torch_dtype=torch.float16,
)
pipe.to("cuda")
prompt = "Two kids in bright orange jackets play near a blue tent in a forest with silver-leafed trees.,photography"
negative_prompt = "Logo,Watermark,Text,Ugly,Morbid,Extra fingers,Poorly drawn hands,Mutation,Blurry,Extra limbs,Gross proportions,Missing arms,Mutated hands,Long neck,Duplicate,Mutilated,Mutilated hands,Poorly drawn face,Deformed,Bad anatomy,Cloned face,Malformed limbs,Missing legs,Too many fingers"
openpose = OpenposeDetector.from_pretrained('lllyasviel/ControlNet')
image = load_image("https://huggingface.co/briaai/BRIA-2.3-ControlNet-Pose/resolve/main/test_image.jpg")
pose_image = openpose(image, include_body=True, include_hand=True, include_face=True)[0]
if type(pose_image) == tuple:
pose_image = pose_image[0]
image = pipe(prompt=prompt, negative_prompt=negative_prompt, image=pose_image, controlnet_conditioning_scale=1.0, height=1024, width=1024).images[0]
📚 详细文档
模型描述
属性 |
详情 |
开发者 |
BRIA AI |
模型类型 |
用于潜在扩散的ControlNet |
许可证 |
bria-2.3 |
模型说明 |
用于BRIA 2.3文本到图像模型的ControlNet姿态模型。该模型根据文本和条件图像的姿态估计图像生成图像。 |
更多信息资源 |
BRIA AI |
获取访问权限
BRIA 2.3 ControlNet-Pose需要访问BRIA 2.3文本到图像模型。更多信息请点击此处。
📄 许可证
该模型使用的许可证为 bria-2.3。
⚠️ 重要提示
此模型由BRIA AI提供的权重,需在达成商业许可协议后才能获取。请填写以下表格,我们会与您联系。
💡 使用建议
加入Discord社区,可以获取更多信息、教程和工具,还能与其他用户交流使用经验。