🚀 FLUX - 泰勒·斯威夫特
本项目是一个基于文本到图像转换的模型,专门用于生成与泰勒·斯威夫特相关的逼真图像。借助 Stable Diffusion 和 LoRA 技术,能生成各种风格和场景下的年轻女性图像,为用户带来多样化的视觉体验。
🚀 快速开始
模型下载
此模型的权重以 Safetensors 格式提供。你可以在文件与版本选项卡中下载。
使用 diffusers 库
以下是使用 🧨 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/flux-taylor-swift', weight_name='Flux.TaylorSwift-step00000350.safetensors')
image = pipeline('portrait green hair young woman in a utopian candyland, front view').images[0]
有关加载、合并和融合 LoRA 的更多详细信息,请查看 diffusers 中加载 LoRA 的文档。
✨ 主要特性
- 文本到图像转换:支持根据输入的文本描述生成相应的图像。
- 多种风格图像生成:能够生成如赛博朋克、黑暗森林、乌托邦糖果世界等不同场景下的图像。
- 逼真人物图像:可以生成包括不同发型、穿着的年轻女性以及名人(如泰勒·斯威夫特)的逼真图像。
📦 模型信息
属性 |
详情 |
基础模型 |
black-forest-labs/FLUX.1-dev |
标签 |
text-to-image、stable-diffusion、lora、diffusers、template:sd-lora、migrated、photorealistic、woman、celebrity、realistic |
📄 许可证
本模型使用的许可证为 bespoke-lora-trained-license,允许在一定条件下进行使用,包括无需署名、允许商业图像使用、允许衍生作品和不同许可证。
💻 使用示例
基础用法
以下是使用该模型生成图像的基本代码示例:
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/flux-taylor-swift', weight_name='Flux.TaylorSwift-step00000350.safetensors')
image = pipeline('portrait green hair young woman in a utopian candyland, front view').images[0]
高级用法
你可以根据需要修改输入的文本描述,以生成不同风格和场景的图像。例如:
image = pipeline('blonde young woman in a dark robot suit in a cyberpunk setting at night, front view').images[0]
🔍 模型效果展示
示例图像