đ Cardboard-v2-Flux
Cardboard-v2-Flux is a text - to - image model that can generate diverse and vivid images based on given text prompts. It uses LoRA technology and is built on the black - forest - labs/FLUX.1 - dev base model.
đ Quick Start
Setting Up
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)
Trigger words
You should use Cardboard v2
to trigger the image generation.
Download model
Weights for this model are available in Safetensors format.
Download them in the Files & versions tab.
⨠Features
This model can generate various images according to different text prompts, such as images of cardboard cutouts of men with different appearances and backgrounds. Some example prompts and their corresponding output image URLs are as follows:
- Prompt 1: '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.'
- Prompt 2: 'Cardboard v2, a cardboard cutout of a mans face is displayed against a blue backdrop. The mans head is adorned with a brown fedora hat, a white face, and a yellow mustache. His eyes are a piercing blue, and his eyebrows are a lighter shade of yellow. His mustache is a vibrant yellow, adding a pop of color to the scene. He is wearing a brown shirt, and the shirt is a dark brown.'
- Prompt 3: 'Cardboard v2, a cardboard cutout of a man with green skin tone and exaggerated white eyebrows shaped like lightning bolts. He is wearing a purple beret tilted to the side and a red monocle over one eye. His lips are painted matte black, and the background is a glowing lime yellow.'
- Prompt 4: 'Cardboard v2, a cardboard cutout of a mans face painted in grayscale tones is highlighted by a bright neon green mohawk that arcs dramatically to the side. He sports a pair of round, red - tinted sunglasses and a deep purple scarf loosely draped around his neck. The backdrop is a high - saturation magenta, creating a bold visual contrast.'
đĻ Installation
The installation process is included in the "Setting Up" section above.
đģ 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/Cardboard-v2-Flux "
trigger_word = "Cardboard v2"
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
prompt = "Cardboard v2, your custom prompt here"
image = pipe(prompt).images[0]
image.show()
đ Documentation
Model description for Cardboard-v2-Flux
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
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
Trigger words
You should use Cardboard v2
to trigger the image generation.
Download model
Weights for this model are available in Safetensors format.
Download them in the Files & versions tab.
đ License
This model uses the flux - 1 - dev - non - commercial - license
. You can view the full license details here.
