Mixer Adp 042025
Collection
6 items β’ Updated β’ 3
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", dtype=torch.bfloat16, device_map="cuda")
pipe.load_lora_weights("strangerzonehf/Cardboard-v2-Flux")
prompt = "Cardboard v2, a cardboard cutout of a bald mans face is adorned with a black beard and mustache. The mans head is encased in a pair of pink headphones that are attached to his head. The headphones have a thin pink cord running from the bottom to the top of the ears. The background is a vibrant turquoise color, adding a pop of color to the scene."
image = pipe(prompt).images[0]



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 | 20 & 2950 |
| Epoch | 24 | Save Every N Epochs | 1 |
Labeling: florence2-en(natural language & English)
Total Images Used for Training : 21
| Dimensions | Aspect Ratio | Recommendation |
|---|---|---|
| 1280 x 832 | 3:2 | Best |
| 1024 x 1024 | 1:1 | Default |
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/Cardboard-v2-Flux "
trigger_word = "Cardboard v2"
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
You should use Cardboard v2 to trigger the image generation.
Weights for this model are available in Safetensors format.
Download them in the Files & versions tab.
Base model
black-forest-labs/FLUX.1-dev