un-43 prithivMLmods commited on
Commit
0c62f66
·
verified ·
0 Parent(s):

Duplicate from strangerzonehf/Flux-Super-Portrait-LoRA

Browse files

Co-authored-by: Prithiv Sakthi <[email protected]>

Files changed (9) hide show
  1. .gitattributes +55 -0
  2. README.md +116 -0
  3. Super-Portrait.safetensors +3 -0
  4. images/1.png +3 -0
  5. images/2.png +3 -0
  6. images/3.png +3 -0
  7. images/4.png +3 -0
  8. images/5.png +3 -0
  9. images/6.png +3 -0
.gitattributes ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.lz4 filter=lfs diff=lfs merge=lfs -text
12
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
13
+ *.model filter=lfs diff=lfs merge=lfs -text
14
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
15
+ *.npy filter=lfs diff=lfs merge=lfs -text
16
+ *.npz filter=lfs diff=lfs merge=lfs -text
17
+ *.onnx filter=lfs diff=lfs merge=lfs -text
18
+ *.ot filter=lfs diff=lfs merge=lfs -text
19
+ *.parquet filter=lfs diff=lfs merge=lfs -text
20
+ *.pb filter=lfs diff=lfs merge=lfs -text
21
+ *.pickle filter=lfs diff=lfs merge=lfs -text
22
+ *.pkl filter=lfs diff=lfs merge=lfs -text
23
+ *.pt filter=lfs diff=lfs merge=lfs -text
24
+ *.pth filter=lfs diff=lfs merge=lfs -text
25
+ *.rar filter=lfs diff=lfs merge=lfs -text
26
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
27
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
29
+ *.tar filter=lfs diff=lfs merge=lfs -text
30
+ *.tflite filter=lfs diff=lfs merge=lfs -text
31
+ *.tgz filter=lfs diff=lfs merge=lfs -text
32
+ *.wasm filter=lfs diff=lfs merge=lfs -text
33
+ *.xz filter=lfs diff=lfs merge=lfs -text
34
+ *.zip filter=lfs diff=lfs merge=lfs -text
35
+ *.zst filter=lfs diff=lfs merge=lfs -text
36
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
37
+ # Audio files - uncompressed
38
+ *.pcm filter=lfs diff=lfs merge=lfs -text
39
+ *.sam filter=lfs diff=lfs merge=lfs -text
40
+ *.raw filter=lfs diff=lfs merge=lfs -text
41
+ # Audio files - compressed
42
+ *.aac filter=lfs diff=lfs merge=lfs -text
43
+ *.flac filter=lfs diff=lfs merge=lfs -text
44
+ *.mp3 filter=lfs diff=lfs merge=lfs -text
45
+ *.ogg filter=lfs diff=lfs merge=lfs -text
46
+ *.wav filter=lfs diff=lfs merge=lfs -text
47
+ # Image files - uncompressed
48
+ *.bmp filter=lfs diff=lfs merge=lfs -text
49
+ *.gif filter=lfs diff=lfs merge=lfs -text
50
+ *.png filter=lfs diff=lfs merge=lfs -text
51
+ *.tiff filter=lfs diff=lfs merge=lfs -text
52
+ # Image files - compressed
53
+ *.jpg filter=lfs diff=lfs merge=lfs -text
54
+ *.jpeg filter=lfs diff=lfs merge=lfs -text
55
+ *.webp filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - text-to-image
4
+ - lora
5
+ - diffusers
6
+ - template:diffusion-lora
7
+ widget:
8
+ - text: >-
9
+ Super Portrait, A close-up portrait of a young man with dark brown eyes and
10
+ dark brown eyebrows. He is wearing a green and yellow striped polo shirt
11
+ with a black collar. His earring is adorned with a silver earring. The
12
+ backdrop is a light blue color.
13
+ output:
14
+ url: images/1.png
15
+ - text: >-
16
+ Super Portrait, A close-up shot of a young blonde girl with blue eyes and a
17
+ black beanie on her head. The beanie is adorned with a pink patch that reads
18
+ "CUTIE REBEL" in bold white letters. The girls hair is pulled back in a
19
+ ponytail and she is wearing a black turtleneck. The background is a vibrant
20
+ brown color.
21
+ output:
22
+ url: images/2.png
23
+ - text: >-
24
+ Super Portrait, a close-up shot of a young mans face is adorned with a beige
25
+ baseball cap adorned with red lettering. The mans eyes are a piercing blue,
26
+ and he is wearing a pink t-shirt. His hair is dark brown, adding a touch of
27
+ texture to his face. The backdrop is a vibrant shade of blue, creating a
28
+ stark contrast to the mans head and the cap.
29
+ output:
30
+ url: images/3.png
31
+ - text: >-
32
+ Super Portrait, a close-up shot of a young girls face is featured
33
+ prominently in the frame. The girls eyes are a piercing blue, and her hair
34
+ is pulled back in a ponytail, adding a pop of color to her face. She is
35
+ wearing a gray baseball cap, adorned with a white logo that reads "E-NILS"
36
+ in a cursive font, while the rest of the text is in a darker shade of white.
37
+ Her eyebrows are a lighter shade of blue, while her lips are a darker pink.
38
+ She is wearing a long-sleeved gray sweater, with a slight smile on her lips.
39
+ The backdrop is a vibrant orange, creating a stark contrast to the girls
40
+ outfit.
41
+ output:
42
+ url: images/4.png
43
+ - text: >-
44
+ Super Portrait, A close-up of a young girl with almond-shaped hazel eyes and
45
+ long jet-black hair tied in twin braids. She wears a bright red turtleneck
46
+ sweater and a pair of small silver hoop earrings. The background is a soft
47
+ peach, highlighting her vibrant outfit.
48
+ output:
49
+ url: images/5.png
50
+ - text: >-
51
+ Super Portrait, A close-up of a young man with dark brown eyes and wavy
52
+ black hair. He is wearing a dark green trench coat with a high collar and a
53
+ light brown scarf around his neck. The backdrop is a cloudy gray, adding an
54
+ air of mystery to the scene.
55
+ output:
56
+ url: images/6.png
57
+ base_model: black-forest-labs/FLUX.1-dev
58
+ instance_prompt: Super Portrait
59
+ license: creativeml-openrail-m
60
+ new_version: strangerzonehf/Flux-SuperPortrait-v2-LoRA
61
+ ---
62
+ ![CC1.png](https://cdn-uploads.huggingface.co/production/uploads/65bb837dbfb878f46c77de4c/OQkdEnSefpRhliGZ4VdlB.png)
63
+
64
+ <Gallery />
65
+
66
+ # Model description for Flux-Super-Portrait-LoRA
67
+
68
+ Image Processing Parameters
69
+
70
+ | Parameter | Value | Parameter | Value |
71
+ |---------------------------|--------|---------------------------|--------|
72
+ | LR Scheduler | constant | Noise Offset | 0.03 |
73
+ | Optimizer | AdamW | Multires Noise Discount | 0.1 |
74
+ | Network Dim | 64 | Multires Noise Iterations | 10 |
75
+ | Network Alpha | 32 | Repeat & Steps | 17 & 2650 |
76
+ | Epoch | 14 | Save Every N Epochs | 1 |
77
+
78
+ Labeling: florence2-en(natural language & English)
79
+
80
+ Total Images Used for Training : 19 [ Flat 4K ]
81
+
82
+ ## Best Dimensions & Inference
83
+
84
+ | **Dimensions** | **Aspect Ratio** | **Recommendation** |
85
+ |-----------------|------------------|---------------------------|
86
+ | 1280 x 832 | 3:2 | Best |
87
+ | 1024 x 1024 | 1:1 | Default |
88
+
89
+ ### Inference Range
90
+
91
+ - **Recommended Inference Steps:** 30–35
92
+
93
+ ## Setting Up
94
+ ```python
95
+ import torch
96
+ from pipelines import DiffusionPipeline
97
+
98
+ base_model = "black-forest-labs/FLUX.1-dev"
99
+ pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16)
100
+
101
+ lora_repo = "strangerzonehf/Flux-Super-Portrait-LoRA"
102
+ trigger_word = "Super Portrait"
103
+ pipe.load_lora_weights(lora_repo)
104
+
105
+ device = torch.device("cuda")
106
+ pipe.to(device)
107
+ ```
108
+ ## Trigger words
109
+
110
+ You should use `Super Portrait` to trigger the image generation.
111
+
112
+ ## Download model
113
+
114
+ Weights for this model are available in Safetensors format.
115
+
116
+ [Download](/strangerzonehf/Flux-Super-Portrait-LoRA/tree/main) them in the Files & versions tab.
Super-Portrait.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:34b20a5d8d514b4c1d06ffa8f6e11972879603284e160052c5a7840e4a04d425
3
+ size 612747776
images/1.png ADDED

Git LFS Details

  • SHA256: 0dded2f268db3372f29c5d76e5cf13190537d1e9f80b2b466fa39022062cb845
  • Pointer size: 132 Bytes
  • Size of remote file: 1.04 MB
images/2.png ADDED

Git LFS Details

  • SHA256: 2b9114a96a2ece76d265a1a1c23f5095d06d30a9cab7d8acda8250734b13eb72
  • Pointer size: 131 Bytes
  • Size of remote file: 954 kB
images/3.png ADDED

Git LFS Details

  • SHA256: fdbb17da77cce78e9037b31b8c65b46bf866327a1c3fa39588a2cdaec4fb195c
  • Pointer size: 131 Bytes
  • Size of remote file: 981 kB
images/4.png ADDED

Git LFS Details

  • SHA256: c189a48f2099389f026eff0b4b5fe84be310663cfcf452ae7fc11c69ffdfe7c1
  • Pointer size: 132 Bytes
  • Size of remote file: 1.13 MB
images/5.png ADDED

Git LFS Details

  • SHA256: 087656c1c41db64fc0c20c2782c3ede5ad284803d13a044762c4238a38be10bd
  • Pointer size: 132 Bytes
  • Size of remote file: 1.09 MB
images/6.png ADDED

Git LFS Details

  • SHA256: a2d8da00e40b51b6d1f9de24ac7ba617a4701de15e1e6f7cb8010fc3aa685938
  • Pointer size: 132 Bytes
  • Size of remote file: 1.17 MB