Upload folder using huggingface_hub
Browse files- README.md +6 -6
- config.yaml +6 -6
- 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 |
# Puchi
|
|
@@ -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 `Puchi` to trigger the image generation.
|
|
| 41 |
import replicate
|
| 42 |
|
| 43 |
input = {
|
| 44 |
-
"prompt": "
|
| 45 |
"lora_weights": "https://huggingface.co/Ankitvaibs/Puchi/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('Ankitvaibs/Puchi', 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)
|
|
@@ -70,9 +70,9 @@ For more details, including weighting, merging and fusing LoRAs, check the [docu
|
|
| 70 |
|
| 71 |
## Training details
|
| 72 |
|
| 73 |
-
- Steps:
|
| 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: sk
|
| 20 |
---
|
| 21 |
|
| 22 |
# Puchi
|
|
|
|
| 32 |
|
| 33 |
## Trigger words
|
| 34 |
|
| 35 |
+
You should use `sk` to trigger the image generation.
|
| 36 |
|
| 37 |
|
| 38 |
## Run this LoRA with an API using Replicate
|
|
|
|
| 41 |
import replicate
|
| 42 |
|
| 43 |
input = {
|
| 44 |
+
"prompt": "sk",
|
| 45 |
"lora_weights": "https://huggingface.co/Ankitvaibs/Puchi/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('Ankitvaibs/Puchi', weight_name='lora.safetensors')
|
| 65 |
+
image = pipeline('sk').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)
|
|
|
|
| 70 |
|
| 71 |
## Training details
|
| 72 |
|
| 73 |
+
- Steps: 1763
|
| 74 |
- Learning rate: 0.0004
|
| 75 |
+
- LoRA rank: 16
|
| 76 |
|
| 77 |
|
| 78 |
## Contribute your own examples
|
config.yaml
CHANGED
|
@@ -5,14 +5,14 @@ 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:
|
| 16 |
max_step_saves_to_keep: 1
|
| 17 |
datasets:
|
| 18 |
- folder_path: input_images
|
|
@@ -27,7 +27,7 @@ config:
|
|
| 27 |
- 1024
|
| 28 |
train:
|
| 29 |
batch_size: 1
|
| 30 |
-
steps:
|
| 31 |
gradient_accumulation_steps: 1
|
| 32 |
train_unet: true
|
| 33 |
train_text_encoder: false
|
|
@@ -46,7 +46,7 @@ config:
|
|
| 46 |
quantize: false
|
| 47 |
sample:
|
| 48 |
sampler: flowmatch
|
| 49 |
-
sample_every:
|
| 50 |
width: 1024
|
| 51 |
height: 1024
|
| 52 |
prompts: []
|
|
|
|
| 5 |
- type: custom_sd_trainer
|
| 6 |
training_folder: output
|
| 7 |
device: cuda:0
|
| 8 |
+
trigger_word: sk
|
| 9 |
network:
|
| 10 |
type: lora
|
| 11 |
+
linear: 16
|
| 12 |
+
linear_alpha: 16
|
| 13 |
save:
|
| 14 |
dtype: float16
|
| 15 |
+
save_every: 1764
|
| 16 |
max_step_saves_to_keep: 1
|
| 17 |
datasets:
|
| 18 |
- folder_path: input_images
|
|
|
|
| 27 |
- 1024
|
| 28 |
train:
|
| 29 |
batch_size: 1
|
| 30 |
+
steps: 1763
|
| 31 |
gradient_accumulation_steps: 1
|
| 32 |
train_unet: true
|
| 33 |
train_text_encoder: false
|
|
|
|
| 46 |
quantize: false
|
| 47 |
sample:
|
| 48 |
sampler: flowmatch
|
| 49 |
+
sample_every: 1764
|
| 50 |
width: 1024
|
| 51 |
height: 1024
|
| 52 |
prompts: []
|
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:4bc2364b6a9f8c8d93d73eaa1407d23628edcacbdb240a0d56101524eacbf471
|
| 3 |
+
size 171969408
|