🚀 MJv6 Mix2 LoRA模型
MJv6 Mix2 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-Midjourney-Mix2-LoRA"
trigger_word = "MJ v6"
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
触发词
你应该使用 MJ v6
来触发图像生成。
✨ 主要特性
- 多风格支持:能够生成多种风格的图像,如街头摄影、复古摄影、桌面摄影等。
- 高质量图像:生成的图像具有高分辨率和丰富的细节。
- 特定场景优化:在真实感、模特展示、特写镜头等场景下表现出色。
📦 安装指南
此部分文档未提供具体安装步骤,故跳过。
💻 使用示例
基础用法
在输入提示词时,加上触发词 MJ v6
即可生成相应风格的图像。例如:
MJ v6, Portrait photography of a woman in a red dress, in the style of unsplash photography, street photography, dark green background --ar 47:64 --v 6.0 --style raw
高级用法
可以根据不同的参数调整图像的生成效果,如宽高比(--ar
)、版本(--v
)等。例如:
MJ v6, A portrait of a Bird in the dark, illuminated by an intense yellow light from above, with a soft blue gradient background. This scene evokes a sense of mystery or contemplation, highlighting the beauty of the subjects features against the contrasting backdrop, lens glossy effect, high contrast, star bokeh --ar 85:128 --v 6.0 --style raw
📚 详细文档
模型信息
图像示例
提示词 |
生成图像 |
'MJ v6, Portrait photography of a woman in a red dress, in the style of unsplash photography, street photography, dark green background --ar 47:64 --v 6.0 --style raw' |
 |
'MJ v6, A portrait of a Bird in the dark, illuminated by an intense yellow light from above, with a soft blue gradient background. This scene evokes a sense of mystery or contemplation, highlighting the beauty of the subjects features against the contrasting backdrop, lens glossy effect, high contrast, star bokeh ' |
 |
'MJ v6, A photo of an attractive man in his thirties, wearing a black coat and yellow scarf with a brown pattern inside a building talking on a phone standing near a modern glass skyscraper in London, shot from below looking up at him in the style of street photography, cinematic. --ar 85:128 --v 6.0 --style raw' |
 |
'MJ v6, banana bread with chocolate chips and pecans, in the style of tabletop photography, y2k aesthetic, spiky mounds, flawless line work, schlieren photography, 8k, natural fibers, minimal --ar 123:185 --v 5 ' |
 |
'MJ v6, A portrait of Woman, fashion photography, big shapes in the background, on top of colorful squares with stars, in the style of retro vintage photography, pastel colors, soft purple and yellow ' |
 |
'MJ v6, delicious dipped chocolate pastry japo gallery, white background, in the style of dark brown, close-up intensity, duckcore, rounded, high resolution --ar 2:3 --v 5' |
 |
图像生成参数
参数 |
值 |
参数 |
值 |
学习率调度器 |
constant |
噪声偏移 |
0.03 |
优化器 |
AdamW8 |
多分辨率噪声折扣 |
0.1 |
网络维度 |
64 |
多分辨率噪声迭代次数 |
10 |
网络阿尔法 |
32 |
重复次数与步数 |
25 & 3660 |
训练轮数 |
28 |
每N轮保存一次 |
1 |
最佳尺寸
- 768 x 1024(最佳)
- 1024 x 1024(默认)
标注信息
标注使用 florence2-en(自然语言 & 英语)。
训练数据
总共使用 36 张图像进行训练。
🔧 技术细节
此部分文档未提供具体技术细节,故跳过。
📄 许可证
本模型使用 flux-1-dev-non-commercial-license 许可证,具体信息请查看 许可证链接。
📥 下载模型
此模型的权重以 Safetensors 格式提供。
你可以在 Files & versions 标签页 下载。
