🚀 桑德拉·布洛克(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