🚀 FLUX - 亚历山德拉·达达里奥
本项目是一个基于文本到图像生成的模型,可生成以亚历山德拉·达达里奥为主题的逼真图像,适用于幻想世界等多种场景。
🚀 快速开始
模型下载
此模型的权重以Safetensors格式提供。你可以在文件与版本标签页中下载。
使用🧨 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-alexandra-daddario', weight_name='Flux.Daddario-step00000400.safetensors')
image = pipeline('portrait of a women in a fantasy world').images[0]
有关更多详细信息,包括LoRA的加权、合并和融合,请查看diffusers中加载LoRA的文档。
💻 使用示例
基础用法
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-alexandra-daddario', weight_name='Flux.Daddario-step00000400.safetensors')
image = pipeline('portrait of a women in a fantasy world').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/flux-alexandra-daddario', weight_name='Flux.Daddario-step00000400.safetensors')
image = pipeline('portrait of a beautiful women in a magical fantasy world').images[0]
📄 许可证
本模型采用定制LoRA训练许可证。
属性 |
详情 |
模型类型 |
基于Stable Diffusion的LoRA模型 |
基础模型 |
black-forest-labs/FLUX.1-dev |