| | --- |
| | tags: |
| | - text-to-image |
| | - lora |
| | - diffusers |
| | - template:diffusion-lora |
| | widget: |
| | - text: '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.' |
| | output: |
| | url: images/111.png |
| | - text: '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.' |
| | output: |
| | url: images/222.png |
| | - text: '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.' |
| | output: |
| | url: images/333.png |
| | - text: '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.' |
| | output: |
| | url: images/444.png |
| | base_model: black-forest-labs/FLUX.1-dev |
| | instance_prompt: Cardboard v2 |
| | license: other |
| | license_name: flux-1-dev-non-commercial-license |
| | license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md |
| | --- |
| | |
| |  |
| |
|
| | # Cardboard-v2-Flux |
| |
|
| | <Gallery /> |
| |
|
| | # 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 |
| |
|
| | ## Setting Up |
| | ```python |
| | 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](/strangerzonehf/Cardboard-v2-Flux/tree/main) them in the Files & versions tab. |
| |
|