Update README.md
Browse files
README.md
CHANGED
|
@@ -19,18 +19,63 @@ widget:
|
|
| 19 |
url: images/444.png
|
| 20 |
base_model: black-forest-labs/FLUX.1-dev
|
| 21 |
instance_prompt: Cardboard v2
|
| 22 |
-
license:
|
|
|
|
|
|
|
| 23 |
---
|
|
|
|
|
|
|
|
|
|
| 24 |
# Cardboard-v2-Flux
|
| 25 |
|
| 26 |
<Gallery />
|
| 27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
## Trigger words
|
| 30 |
|
| 31 |
You should use `Cardboard v2` to trigger the image generation.
|
| 32 |
|
| 33 |
-
|
| 34 |
## Download model
|
| 35 |
|
| 36 |
Weights for this model are available in Safetensors format.
|
|
|
|
| 19 |
url: images/444.png
|
| 20 |
base_model: black-forest-labs/FLUX.1-dev
|
| 21 |
instance_prompt: Cardboard v2
|
| 22 |
+
license: other
|
| 23 |
+
license_name: flux-1-dev-non-commercial-license
|
| 24 |
+
license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md
|
| 25 |
---
|
| 26 |
+
|
| 27 |
+

|
| 28 |
+
|
| 29 |
# Cardboard-v2-Flux
|
| 30 |
|
| 31 |
<Gallery />
|
| 32 |
|
| 33 |
+
# Model description for Cardboard-v2-Flux
|
| 34 |
+
|
| 35 |
+
Image Processing Parameters
|
| 36 |
+
|
| 37 |
+
| Parameter | Value | Parameter | Value |
|
| 38 |
+
|---------------------------|--------|---------------------------|--------|
|
| 39 |
+
| LR Scheduler | constant | Noise Offset | 0.03 |
|
| 40 |
+
| Optimizer | AdamW | Multires Noise Discount | 0.1 |
|
| 41 |
+
| Network Dim | 64 | Multires Noise Iterations | 10 |
|
| 42 |
+
| Network Alpha | 32 | Repeat & Steps | 20 & 2950 |
|
| 43 |
+
| Epoch | 24 | Save Every N Epochs | 1 |
|
| 44 |
+
|
| 45 |
+
Labeling: florence2-en(natural language & English)
|
| 46 |
+
|
| 47 |
+
Total Images Used for Training : 21
|
| 48 |
+
|
| 49 |
+
## Best Dimensions & Inference
|
| 50 |
+
|
| 51 |
+
| **Dimensions** | **Aspect Ratio** | **Recommendation** |
|
| 52 |
+
|-----------------|------------------|---------------------------|
|
| 53 |
+
| 1280 x 832 | 3:2 | Best |
|
| 54 |
+
| 1024 x 1024 | 1:1 | Default |
|
| 55 |
|
| 56 |
+
### Inference Range
|
| 57 |
+
|
| 58 |
+
- **Recommended Inference Steps:** 30–35
|
| 59 |
+
|
| 60 |
+
## Setting Up
|
| 61 |
+
```python
|
| 62 |
+
import torch
|
| 63 |
+
from pipelines import DiffusionPipeline
|
| 64 |
+
|
| 65 |
+
base_model = "black-forest-labs/FLUX.1-dev"
|
| 66 |
+
pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16)
|
| 67 |
+
|
| 68 |
+
lora_repo = "strangerzonehf/Cardboard-v2-Flux "
|
| 69 |
+
trigger_word = "Cardboard v2"
|
| 70 |
+
pipe.load_lora_weights(lora_repo)
|
| 71 |
+
|
| 72 |
+
device = torch.device("cuda")
|
| 73 |
+
pipe.to(device)
|
| 74 |
+
```
|
| 75 |
## Trigger words
|
| 76 |
|
| 77 |
You should use `Cardboard v2` to trigger the image generation.
|
| 78 |
|
|
|
|
| 79 |
## Download model
|
| 80 |
|
| 81 |
Weights for this model are available in Safetensors format.
|