🚀 3DXL Partfile 0001模型
3DXL Partfile 0001是一個用於圖像生成的模型,基於特定的基礎模型和參數訓練而成,能夠根據輸入的文本生成多樣化的圖像。
🚀 快速開始
模型設置
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-3DXL-Partfile-0001"
trigger_word = "3DXLP1"
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
觸發詞使用
你應該使用 3DXLP1
來觸發圖像生成。
✨ 主要特性
- 多樣化圖像生成:可以根據不同的文本描述生成各種風格和主題的圖像,如不同人物形象等。
- 特定參數優化:通過特定的圖像生成參數設置,如學習率調度器、優化器等,提升圖像生成效果。
📦 安裝指南
暫未提供具體安裝步驟,可參考代碼示例中的導入和設置部分。
💻 使用示例
基礎用法
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-3DXL-Partfile-0001"
trigger_word = "3DXLP1"
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
text = f"{trigger_word}, a medium-sized woman stands in front of a dark gray background. She is dressed in a black bra, adorned with a scalloped design. Her hair is styled in a sleek bob, adding a touch of texture to her face. Her lips are painted a vibrant red, while her lips are pursed. Her right hand is raised in the air, holding a cigarette in her left hand. Her eyes are a piercing blue, and her eyebrows are a darker shade of brown. The lighting is subdued, creating a stark contrast against the dark background."
image = pipe(text).images[0]
image.show()
📚 詳細文檔
模型描述

圖像生成參數
參數 |
值 |
參數 |
值 |
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 |
25 & 3100 |
Epoch |
20 |
Save Every N Epochs |
1 |
標註信息
標註使用 florence2 - en(自然語言 & 英語)。
訓練圖像數量
總共使用了 27 張圖像進行訓練。
最佳尺寸與推理
尺寸與推薦
尺寸 |
寬高比 |
推薦情況 |
1280 x 832 |
3:2 |
最佳 |
1024 x 1024 |
1:1 |
默認 |
推理範圍
下載模型
該模型的權重以 Safetensors 格式提供。
點擊下載(在文件與版本標籤中)。
📄 許可證
本模型使用 creativeml - openrail - m 許可證。