🚀 Flux-Automotive-X1-LoRA模型
Flux-Automotive-X1-LoRA是一款专注于汽车主题的文本到图像生成模型。它基于特定的基础模型进行微调,能根据给定的文本描述生成高质量的汽车相关图像,适用于汽车设计、广告宣传等领域。

🚀 快速开始
环境设置
import torch
from pipelines import DiffusionPipeline
base_model = "black-forest-labs/FLUX.1-dev"
pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16)
lora_repo = "strangerzonehf/Flux-Automotive-X1-LoRA"
trigger_word = "Automotive X1"
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
触发词使用
你应该使用 Automotive X1
来触发图像生成。
模型下载
此模型的权重以Safetensors格式提供。你可以在Files & versions标签页下载。
✨ 主要特性
- 多样化的汽车场景生成:能够根据不同的文本描述,生成各种场景下的汽车图像,如夜晚的土路、沙漠、雪山等。
- 精细的图像处理参数:通过一系列的图像参数设置,如LR Scheduler、Optimizer等,确保生成图像的高质量。
- 多维度支持:提供不同的图像尺寸和宽高比选择,满足不同的使用需求。
📦 安装指南
暂未提供具体的安装步骤,可参考上述快速开始部分的代码示例进行环境设置。
💻 使用示例
基础用法
import torch
from pipelines import DiffusionPipeline
base_model = "black-forest-labs/FLUX.1-dev"
pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16)
lora_repo = "strangerzonehf/Flux-Automotive-X1-LoRA"
trigger_word = "Automotive X1"
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
text = 'Automotive X1, Captured at eye-level on a dark night, a yellow jeep is parked on a dirt road. The jeeps front bumper is adorned with a black grille, and a yellow headlight. A green inflatable raft is on top of the jeep, with the word "Tropor" written in white on the side. The front of the vehicle is covered in dirt, and there are rocks and grass on the ground.'
image = pipe(text).images[0]
image.show()
📚 详细文档
图像处理参数
参数 |
详情 |
LR Scheduler |
constant |
Noise Offset |
0.03 |
Optimizer |
AdamW |
Multires Noise Discount |
0.1 |
Network Dim |
64 |
Network Alpha |
32 |
Epoch |
15 |
Save Every N Epochs |
1 |
Multires Noise Iterations |
10 |
Repeat & Steps |
25 & 2900 |
最佳尺寸与推理
尺寸 |
宽高比 |
推荐情况 |
1280 x 832 |
3:2 |
最佳 |
1024 x 1024 |
1:1 |
默认 |
推理范围
标注信息
标注使用:florence2 - en(自然语言 & 英语)
训练使用的总图像数
训练使用的总图像数:20
📄 许可证
本模型使用的许可证为:creativeml - openrail - m