🚀 BRIA 2.3 ControlNet 重新著色模型卡
BRIA 2.3 ControlNet-重新著色模型基於 BRIA 2.3 文本到圖像 模型訓練而成。它能夠依據文本提示和輸入圖像的灰度圖,生成高質量的圖像。這使得用戶可以創建具有相同幾何結構的不同圖像變體。
BRIA 2.3 模型是完全基於我們尊貴數據合作伙伴提供的授權數據從頭開始訓練的。因此,該模型可安全用於商業用途,並能為版權和隱私侵權以及有害內容緩解提供全面的法律責任保障。也就是說,我們的數據集不包含受版權保護的材料,如虛構角色、標誌、商標、公眾人物、有害內容或侵犯隱私的內容。
加入我們的 Discord 社區,獲取更多信息、教程和工具,並與其他用戶交流!

✨ 主要特性
- 開發方:BRIA AI
- 模型類型:用於潛在擴散的 ControlNet
- 許可證:bria-2.3
- 模型描述:用於 BRIA 2.3 文本到圖像模型的 ControlNet 重新著色模型。該模型可根據文本和條件圖像的灰度圖生成圖像。
- 更多信息資源:BRIA AI
📦 安裝指南
pip install diffusers
💻 使用示例
基礎用法
from diffusers import ControlNetModel, StableDiffusionXLControlNetPipeline
import torch
controlnet = ControlNetModel.from_pretrained(
"briaai/BRIA-2.3-ControlNet-Recoloring",
torch_dtype=torch.float16
)
pipe = StableDiffusionXLControlNetPipeline.from_pretrained(
"briaai/BRIA-2.3",
controlnet=controlnet,
torch_dtype=torch.float16,
)
pipe.to("cuda")
prompt = "A portrait of a Beautiful and playful ethereal singer, golden designs, highly detailed, blurry background"
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"
input_image = cv2.imread('pics/singer.png')
recoloring_image = Image.fromarray(input_image).convert('L').convert('RGB')
image = pipe(prompt=prompt, negative_prompt=negative_prompt, image=recoloring_image, controlnet_conditioning_scale=1.0, height=1024, width=1024).images[0]
📚 詳細文檔
獲取訪問權限
BRIA 2.3 ControlNet-重新著色模型需要訪問 BRIA 2.3 文本到圖像模型。更多信息請 點擊此處。
額外說明
本模型由 BRIA AI 提供的權重,需在達成商業許可協議後才能獲取。請填寫以下表格,我們會與您聯繫。
- 姓名:文本輸入
- 公司/組織名稱:文本輸入
- 組織類型(早期/成長型初創公司、企業、學術機構):文本輸入
- 職位:文本輸入
- 國家:文本輸入
- 電子郵件:文本輸入
- 通過提交此表格,我同意 BRIA 的隱私政策和條款與條件,請見以下鏈接:複選框
📄 許可證
本模型使用的許可證為 bria-2.3。