đ 3DXL Partfile 0004
This is a text - to - image LoRA model based on the Diffusers library, which can generate specific styles of images according to the input text.
đ Quick Start
Environment Setup
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-0004"
trigger_word = "3DXLP4"
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
Image Generation
You should use 3DXLP4
to trigger the image generation.
⨠Features
Model Widget
- You can input text descriptions to generate corresponding images. Here are some examples:
- Input: '3DXLP4, a medium - sized African - American man stands in front of a backdrop of a cityscape. The mans upper torso is adorned with tattoos, including a cross, a gold chain, and a gold bracelet. He is wearing a gold ring, a silver watch, and blue jeans with a black belt. His hair is short and dark, and he is wearing a white bandana tied around his head. The backdrop is a deep blue, with a few buildings visible in the distance.'
- Input: '3DXLP4, A close - up portrait of a man in a black suit with a black collared button down shirt and a black and white striped tie. The man has dark brown hair and blue eyes. The background is completely dark, creating a stark contrast to the mans face.'
- Input: '3DXLP4, a blonde woman, wearing a pink bikini, adorned with a gold necklace and matching earrings, stands in front of a dark gray backdrop. She is striking a seductive pose, with her right hand on her hip, adding a pop of color to the scene. The womans lips are pursed, her lips are painted a deep pink, and her hair is a light blonde, her bangs are a darker shade of black, while her left hand is a gold ring.'
- Input: '3DXLP4, Captured in a close - up, eye - level shot, a woman with long, straight red hair, wearing a red strapless bra, is striking a pose with a lollipop in her right hand. Her lips are painted a vibrant red, adding a pop of color to her face. Her eyes are a piercing blue, while her lips are a darker red. The backdrop is a stark gray, with a statue of liberty in the upper right corner.'
đ Documentation
Model Description
Image Processing Parameters
Parameter |
Value |
Parameter |
Value |
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 |
17 & 2550 |
Epoch |
20 |
Save Every N Epochs |
1 |
Labeling
The labeling is based on florence2 - en (natural language & English).
Training Data
Total Images Used for Training: 14
Best Dimensions & Inference
Dimensions |
Aspect Ratio |
Recommendation |
1280 x 832 |
3:2 |
Best |
1024 x 1024 |
1:1 |
Default |
Inference Range
- Recommended Inference Steps: 30â35
đ License
This model is licensed under the creativeml - openrail - m license.
đģ Usage Examples
Basic Usage
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-0004"
trigger_word = "3DXLP4"
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
prompt = f"{trigger_word}, a simple scene description"
image = pipe(prompt).images[0]
image.save("generated_image.png")
đĻ Download model
Weights for this model are available in Safetensors format.
Download them in the Files & versions tab.