🚀 Flux-Lego-Ref-LoRA
Flux-Lego-Ref-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 = "prithivMLmods/Flux-Lego-Ref-LoRA"
trigger_word = "lego --fref --89890"
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
触发图像生成
你应该使用 lego --fref --89890
来触发图像生成。
下载模型
该模型的权重以Safetensors格式提供。
点击下载,可在“Files & versions”标签中获取。
✨ 主要特性
- 乐高风格图像生成:能够根据输入的文本描述,生成具有乐高特色的图像,如乐高星球大战人物、玩具机器人、乐高宇航员等。
- 多种场景支持:可以生成不同场景下的图像,如雪地、空中、岩石地等,满足多样化的创作需求。
📦 安装指南
暂未提供具体安装步骤。
💻 使用示例
基础用法
以下是几个使用该模型生成图像的文本输入示例及对应的输出图像:
lego --fref --89890, a Lego Star Wars figure stands in a pile of snow. The figure is adorned with a white snow-covered hat, a white coat, and a black and white striped jacket. The face of the figure is yellow, and the eyes are blue. The background is a grayish-gray color, and there are small white dots dotting the top of the image.
输出图像:点击查看
lego --fref --89890, a toy robot is soaring through the air. The robot is dressed in a red jumpsuit, adorned with a black helmet and goggles. The toy is holding a small camera in its right hand. The camera has a black lens, and a yellow handle. The sky is a deep blue, dotted with white clouds, adding a pop of color to the scene.
输出图像:点击查看
高级用法
暂未提供高级用法示例。
📚 详细文档
模型描述
prithivMLmods/Flux-Lego-Ref-LoRA
图像处理参数
属性 |
详情 |
学习率调度器(LR Scheduler) |
constant |
优化器(Optimizer) |
AdamW |
网络维度(Network Dim) |
64 |
网络阿尔法(Network Alpha) |
32 |
训练轮数(Epoch) |
10 |
噪声偏移(Noise Offset) |
0.03 |
多分辨率噪声折扣(Multires Noise Discount) |
0.1 |
多分辨率噪声迭代次数(Multires Noise Iterations) |
10 |
重复次数与步数(Repeat & Steps) |
17 & 2350 |
每N轮保存一次(Save Every N Epochs) |
1 |
标注信息
标注方式:florence2-en(自然语言 & 英语)
训练数据
总共使用的图像数量:15
最佳尺寸与推理
尺寸 |
宽高比 |
推荐情况 |
1280 x 832 |
3:2 |
最佳 |
1024 x 1024 |
1:1 |
默认 |
推理范围
🔧 技术细节
暂未提供相关技术细节。
📄 许可证
本模型使用的许可证为:creativeml-openrail-m
⚠️ 重要提示
该模型仍处于训练阶段,这不是最终版本,可能会包含瑕疵,并且在某些情况下表现不佳。