Upload folder using huggingface_hub
Browse files- README.md +5 -5
- config.yaml +3 -3
- lora.safetensors +2 -2
README.md
CHANGED
|
@@ -16,7 +16,7 @@ pipeline_tag: text-to-image
|
|
| 16 |
# prompt
|
| 17 |
# output:
|
| 18 |
# url: https://...
|
| 19 |
-
instance_prompt:
|
| 20 |
---
|
| 21 |
|
| 22 |
# Dan Martell
|
|
@@ -32,7 +32,7 @@ It was trained on [Replicate](https://replicate.com/) using AI toolkit: https://
|
|
| 32 |
|
| 33 |
## Trigger words
|
| 34 |
|
| 35 |
-
You should use `
|
| 36 |
|
| 37 |
|
| 38 |
## Run this LoRA with an API using Replicate
|
|
@@ -41,7 +41,7 @@ You should use `dan-martell` to trigger the image generation.
|
|
| 41 |
import replicate
|
| 42 |
|
| 43 |
input = {
|
| 44 |
-
"prompt": "
|
| 45 |
"lora_weights": "https://huggingface.co/LeoDrt/dan-martell/resolve/main/lora.safetensors"
|
| 46 |
}
|
| 47 |
|
|
@@ -62,7 +62,7 @@ import torch
|
|
| 62 |
|
| 63 |
pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.float16).to('cuda')
|
| 64 |
pipeline.load_lora_weights('LeoDrt/dan-martell', weight_name='lora.safetensors')
|
| 65 |
-
image = pipeline('
|
| 66 |
```
|
| 67 |
|
| 68 |
For more details, including weighting, merging and fusing LoRAs, check the [documentation on loading LoRAs in diffusers](https://huggingface.co/docs/diffusers/main/en/using-diffusers/loading_adapters)
|
|
@@ -72,7 +72,7 @@ For more details, including weighting, merging and fusing LoRAs, check the [docu
|
|
| 72 |
|
| 73 |
- Steps: 1000
|
| 74 |
- Learning rate: 0.0004
|
| 75 |
-
- LoRA rank:
|
| 76 |
|
| 77 |
|
| 78 |
## Contribute your own examples
|
|
|
|
| 16 |
# prompt
|
| 17 |
# output:
|
| 18 |
# url: https://...
|
| 19 |
+
instance_prompt: TOK
|
| 20 |
---
|
| 21 |
|
| 22 |
# Dan Martell
|
|
|
|
| 32 |
|
| 33 |
## Trigger words
|
| 34 |
|
| 35 |
+
You should use `TOK` to trigger the image generation.
|
| 36 |
|
| 37 |
|
| 38 |
## Run this LoRA with an API using Replicate
|
|
|
|
| 41 |
import replicate
|
| 42 |
|
| 43 |
input = {
|
| 44 |
+
"prompt": "TOK",
|
| 45 |
"lora_weights": "https://huggingface.co/LeoDrt/dan-martell/resolve/main/lora.safetensors"
|
| 46 |
}
|
| 47 |
|
|
|
|
| 62 |
|
| 63 |
pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.float16).to('cuda')
|
| 64 |
pipeline.load_lora_weights('LeoDrt/dan-martell', weight_name='lora.safetensors')
|
| 65 |
+
image = pipeline('TOK').images[0]
|
| 66 |
```
|
| 67 |
|
| 68 |
For more details, including weighting, merging and fusing LoRAs, check the [documentation on loading LoRAs in diffusers](https://huggingface.co/docs/diffusers/main/en/using-diffusers/loading_adapters)
|
|
|
|
| 72 |
|
| 73 |
- Steps: 1000
|
| 74 |
- Learning rate: 0.0004
|
| 75 |
+
- LoRA rank: 20
|
| 76 |
|
| 77 |
|
| 78 |
## Contribute your own examples
|
config.yaml
CHANGED
|
@@ -5,11 +5,11 @@ config:
|
|
| 5 |
- type: custom_sd_trainer
|
| 6 |
training_folder: output
|
| 7 |
device: cuda:0
|
| 8 |
-
trigger_word:
|
| 9 |
network:
|
| 10 |
type: lora
|
| 11 |
-
linear:
|
| 12 |
-
linear_alpha:
|
| 13 |
save:
|
| 14 |
dtype: float16
|
| 15 |
save_every: 1001
|
|
|
|
| 5 |
- type: custom_sd_trainer
|
| 6 |
training_folder: output
|
| 7 |
device: cuda:0
|
| 8 |
+
trigger_word: TOK
|
| 9 |
network:
|
| 10 |
type: lora
|
| 11 |
+
linear: 20
|
| 12 |
+
linear_alpha: 20
|
| 13 |
save:
|
| 14 |
dtype: float16
|
| 15 |
save_every: 1001
|
lora.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8ad9b498b699e0f101214a6d4a79e00d250ed4224371f73f8a7c0cb762df9d88
|
| 3 |
+
size 214928520
|