🚀 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
許可證。
⚠️ 重要提示
該模型仍處於訓練階段,這不是最終版本,可能包含瑕疵,在某些情況下表現不佳。