Update README.md
Browse files
README.md
CHANGED
|
@@ -5,9 +5,15 @@ tags:
|
|
| 5 |
- diffusers
|
| 6 |
- template:diffusion-lora
|
| 7 |
widget:
|
| 8 |
-
- text: '-'
|
| 9 |
output:
|
| 10 |
-
url: images/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
base_model: black-forest-labs/FLUX.1-dev
|
| 12 |
instance_prompt: Knitted Character
|
| 13 |
license: apache-2.0
|
|
@@ -16,12 +22,51 @@ license: apache-2.0
|
|
| 16 |
|
| 17 |
<Gallery />
|
| 18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
## Trigger words
|
| 21 |
|
| 22 |
You should use `Knitted Character` to trigger the image generation.
|
| 23 |
|
| 24 |
-
|
| 25 |
## Download model
|
| 26 |
|
| 27 |
Weights for this model are available in Safetensors format.
|
|
|
|
| 5 |
- diffusers
|
| 6 |
- template:diffusion-lora
|
| 7 |
widget:
|
| 8 |
+
- text: 'Knitted Character, A close-up view of a crocheted toy. The toy is made up of a blend of orange, yellow, and pink yarn. It has a black button in the center of its head. The background is a solid white color.'
|
| 9 |
output:
|
| 10 |
+
url: images/KC1.png
|
| 11 |
+
- text: 'Knitted Character, a crocheted doll stands on a wooden platform. The dolls head is encased in a multi-colored knit outfit, adorned with a pair of dark-colored goggles. The eyes are tinted blue, adding a pop of color to the scene. The figures arms and legs are positioned in a way that creates a sense of balance. The background is a stark white, creating a stark contrast to the figure.'
|
| 12 |
+
output:
|
| 13 |
+
url: images/KC2.png
|
| 14 |
+
- text: 'Knitted Character, A close-up view of a knitted cat toy. The toy is a gray and white striped cat with blue eyes. The cats nose is pink. Its eyes are a piercing blue color. Its ears are made of gray yarn. Its whiskers are black and white. Its paws are knitted with white yarn. The background is a solid white color.'
|
| 15 |
+
output:
|
| 16 |
+
url: images/KC3.png
|
| 17 |
base_model: black-forest-labs/FLUX.1-dev
|
| 18 |
instance_prompt: Knitted Character
|
| 19 |
license: apache-2.0
|
|
|
|
| 22 |
|
| 23 |
<Gallery />
|
| 24 |
|
| 25 |
+
- Hosted Here🧨: https://huggingface.co/spaces/prithivMLmods/FLUX-LoRA-DLC
|
| 26 |
+
|
| 27 |
+
**The model is still in the training phase. This is not the final version and may contain artifacts and perform poorly in some cases.**
|
| 28 |
+
|
| 29 |
+
## Model description
|
| 30 |
+
|
| 31 |
+
**prithivMLmods/Knitted-Character-Flux-LoRA**
|
| 32 |
+
|
| 33 |
+
Image Processing Parameters
|
| 34 |
|
| 35 |
+
| Parameter | Value | Parameter | Value |
|
| 36 |
+
|---------------------------|--------|---------------------------|--------|
|
| 37 |
+
| LR Scheduler | constant | Noise Offset | 0.03 |
|
| 38 |
+
| Optimizer | AdamW | Multires Noise Discount | 0.1 |
|
| 39 |
+
| Network Dim | 64 | Multires Noise Iterations | 10 |
|
| 40 |
+
| Network Alpha | 32 | Repeat & Steps | 20 & 2000|
|
| 41 |
+
| Epoch | 10 | Save Every N Epochs | 1 |
|
| 42 |
+
|
| 43 |
+
Labeling: florence2-en(natural language & English)
|
| 44 |
+
|
| 45 |
+
Total Images Used for Training : 30 [ 4K Hi-RES ]
|
| 46 |
+
|
| 47 |
+
## Best Dimensions
|
| 48 |
+
|
| 49 |
+
- 1024 x 1024 (Default)
|
| 50 |
+
|
| 51 |
+
## Setting Up
|
| 52 |
+
```
|
| 53 |
+
import torch
|
| 54 |
+
from pipelines import DiffusionPipeline
|
| 55 |
+
|
| 56 |
+
base_model = "black-forest-labs/FLUX.1-dev"
|
| 57 |
+
pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16)
|
| 58 |
+
|
| 59 |
+
lora_repo = "prithivMLmods/Knitted-Character-Flux-LoRA"
|
| 60 |
+
trigger_word = "Knitted Character"
|
| 61 |
+
pipe.load_lora_weights(lora_repo)
|
| 62 |
+
|
| 63 |
+
device = torch.device("cuda")
|
| 64 |
+
pipe.to(device)
|
| 65 |
+
```
|
| 66 |
## Trigger words
|
| 67 |
|
| 68 |
You should use `Knitted Character` to trigger the image generation.
|
| 69 |
|
|
|
|
| 70 |
## Download model
|
| 71 |
|
| 72 |
Weights for this model are available in Safetensors format.
|