🚀 Flux-Midjourney-Studio-LoRA
Flux-Midjourney-Studio-LoRA 是一个文本到图像的 LoRA 模型,借助它,你可以根据文本提示生成特定风格的图像,在图像创作领域有着广泛的应用价值。
示例展示
文本提示 |
输出图像 |
mj x1, a close-up shot of a man with short platinum blonde hair and olive skin, dressed in a black crew neck t-shirt. He has a silver nose ring and a small teardrop tattoo under his left eye. The studio lighting casts a soft shadow under his chin, giving dimension to his jawline. The background is a gradient from pale blue to white. |
查看 |
mj x1, A close-up of a young man with dark brown eyes and wavy black hair. He is wearing a dark green trench coat with a high collar and a light brown scarf around his neck. The backdrop is a cloudy gray, adding an air of mystery to the scene. |
查看 |
mj x1, a close-up shot of a young mans face is adorned with a beige baseball cap adorned with red lettering. The mans eyes are a piercing blue, and he is wearing a pink t-shirt. His hair is dark brown, adding a touch of texture to his face. The backdrop is a vibrant shade of blue, creating a stark contrast to the mans head and the cap. |
查看 |
mj x1, cinematic shot, a medium-sized man stands in the foreground of the frame. He is dressed in a black jacket, black pants, and a black backpack. His hair is short and dark, and hes looking off to the side. The backdrop is a stark white wall, and the ceiling is adorned with metal pipes and beams. To the left of the man, a man with dark hair and glasses is looking off into the distance. |
查看 |

✨ 主要特性
- 基于
black-forest-labs/FLUX.1-dev
基础模型,通过 LoRA 技术进行微调,能生成符合特定文本提示的图像。
- 提供多种图像生成参数设置,可根据需求调整图像效果。
📚 详细文档
模型描述
图像处理参数
参数 |
值 |
参数 |
值 |
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 |
30 & 3900 |
Epoch |
25 |
Save Every N Epochs |
1 [90] |
- 标注:采用 florence2 - en(自然语言 & 英语)进行标注。
- 训练使用的总图像数:27 张 [Midjourney 生成的合成图像]
最佳尺寸与推理
尺寸 |
宽高比 |
推荐情况 |
1280 x 832 |
3:2 |
最佳 |
1024 x 1024 |
1:1 |
默认 |
推理范围
📦 安装指南
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-Midjourney-Studio-LoRA"
trigger_word = "mj x1"
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
💻 使用示例
基础用法
在生成图像时,你需要使用 mj x1
作为触发词。以下是一个简单的使用示例:
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-Midjourney-Studio-LoRA"
trigger_word = "mj x1"
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
prompt = f"{trigger_word}, a beautiful landscape"
image = pipe(prompt).images[0]
image.save("output.png")
📄 许可证
本模型使用 flux - 1 - dev - non - commercial - license
许可证,详细信息请查看 许可证链接。
🔗 下载模型
本模型的权重以 Safetensors 格式提供。你可以在 Files & versions 标签页 下载。