🚀 BRIA 2.3 ControlNet ColorGrid模型卡片
BRIA 2.3 ControlNet-ColorGrid基於BRIA 2.3文本到圖像模型進行訓練,它能夠依據文本提示和從輸入圖像中提取的顏色網格,生成高質量圖像。這使得用戶可以創建共享相同顏色網格的不同場景圖像。
BRIA 2.3是完全基於我們尊貴數據合作伙伴的授權數據從頭開始訓練的。因此,該模型可安全用於商業用途,併為版權和隱私侵權以及有害內容緩解提供全面的法律責任保障。也就是說,我們的數據集不包含受版權保護的材料,如虛構角色、標誌、商標、公眾人物、有害內容或侵犯隱私的內容。

✨ 主要特性
- 開發方:BRIA AI
- 模型類型:用於潛在擴散的ControlNet
- 許可證:bria-2.3
- 模型描述:用於BRIA 2.3文本到圖像模型的ControlNet ColorGrid。該模型可根據RGB顏色的空間網格生成圖像。
- 更多信息資源:BRIA AI
🚀 快速開始
BRIA 2.3 ControlNet-ColorGrid需要訪問BRIA 2.3文本到圖像模型。更多信息請點擊此處。
📦 安裝指南
pip install diffusers
💻 使用示例
基礎用法
from diffusers import ControlNetModel, StableDiffusionXLControlNetPipeline
import torch
from PIL import Image
controlnet = ControlNetModel.from_pretrained(
"briaai/BRIA-2.3-ControlNet-ColorGrid",
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 = Image.open('pics/singer.png')
control_image = input_image.resize((16, 16)).resize((1024,1024), Image.NEAREST)
image = pipe(prompt=prompt, negative_prompt=negative_prompt, image=control_image, controlnet_conditioning_scale=1.0, height=1024, width=1024).images[0]
📄 許可證
本模型使用的許可證為 bria-2.3,該模型權重由BRIA AI提供,需在達成商業許可協議後獲取。請填寫以下表格,我們會與您聯繫。