Nunatic commited on
Commit
837fc6b
·
verified ·
1 Parent(s): 8e4e2ee

End of training

Browse files
.gitattributes CHANGED
@@ -33,3 +33,7 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ image_0.png filter=lfs diff=lfs merge=lfs -text
37
+ image_1.png filter=lfs diff=lfs merge=lfs -text
38
+ image_2.png filter=lfs diff=lfs merge=lfs -text
39
+ image_3.png filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: black-forest-labs/FLUX.1-dev
3
+ library_name: diffusers
4
+ license: other
5
+ instance_prompt: illustration in the style of <s0><s1>
6
+ widget:
7
+ - text: a <s0><s1> illustration showing gradient descent algorithm used in machine
8
+ learning, in the style of <s0><s1>
9
+ output:
10
+ url: image_0.png
11
+ - text: a <s0><s1> illustration showing gradient descent algorithm used in machine
12
+ learning, in the style of <s0><s1>
13
+ output:
14
+ url: image_1.png
15
+ - text: a <s0><s1> illustration showing gradient descent algorithm used in machine
16
+ learning, in the style of <s0><s1>
17
+ output:
18
+ url: image_2.png
19
+ - text: a <s0><s1> illustration showing gradient descent algorithm used in machine
20
+ learning, in the style of <s0><s1>
21
+ output:
22
+ url: image_3.png
23
+ tags:
24
+ - text-to-image
25
+ - diffusers-training
26
+ - diffusers
27
+ - lora
28
+ - flux
29
+ - flux-diffusers
30
+ - template:sd-lora
31
+ ---
32
+
33
+ <!-- This model card has been generated automatically according to the information the training script had access to. You
34
+ should probably proofread and complete it, then remove this comment. -->
35
+
36
+
37
+ # Flux DreamBooth LoRA - Nunatic/maggie-Flux-LoRA
38
+
39
+ <Gallery />
40
+
41
+ ## Model description
42
+
43
+ These are Nunatic/maggie-Flux-LoRA DreamBooth LoRA weights for black-forest-labs/FLUX.1-dev.
44
+
45
+ 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).
46
+
47
+ Was LoRA for the text encoder enabled? False.
48
+
49
+ Pivotal tuning was enabled: True.
50
+
51
+ ## Trigger words
52
+
53
+ To trigger image generation of trained concept(or concepts) replace each concept identifier in you prompt with the new inserted tokens:
54
+
55
+ to trigger concept `TOK` → use `<s0><s1>` in your prompt
56
+
57
+
58
+
59
+ ## Download model
60
+
61
+ [Download the *.safetensors LoRA](Nunatic/maggie-Flux-LoRA/tree/main) in the Files & versions tab.
62
+
63
+ ## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)
64
+
65
+ ```py
66
+ from diffusers import AutoPipelineForText2Image
67
+ import torch
68
+ from huggingface_hub import hf_hub_download
69
+ from safetensors.torch import load_file
70
+
71
+ pipeline = AutoPipelineForText2Image.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16).to('cuda')
72
+ pipeline.load_lora_weights('Nunatic/maggie-Flux-LoRA', weight_name='pytorch_lora_weights.safetensors')
73
+ embedding_path = hf_hub_download(repo_id='Nunatic/maggie-Flux-LoRA', filename='maggie-Flux-LoRA_emb.safetensors', repo_type="model")
74
+ state_dict = load_file(embedding_path)
75
+ pipeline.load_textual_inversion(state_dict["clip_l"], token=["<s0>", "<s1>"], text_encoder=pipeline.text_encoder, tokenizer=pipeline.tokenizer)
76
+ pipeline.load_textual_inversion(state_dict["t5"], token=["<s0>", "<s1>"], text_encoder=pipeline.text_encoder_2, tokenizer=pipeline.tokenizer_2)
77
+
78
+ image = pipeline('a <s0><s1> illustration showing gradient descent algorithm used in machine learning, in the style of <s0><s1>').images[0]
79
+ ```
80
+
81
+ 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)
82
+
83
+ ## License
84
+
85
+ Please adhere to the licensing terms as described [here](https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md).
86
+
87
+
88
+ ## Intended uses & limitations
89
+
90
+ #### How to use
91
+
92
+ ```python
93
+ # TODO: add an example code snippet for running this diffusion pipeline
94
+ ```
95
+
96
+ #### Limitations and bias
97
+
98
+ [TODO: provide examples of latent issues and potential remediations]
99
+
100
+ ## Training details
101
+
102
+ [TODO: describe the data used to train the model]
image_0.png ADDED

Git LFS Details

  • SHA256: 77871766639647906c764503960e564b8bd48a32ad40abf29c9bc43e7672f4b9
  • Pointer size: 131 Bytes
  • Size of remote file: 236 kB
image_1.png ADDED

Git LFS Details

  • SHA256: 642aa52864d6772abf0999b95ab2395702462c39c6d0c46501ff3a2e4f0b5ec8
  • Pointer size: 131 Bytes
  • Size of remote file: 145 kB
image_2.png ADDED

Git LFS Details

  • SHA256: c392c1a4b9333fb676668c1a6e06813be8bd6489a3a6e64a81ce33500a9db56d
  • Pointer size: 131 Bytes
  • Size of remote file: 234 kB
image_3.png ADDED

Git LFS Details

  • SHA256: 46b9920e264a1121b93eabe6fdcf41ed3f6e585074b13ed41d7b74c77fb4ca31
  • Pointer size: 131 Bytes
  • Size of remote file: 142 kB
maggie-Flux-LoRA_emb.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e4d707e800f43a5f5b79fa57694c8dbbb7dc4a268ac1e6230ef4430e6031d134
3
+ size 19600
pytorch_lora_weights.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6586b62a28c281c60162c8d7e214ade5b84c38c1729885bfa699231bad387db8
3
+ size 44917720