🚀 桑德拉·布洛克(Sandra Bullock)LoRA模型
本項目是一個基於Stable Diffusion的LoRA模型,用於生成桑德拉·布洛克相關的圖像。通過特定的觸發詞,能夠精準生成不同場景下桑德拉·布洛克的圖像,為文本到圖像的創作提供了豐富的可能性。
🚀 快速開始
觸發詞
你應該使用 sandrab
來觸發圖像生成。
下載模型
此模型的權重以Safetensors格式提供。你可以在 Files & versions 標籤頁 下載。
使用🧨 diffusers庫
from diffusers import AutoPipelineForText2Image
import torch
device = "cuda" if torch.cuda.is_available() else "cpu"
pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.bfloat16).to(device)
pipeline.load_lora_weights('Keltezaa/sandra-bullock', weight_name='sandrab.safetensors')
image = pipeline(' full body shot, wearing jeans, wearing a grey no sleeve tank top, hair is a straight short bob with bangs, standing next to a city bus, from the movie speed., smiling, happy,').images[0]
更多詳細信息,包括權重調整、合併和融合LoRA的內容,請查看 diffusers中加載LoRA的文檔。
✨ 主要特性
- 文本到圖像轉換:基於輸入的文本描述,生成高質量的桑德拉·布洛克相關圖像。
- 特定場景生成:能夠根據不同的場景描述,如電影《生死時速》中的場景,生成相應的圖像。
📦 安裝指南
暫未提供具體安裝步驟,可參考上述使用 diffusers
庫的代碼示例進行操作。
💻 使用示例
基礎用法
from diffusers import AutoPipelineForText2Image
import torch
device = "cuda" if torch.cuda.is_available() else "cpu"
pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.bfloat16).to(device)
pipeline.load_lora_weights('Keltezaa/sandra-bullock', weight_name='sandrab.safetensors')
image = pipeline(' short hair, wearing an old grey sweater, as she sits in a cafe,, smiling, happy,').images[0]
高級用法
from diffusers import AutoPipelineForText2Image
import torch
device = "cuda" if torch.cuda.is_available() else "cpu"
pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.bfloat16).to(device)
pipeline.load_lora_weights('Keltezaa/sandra-bullock', weight_name='sandrab.safetensors')
image1 = pipeline(' wearing a grey no sleeve tank top, hair is a straight short bob with bangs, and she''s driving a city bus, from the movie speed.').images[0]
image2 = pipeline(' full body shot, wearing jeans, wearing a grey no sleeve tank top, hair is a straight short bob with bangs, standing next to a city bus, from the movie speed., smiling, happy,').images[0]
📚 詳細文檔
模型描述
大多數圖像是在她拍攝《生死時速》那段時間採樣的。關注我獲取更多內容。
示例圖像
文本描述 |
輸出圖像 |
短髮,穿著一件舊的灰色毛衣,坐在咖啡館裡,微笑著,很開心 |
點擊查看 |
穿著灰色無袖背心,留著齊肩直髮波波頭,留著劉海,正在駕駛一輛城市公交車,出自電影《生死時速》 |
點擊查看 |
全身照,穿著牛仔褲,穿著灰色無袖背心,留著齊肩直髮波波頭,留著劉海,站在一輛城市公交車旁,出自電影《生死時速》,微笑著,很開心 |
點擊查看 |
📄 許可證
本模型使用 定製LoRA訓練許可證。
標籤
- 文本到圖像
- 穩定擴散
- LoRA
- Diffusers
- 模板:SD-LoRA
- 遷移
- 名人
基礎模型
black-forest-labs/FLUX.1-dev
實例提示詞
sandrab