End of training
Browse files- README.md +85 -0
- babyface_flux_dlora_hsfw_2_Indonesian_emb.safetensors +3 -0
- checkpoint-1000/optimizer.bin +3 -0
- checkpoint-1000/pytorch_lora_weights.safetensors +3 -0
- checkpoint-1000/random_states_0.pkl +3 -0
- checkpoint-1000/scheduler.bin +3 -0
- checkpoint-1500/optimizer.bin +3 -0
- checkpoint-1500/pytorch_lora_weights.safetensors +3 -0
- checkpoint-1500/random_states_0.pkl +3 -0
- checkpoint-1500/scheduler.bin +3 -0
- checkpoint-2000/optimizer.bin +3 -0
- checkpoint-2000/pytorch_lora_weights.safetensors +3 -0
- checkpoint-2000/random_states_0.pkl +3 -0
- checkpoint-2000/scheduler.bin +3 -0
- checkpoint-500/optimizer.bin +3 -0
- checkpoint-500/pytorch_lora_weights.safetensors +3 -0
- checkpoint-500/random_states_0.pkl +3 -0
- checkpoint-500/scheduler.bin +3 -0
- pytorch_lora_weights.safetensors +3 -0
README.md
ADDED
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: black-forest-labs/FLUX.1-dev
|
3 |
+
library_name: diffusers
|
4 |
+
license: other
|
5 |
+
instance_prompt: A newborn <s0><s1><s2><s3><s4> baby.
|
6 |
+
widget: []
|
7 |
+
tags:
|
8 |
+
- text-to-image
|
9 |
+
- diffusers-training
|
10 |
+
- diffusers
|
11 |
+
- lora
|
12 |
+
- flux
|
13 |
+
- flux-diffusers
|
14 |
+
- template:sd-lora
|
15 |
+
---
|
16 |
+
|
17 |
+
<!-- This model card has been generated automatically according to the information the training script had access to. You
|
18 |
+
should probably proofread and complete it, then remove this comment. -->
|
19 |
+
|
20 |
+
|
21 |
+
# Flux DreamBooth LoRA - cwhuh/babyface_flux_dlora_hsfw_2_Indonesian
|
22 |
+
|
23 |
+
<Gallery />
|
24 |
+
|
25 |
+
## Model description
|
26 |
+
|
27 |
+
These are cwhuh/babyface_flux_dlora_hsfw_2_Indonesian DreamBooth LoRA weights for black-forest-labs/FLUX.1-dev.
|
28 |
+
|
29 |
+
The weights were trained using [DreamBooth](https://dreambooth.github.io/) with the [Flux diffusers trainer](https://github.com/huggingface/diffusers/blob/main/examples/dreambooth/README_flux.md).
|
30 |
+
|
31 |
+
Was LoRA for the text encoder enabled? False.
|
32 |
+
|
33 |
+
Pivotal tuning was enabled: True.
|
34 |
+
|
35 |
+
## Trigger words
|
36 |
+
|
37 |
+
To trigger image generation of trained concept(or concepts) replace each concept identifier in you prompt with the new inserted tokens:
|
38 |
+
|
39 |
+
to trigger concept `Indonesian_hsfw` → use `<s0><s1><s2><s3><s4>` in your prompt
|
40 |
+
|
41 |
+
|
42 |
+
|
43 |
+
## Download model
|
44 |
+
|
45 |
+
[Download the *.safetensors LoRA](cwhuh/babyface_flux_dlora_hsfw_2_Indonesian/tree/main) in the Files & versions tab.
|
46 |
+
|
47 |
+
## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)
|
48 |
+
|
49 |
+
```py
|
50 |
+
from diffusers import AutoPipelineForText2Image
|
51 |
+
import torch
|
52 |
+
from huggingface_hub import hf_hub_download
|
53 |
+
from safetensors.torch import load_file
|
54 |
+
|
55 |
+
pipeline = AutoPipelineForText2Image.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16).to('cuda')
|
56 |
+
pipeline.load_lora_weights('cwhuh/babyface_flux_dlora_hsfw_2_Indonesian', weight_name='pytorch_lora_weights.safetensors')
|
57 |
+
embedding_path = hf_hub_download(repo_id='cwhuh/babyface_flux_dlora_hsfw_2_Indonesian', filename='/nas/checkpoints/sangmin/babyface_flux_dlora_hsfw_2_Indonesian_emb.safetensors', repo_type="model")
|
58 |
+
state_dict = load_file(embedding_path)
|
59 |
+
pipeline.load_textual_inversion(state_dict["clip_l"], token=["<s0>", "<s1>", "<s2>", "<s3>", "<s4>"], text_encoder=pipeline.text_encoder, tokenizer=pipeline.tokenizer)
|
60 |
+
|
61 |
+
image = pipeline('A newborn <s0><s1><s2><s3><s4> baby.').images[0]
|
62 |
+
```
|
63 |
+
|
64 |
+
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)
|
65 |
+
|
66 |
+
## License
|
67 |
+
|
68 |
+
Please adhere to the licensing terms as described [here](https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md).
|
69 |
+
|
70 |
+
|
71 |
+
## Intended uses & limitations
|
72 |
+
|
73 |
+
#### How to use
|
74 |
+
|
75 |
+
```python
|
76 |
+
# TODO: add an example code snippet for running this diffusion pipeline
|
77 |
+
```
|
78 |
+
|
79 |
+
#### Limitations and bias
|
80 |
+
|
81 |
+
[TODO: provide examples of latent issues and potential remediations]
|
82 |
+
|
83 |
+
## Training details
|
84 |
+
|
85 |
+
[TODO: describe the data used to train the model]
|
babyface_flux_dlora_hsfw_2_Indonesian_emb.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:56de1bb5ab97c4ce1cbb0fba25292f54f518c6d5449b61c7b099940f8120d7b1
|
3 |
+
size 15440
|
checkpoint-1000/optimizer.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:584c393802e7c9bb4de43daea86faf71a47bd3ac5a7803b8a4b820fc90916d5b
|
3 |
+
size 640311878
|
checkpoint-1000/pytorch_lora_weights.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b61917d039f714bf06d2c7e3734dc1d1569ef5761334f8a1a53ce598528e818a
|
3 |
+
size 9388696
|
checkpoint-1000/random_states_0.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:58a0e87640b115a47d33a4e5d9c81a390096efd9baa02fca4ba6b7933f569feb
|
3 |
+
size 14344
|
checkpoint-1000/scheduler.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dce43baedb0885c563cc4225f54cec7e72723559685571c5477f093f976ffeda
|
3 |
+
size 1064
|
checkpoint-1500/optimizer.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2437e10f5a4d39af91fc6e40404de3de18ed4f2533cf5fdef844c1269d5d122a
|
3 |
+
size 640311878
|
checkpoint-1500/pytorch_lora_weights.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:548faee61c7cfde34585642a65e3d20cc67d69f1fc8eefe10e3358e0f2c1cb20
|
3 |
+
size 9388696
|
checkpoint-1500/random_states_0.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6b7ec4022a5e0be0adece69cef2d8b4f7fc29f84bb9f28b8ebd16b3d8b27b125
|
3 |
+
size 14344
|
checkpoint-1500/scheduler.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7ede7955de4c641d88ce2494997cbba05af09d6587d74c44e503596fb5d2ffab
|
3 |
+
size 1064
|
checkpoint-2000/optimizer.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5cf731852f51475161230b0511c59d2349f2662b240a61c2a012eb0ff088880a
|
3 |
+
size 640311878
|
checkpoint-2000/pytorch_lora_weights.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1c8429fc675e74b1e28cdd0d6d2f366bb806d12ed07795d72995b126c904a1c6
|
3 |
+
size 9388696
|
checkpoint-2000/random_states_0.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:19bc618792f2e8b1ee77671115a4b4570cd2cc97afaa533383db6661cbaad51a
|
3 |
+
size 14344
|
checkpoint-2000/scheduler.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d62ba69e53ccfc47cb9ad95de040eaa48e9cc42c46c998a12945af9e30daf704
|
3 |
+
size 1064
|
checkpoint-500/optimizer.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f8073c272c0ae89f78b655179d034b24fbcc42d22665c682767dec7d93eb12d5
|
3 |
+
size 640311878
|
checkpoint-500/pytorch_lora_weights.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ba76ef92e732ae07ed9daf224b0f9cbcf7bd3b8290b4c0951ee9858415523b18
|
3 |
+
size 9388696
|
checkpoint-500/random_states_0.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0c1a5e658bc71fcd99f639c8eecb9d3505857badee0f2838b6c1907620a05e22
|
3 |
+
size 14344
|
checkpoint-500/scheduler.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:044f0b89695613a6f07f24b715e5e195914a2393d65077281fc7fc89b24b6fd5
|
3 |
+
size 1064
|
pytorch_lora_weights.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1c8429fc675e74b1e28cdd0d6d2f366bb806d12ed07795d72995b126c904a1c6
|
3 |
+
size 9388696
|