🚀 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 標籤頁 下載。
