🚀 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 许可证。