🚀 Flux-Mexican-CPunk-LoRA模型
Flux-Mexican-CPunk-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-Mexican-CPunk-LoRA"
trigger_word = "Mexican Cyberpunk"
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
触发词使用
你应该使用 Mexican Cyberpunk
来触发图像生成。
模型下载
此模型的权重以Safetensors格式提供。
点击下载,在 “Files & versions” 标签中获取。
✨ 主要特性
- 风格独特:能够生成具有墨西哥赛博朋克风格的图像,融合了墨西哥文化元素与赛博朋克的未来感。
- 参数可调节:提供了丰富的图像处理参数,可根据需求进行调整。
📦 安装指南
暂未提供具体安装步骤,可参考上述快速开始中的环境设置部分。
💻 使用示例
基础用法
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-Mexican-CPunk-LoRA"
trigger_word = "Mexican Cyberpunk"
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
prompt = 'Mexican Cyberpunk, A side-view drawing of a vibrant orange motorcycle parked against a graffiti-covered wall. The motorcycle has glowing purple wheels and a black, sleek body with a logo reading "RAPTOR MX." Above the bike, the wall features a mural of a futuristic Aztec warrior in neon green and pink tones. The background is a mix of vibrant urban decay and glowing holographic advertisements.'
image = pipe(prompt).images[0]
image.save("output.png")
📚 详细文档
图像处理参数
参数 |
值 |
参数 |
值 |
LR Scheduler |
constant |
Noise Offset |
0.03 |
Optimizer |
AdamW |
Multires Noise Discount |
0.1 |
Network Dim |
64 |
Multires Noise Iterations |
10 |
Network Alpha |
32 |
Repeat & Steps |
16 & 2200 |
Epoch |
15 |
Save Every N Epochs |
1 |
标注信息
标注方式:florence2 - en(自然语言 & 英语)
训练使用的总图像数
用于训练的总图像数:14 [自动填充]
最佳尺寸与推理
尺寸 |
纵横比 |
推荐情况 |
1280 x 832 |
3:2 |
最佳 |
1024 x 1024 |
1:1 |
默认 |
推理范围
🔧 技术细节
暂未提供相关技术细节。
📄 许可证
本模型使用的许可证为:creativeml - openrail - m。
