Instructions to use prithivMLmods/Flux.1-Dev-Hand-Sticky-LoRA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use prithivMLmods/Flux.1-Dev-Hand-Sticky-LoRA with Diffusers:
pip install -U diffusers transformers accelerate
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("prithivMLmods/Flux.1-Dev-Hand-Sticky-LoRA") prompt = "handstick69, a human hand is holding two small stickers, each with the words \"you can do this!\" written on them in black text. The left sticker is pink, while the right sticker is yellow, with black text written on it. Behind the hand, there is a plant with green leaves and a white tile floor." image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Update README.md
Browse files
README.md
CHANGED
|
@@ -18,16 +18,54 @@ base_model: black-forest-labs/FLUX.1-dev
|
|
| 18 |
instance_prompt: handstick69
|
| 19 |
license: creativeml-openrail-m
|
| 20 |
---
|
| 21 |
-
# Flux.1-Dev-
|
| 22 |
|
| 23 |
<Gallery />
|
| 24 |
|
|
|
|
| 25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
## Trigger words
|
| 27 |
|
| 28 |
You should use `handstick69` to trigger the image generation.
|
| 29 |
|
| 30 |
-
|
| 31 |
## Download model
|
| 32 |
|
| 33 |
Weights for this model are available in Safetensors format.
|
|
|
|
| 18 |
instance_prompt: handstick69
|
| 19 |
license: creativeml-openrail-m
|
| 20 |
---
|
| 21 |
+
# Flux.1-Dev-Hand-Sticky-LoRA
|
| 22 |
|
| 23 |
<Gallery />
|
| 24 |
|
| 25 |
+
**The model is still in the training phase. This is not the final version and may contain artifacts and perform poorly in some cases.**
|
| 26 |
|
| 27 |
+
## Model description
|
| 28 |
+
|
| 29 |
+
**prithivMLmods/Flux.1-Dev-Hand-Sticky-LoRA**
|
| 30 |
+
|
| 31 |
+
Image Processing Parameters
|
| 32 |
+
|
| 33 |
+
| Parameter | Value | Parameter | Value |
|
| 34 |
+
|---------------------------|--------|---------------------------|--------|
|
| 35 |
+
| LR Scheduler | constant | Noise Offset | 0.03 |
|
| 36 |
+
| Optimizer | AdamW | Multires Noise Discount | 0.1 |
|
| 37 |
+
| Network Dim | 64 | Multires Noise Iterations | 10 |
|
| 38 |
+
| Network Alpha | 32 | Repeat & Steps | 17 & 1920 |
|
| 39 |
+
| Epoch | 10 | Save Every N Epochs | 1 |
|
| 40 |
+
|
| 41 |
+
Labeling: florence2-en(natural language & English)
|
| 42 |
+
|
| 43 |
+
Total Images Used for Training : 20
|
| 44 |
+
|
| 45 |
+
## Best Dimensions
|
| 46 |
+
|
| 47 |
+
- 768 x 1024 (Best)
|
| 48 |
+
- 1024 x 1024 (Default)
|
| 49 |
+
|
| 50 |
+
## Setting Up
|
| 51 |
+
```python
|
| 52 |
+
import torch
|
| 53 |
+
from pipelines import DiffusionPipeline
|
| 54 |
+
|
| 55 |
+
base_model = "black-forest-labs/FLUX.1-dev"
|
| 56 |
+
pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16)
|
| 57 |
+
|
| 58 |
+
lora_repo = "prithivMLmods/Flux.1-Dev-Hand-Sticky-LoRA"
|
| 59 |
+
trigger_word = "handstick69"
|
| 60 |
+
pipe.load_lora_weights(lora_repo)
|
| 61 |
+
|
| 62 |
+
device = torch.device("cuda")
|
| 63 |
+
pipe.to(device)
|
| 64 |
+
```
|
| 65 |
## Trigger words
|
| 66 |
|
| 67 |
You should use `handstick69` to trigger the image generation.
|
| 68 |
|
|
|
|
| 69 |
## Download model
|
| 70 |
|
| 71 |
Weights for this model are available in Safetensors format.
|