Upload folder using huggingface_hub
Browse files- README.md +30 -22
- config.yaml +4 -4
- lora.safetensors +2 -2
README.md
CHANGED
@@ -1,38 +1,46 @@
|
|
1 |
---
|
|
|
|
|
|
|
|
|
|
|
2 |
tags:
|
3 |
-
-
|
4 |
-
- lora
|
5 |
- diffusers
|
6 |
-
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
|
|
|
|
14 |
---
|
15 |
-
# Jalves
|
16 |
-
|
17 |
-
<Gallery />
|
18 |
|
19 |
-
|
20 |
|
21 |
-
|
22 |
|
23 |
-
|
24 |
|
25 |
-
|
26 |
|
27 |
-
You should use `Pedro` to trigger the image generation.
|
28 |
|
|
|
29 |
You should use `Júlio` to trigger the image generation.
|
30 |
|
31 |
-
You should use `Clóvis` to trigger the image generation.
|
32 |
|
|
|
33 |
|
34 |
-
|
|
|
|
|
35 |
|
36 |
-
|
|
|
|
|
|
|
37 |
|
38 |
-
|
|
|
1 |
---
|
2 |
+
license: other
|
3 |
+
license_name: flux-1-dev-non-commercial-license
|
4 |
+
license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md
|
5 |
+
language:
|
6 |
+
- en
|
7 |
tags:
|
8 |
+
- flux
|
|
|
9 |
- diffusers
|
10 |
+
- lora
|
11 |
+
- replicate
|
12 |
+
base_model: "black-forest-labs/FLUX.1-dev"
|
13 |
+
pipeline_tag: text-to-image
|
14 |
+
# widget:
|
15 |
+
# - text: >-
|
16 |
+
# prompt
|
17 |
+
# output:
|
18 |
+
# url: https://...
|
19 |
+
instance_prompt: Júlio
|
20 |
---
|
|
|
|
|
|
|
21 |
|
22 |
+
# Uniodonto
|
23 |
|
24 |
+
<Gallery />
|
25 |
|
26 |
+
Trained on Replicate using:
|
27 |
|
28 |
+
https://replicate.com/ostris/flux-dev-lora-trainer/train
|
29 |
|
|
|
30 |
|
31 |
+
## Trigger words
|
32 |
You should use `Júlio` to trigger the image generation.
|
33 |
|
|
|
34 |
|
35 |
+
## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)
|
36 |
|
37 |
+
```py
|
38 |
+
from diffusers import AutoPipelineForText2Image
|
39 |
+
import torch
|
40 |
|
41 |
+
pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.float16).to('cuda')
|
42 |
+
pipeline.load_lora_weights('Collos/uniodonto', weight_name='lora.safetensors')
|
43 |
+
image = pipeline('your prompt').images[0]
|
44 |
+
```
|
45 |
|
46 |
+
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)
|
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: 16
|
12 |
linear_alpha: 16
|
13 |
save:
|
14 |
dtype: float16
|
15 |
-
save_every:
|
16 |
max_step_saves_to_keep: 1
|
17 |
datasets:
|
18 |
- folder_path: input_images
|
@@ -25,7 +25,7 @@ config:
|
|
25 |
- 1024
|
26 |
train:
|
27 |
batch_size: 1
|
28 |
-
steps:
|
29 |
gradient_accumulation_steps: 1
|
30 |
train_unet: true
|
31 |
train_text_encoder: false
|
@@ -44,7 +44,7 @@ config:
|
|
44 |
quantize: true
|
45 |
sample:
|
46 |
sampler: flowmatch
|
47 |
-
sample_every:
|
48 |
width: 1024
|
49 |
height: 1024
|
50 |
prompts: []
|
|
|
5 |
- type: custom_sd_trainer
|
6 |
training_folder: output
|
7 |
device: cuda:0
|
8 |
+
trigger_word: "J\xFAlio"
|
9 |
network:
|
10 |
type: lora
|
11 |
linear: 16
|
12 |
linear_alpha: 16
|
13 |
save:
|
14 |
dtype: float16
|
15 |
+
save_every: 3001
|
16 |
max_step_saves_to_keep: 1
|
17 |
datasets:
|
18 |
- folder_path: input_images
|
|
|
25 |
- 1024
|
26 |
train:
|
27 |
batch_size: 1
|
28 |
+
steps: 3000
|
29 |
gradient_accumulation_steps: 1
|
30 |
train_unet: true
|
31 |
train_text_encoder: false
|
|
|
44 |
quantize: true
|
45 |
sample:
|
46 |
sampler: flowmatch
|
47 |
+
sample_every: 3001
|
48 |
width: 1024
|
49 |
height: 1024
|
50 |
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:c948b98d3385509bf8bc2e75c81bfea7a24f05fa0d86ccefa2b86c9e9ec13935
|
3 |
+
size 171969432
|