🚀 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]
🔍 模型效果展示
示例圖像