prithivMLmods commited on
Commit
dec7874
·
verified ·
1 Parent(s): 4cecfa3

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +41 -1
README.md CHANGED
@@ -28,10 +28,50 @@ instance_prompt: Super Portrait
28
  license: creativeml-openrail-m
29
  ---
30
  ![CC1.png](https://cdn-uploads.huggingface.co/production/uploads/65bb837dbfb878f46c77de4c/OQkdEnSefpRhliGZ4VdlB.png)
31
- # Flux-Super-Portrait-LoRA
32
  <Gallery />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
 
 
 
 
34
 
 
 
 
35
  ## Trigger words
36
 
37
  You should use `Super Portrait` to trigger the image generation.
 
28
  license: creativeml-openrail-m
29
  ---
30
  ![CC1.png](https://cdn-uploads.huggingface.co/production/uploads/65bb837dbfb878f46c77de4c/OQkdEnSefpRhliGZ4VdlB.png)
31
+
32
  <Gallery />
33
+ # Model description for Flux-Super-Portrait-LoRA
34
+
35
+ Image Processing Parameters
36
+
37
+ | Parameter | Value | Parameter | Value |
38
+ |---------------------------|--------|---------------------------|--------|
39
+ | LR Scheduler | constant | Noise Offset | 0.03 |
40
+ | Optimizer | AdamW | Multires Noise Discount | 0.1 |
41
+ | Network Dim | 64 | Multires Noise Iterations | 10 |
42
+ | Network Alpha | 32 | Repeat & Steps | 17 & 2650 |
43
+ | Epoch | 14 | Save Every N Epochs | 1 |
44
+
45
+ Labeling: florence2-en(natural language & English)
46
+
47
+ Total Images Used for Training : 19 [ Flat 4K ]
48
+
49
+ ## Best Dimensions & Inference
50
+
51
+ | **Dimensions** | **Aspect Ratio** | **Recommendation** |
52
+ |-----------------|------------------|---------------------------|
53
+ | 1280 x 832 | 3:2 | Best |
54
+ | 1024 x 1024 | 1:1 | Default |
55
+
56
+ ### Inference Range
57
+
58
+ - **Recommended Inference Steps:** 30–35
59
+
60
+ ## Setting Up
61
+ ```python
62
+ import torch
63
+ from pipelines import DiffusionPipeline
64
+
65
+ base_model = "black-forest-labs/FLUX.1-dev"
66
+ pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16)
67
 
68
+ lora_repo = "strangerzonehf/Flux-Super-Portrait-LoRA"
69
+ trigger_word = "Super Portrait"
70
+ pipe.load_lora_weights(lora_repo)
71
 
72
+ device = torch.device("cuda")
73
+ pipe.to(device)
74
+ ```
75
  ## Trigger words
76
 
77
  You should use `Super Portrait` to trigger the image generation.