🚀 Flux.1-Dev-Indo-Realism-LoRA
本模型是一个用于图像生成的LoRA模型,基于black-forest-labs/FLUX.1-dev
基础模型训练,能生成具有印度现实主义风格的图像。目前模型仍在训练阶段,并非最终版本,可能存在瑕疵,部分情况下表现不佳。
🚀 快速开始
环境设置
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 = "prithivMLmods/Flux.1-Dev-Indo-Realism-LoRA"
trigger_word = "indo-realism"
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
触发词使用
你应该使用 indo-realism
来触发图像生成。
模型下载
此模型的权重以Safetensors格式提供。
点击下载,可在“文件与版本”选项卡中获取。
✨ 主要特性
- 图像风格:能够生成具有印度现实主义风格的图像,包含多种场景和人物形象。
- 参数可调节:在图像生成过程中,可调整多个参数以获得不同效果。
📦 安装指南
使用前请确保已安装必要的库,如 torch
和 pipelines
中的 DiffusionPipeline
。
💻 使用示例
基础用法
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 = "prithivMLmods/Flux.1-Dev-Indo-Realism-LoRA"
trigger_word = "indo-realism"
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
prompt = f'{trigger_word}, Purple Dreamy, a medium - angle shot of a young woman with long brown hair, wearing a pair of eye - level glasses, stands in front of a backdrop of purple and white lights. The womans eyes are closed, her lips are slightly parted, as if she is looking up at the sky. Her hair is cascading over her shoulders, framing her face. She is wearing a sleeveless bra, adorned with tiny white dots, and a gold chain necklace around her neck. Her left earrings are dangling from her ears, adding a pop of color to the scene.'
image = pipe(prompt).images[0]
image.save("output.png")
📚 详细文档
模型描述
prithivMLmods/Flux.1-Dev-Indo-Realism-LoRA
图像参数设置如下:
参数 |
值 |
参数 |
值 |
LR调度器 |
constant |
噪声偏移 |
0.03 |
优化器 |
AdamW |
多分辨率噪声折扣 |
0.1 |
网络维度 |
64 |
多分辨率噪声迭代次数 |
10 |
网络Alpha |
32 |
重复与步数 |
20 & 3000 |
轮数 |
20 |
每N轮保存一次 |
1 |
标注:florence2 - en(自然语言与英语)
训练使用的总图像数:26
最佳尺寸
- 768 x 1024(最佳)
- 1024 x 1024(默认)
📄 许可证
本模型使用 creativeml-openrail-m
许可证。
⚠️ 重要提示
该模型仍处于训练阶段,这不是最终版本,可能包含瑕疵,在某些情况下表现不佳。