Update README.md
Browse files
README.md
CHANGED
|
@@ -22,9 +22,49 @@ license: creativeml-openrail-m
|
|
| 22 |
|
| 23 |
<Gallery />
|
| 24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
# Other Sample Image
|
| 26 |
|
| 27 |
-

|
| 42 |
+
|
| 43 |
+
Total Images Used for Training : 16
|
| 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-Frosted-Container-LoRA"
|
| 59 |
+
trigger_word = "frosted GC"
|
| 60 |
+
pipe.load_lora_weights(lora_repo)
|
| 61 |
+
|
| 62 |
+
device = torch.device("cuda")
|
| 63 |
+
pipe.to(device)
|
| 64 |
+
```
|
| 65 |
# Other Sample Image
|
| 66 |
|
| 67 |
+

|
| 68 |
|
| 69 |
## Trigger words
|
| 70 |
|