🚀 3DXL Partfile 0002模型
3DXL Partfile 0002是一個用於圖像生成的模型,結合了文本到圖像、LoRA等技術,能夠根據特定的文本提示生成高質量的3D風格圖像。
🚀 快速開始
模型設置
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-0002"
trigger_word = "3DXLP2"
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
觸發圖像生成
你應該使用 3DXLP2
來觸發圖像生成。
✨ 主要特性
- 文本到圖像轉換:根據輸入的文本提示生成對應的3D風格圖像。
- LoRA技術:通過低秩自適應(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-3DXL-Partfile-0002"
trigger_word = "3DXLP2"
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
text_prompt = f"{trigger_word}, a man stands in front of a gray backdrop. He is dressed in a brown jacket, a black turtleneck, and a pair of black gloves."
image = pipe(text_prompt).images[0]
image.save("output_image.png")
📚 詳細文檔
模型描述
圖像處理參數
參數 |
值 |
參數 |
值 |
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 |
23 & 3000 |
Epoch |
20 |
Save Every N Epochs |
1 |
標註:florence2 - en(自然語言 & 英語)
訓練使用的總圖像數:19
最佳尺寸與推理
尺寸 |
寬高比 |
推薦情況 |
1280 x 832 |
3:2 |
最佳 |
1024 x 1024 |
1:1 |
默認 |
推理範圍
🔧 技術細節
該模型基於 black-forest-labs/FLUX.1-dev
基礎模型,使用LoRA技術進行微調。訓練過程中使用了特定的圖像處理參數,如LR Scheduler、Optimizer等,以優化模型性能。標註採用 florence2 - en
進行自然語言和英語標註,共使用了19張圖像進行訓練。在推理時,推薦使用特定的尺寸和推理步數,以獲得最佳效果。
📄 許可證
本模型使用 creativeml-openrail-m
許可證。
模型下載
本模型的權重以Safetensors格式提供。
點擊下載(在文件與版本選項卡中)。

示例圖像
- 示例1
- 文本提示:3DXLP2, a man stands in front of a gray backdrop. He is dressed in a brown jacket, a black turtleneck, and a pair of black gloves. His hands are crossed over his chest, adding a touch of warmth to his outfit. His hair is short and receding, and his eyes are squinted. His mouth is slightly open, and he has a serious expression on his face.
- 輸出圖像:點擊查看
- 示例2
- 文本提示:3DXLP2, A close-up shot of a womans face, taken from a low-angle perspective. The womans eyes are wide open, and her lips are pursed. She is wearing a black shirt, adorned with gold hoop earrings, and a gold necklace. Her hair is styled in a braided bun, and she is sporting a silver nose ring. The backdrop is a light gray, and the womans hair is pulled back in a ponytail.
- 輸出圖像:點擊查看
- 示例3
- 文本提示:3DXLP2, a close-up shot of a mans face is featured prominently in the center of the frame. He is dressed in a red spiderman costume, adorned with a red and gold spiderman suit jacket. His hair is styled in a spiky manner, adding a touch of texture to his face. His eyes are a piercing blue, and his eyebrows are a darker shade of brown. His lips are a lighter shade of pink, and he has a slight smile on his lips. The backdrop is a light gray, and the mans shirt is adorned with golden spiderman webbing.
- 輸出圖像:點擊查看
- 示例4
- 文本提示:3DXLP2, a close-up shot of a mans face features a goatee and a brown cowboy hat. His eyes are a piercing blue, and his eyebrows are a darker shade of brown. His lips are a lighter shade of pink, and he is wearing a blue collared button-down shirt with a white stripe down the collar. His hair is a light brown, and the hat is a dark brown. The background is blurred, but the sky is a soft gray.
- 輸出圖像:點擊查看