Betha commited on
Commit
39673b2
·
verified ·
1 Parent(s): 23adfbd

Model card auto-generated by SimpleTuner

Browse files
Files changed (1) hide show
  1. README.md +146 -0
README.md ADDED
@@ -0,0 +1,146 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ base_model: "black-forest-labs/FLUX.1-dev"
4
+ tags:
5
+ - flux
6
+ - flux-diffusers
7
+ - text-to-image
8
+ - diffusers
9
+ - simpletuner
10
+ - lora
11
+ - template:sd-lora
12
+ inference: true
13
+ widget:
14
+ - text: 'unconditional (blank prompt)'
15
+ parameters:
16
+ negative_prompt: 'blurry, cropped, ugly'
17
+ output:
18
+ url: ./assets/image_0_0.png
19
+ - text: 'unconditional (blank prompt)'
20
+ parameters:
21
+ negative_prompt: 'blurry, cropped, ugly'
22
+ output:
23
+ url: ./assets/image_1_1.png
24
+ - text: 'A symmetric portrait of Bzt man, evil cursed necromancer, features dissolving into curse magic thin, luminescent purple lines. Weighted Voronoi stippling and laser caustics create a network, transitioning from hyperrealistic detail to abstract, quantum-inspired forms. Ethereal hues blend, evoking existential transition and mystery. Close-up on face, evil skull partially visible. Set against a twilight cursed backdrop, toxic winds ripple through his tattered robes. Rendered in a fusion of photorealism and digital surrealism, the scene is illuminated by ghostly Northern Lights. Emphasis on darkness, menacing atmosphere, invoking Nordic myths. His gaunt face is adorned with arcane symbols, and a wispy beard flows like tendrils of dark energy.'
25
+ parameters:
26
+ negative_prompt: 'blurry, cropped, ugly'
27
+ output:
28
+ url: ./assets/image_2_0.png
29
+ - text: 'A symmetric portrait of Bzt man, evil cursed necromancer, features dissolving into curse magic thin, luminescent purple lines. Weighted Voronoi stippling and laser caustics create a network, transitioning from hyperrealistic detail to abstract, quantum-inspired forms. Ethereal hues blend, evoking existential transition and mystery. Close-up on face, evil skull partially visible. Set against a twilight cursed backdrop, toxic winds ripple through his tattered robes. Rendered in a fusion of photorealism and digital surrealism, the scene is illuminated by ghostly Northern Lights. Emphasis on darkness, menacing atmosphere, invoking Nordic myths. His gaunt face is adorned with arcane symbols, and a wispy beard flows like tendrils of dark energy.'
30
+ parameters:
31
+ negative_prompt: 'blurry, cropped, ugly'
32
+ output:
33
+ url: ./assets/image_3_1.png
34
+ ---
35
+
36
+ # bzt-lora-v1
37
+
38
+ This is a LyCORIS adapter derived from [black-forest-labs/FLUX.1-dev](https://huggingface.co/black-forest-labs/FLUX.1-dev).
39
+
40
+
41
+ The main validation prompt used during training was:
42
+
43
+
44
+
45
+ ```
46
+ A symmetric portrait of Bzt man, evil cursed necromancer, features dissolving into curse magic thin, luminescent purple lines. Weighted Voronoi stippling and laser caustics create a network, transitioning from hyperrealistic detail to abstract, quantum-inspired forms. Ethereal hues blend, evoking existential transition and mystery. Close-up on face, evil skull partially visible. Set against a twilight cursed backdrop, toxic winds ripple through his tattered robes. Rendered in a fusion of photorealism and digital surrealism, the scene is illuminated by ghostly Northern Lights. Emphasis on darkness, menacing atmosphere, invoking Nordic myths. His gaunt face is adorned with arcane symbols, and a wispy beard flows like tendrils of dark energy.
47
+ ```
48
+
49
+ ## Validation settings
50
+ - CFG: `3.0`
51
+ - CFG Rescale: `0.0`
52
+ - Steps: `20`
53
+ - Sampler: `None`
54
+ - Seed: `42`
55
+ - Resolutions: `1024x1024, 832x1216`
56
+
57
+ Note: The validation settings are not necessarily the same as the [training settings](#training-settings).
58
+
59
+ You can find some example images in the following gallery:
60
+
61
+
62
+ <Gallery />
63
+
64
+ The text encoder **was not** trained.
65
+ You may reuse the base model text encoder for inference.
66
+
67
+
68
+ ## Training settings
69
+
70
+ - Training epochs: 16
71
+ - Training steps: 500
72
+ - Learning rate: 0.0001
73
+ - Effective batch size: 1
74
+ - Micro-batch size: 1
75
+ - Gradient accumulation steps: 1
76
+ - Number of GPUs: 1
77
+ - Prediction type: flow-matching
78
+ - Rescaled betas zero SNR: False
79
+ - Optimizer: adamw_bf16
80
+ - Precision: bf16
81
+ - Quantised: Yes: int8-quanto
82
+ - Xformers: Not used
83
+ - LyCORIS Config:
84
+ ```json
85
+ {
86
+ "algo": "lora",
87
+ "multiplier": 1.0,
88
+ "linear_dim": 64,
89
+ "linear_alpha": 32,
90
+ "apply_preset": {
91
+ "target_module": [
92
+ "Attention",
93
+ "FeedForward"
94
+ ],
95
+ "module_algo_map": {
96
+ "Attention": {
97
+ "factor": 16
98
+ },
99
+ "FeedForward": {
100
+ "factor": 8
101
+ }
102
+ }
103
+ }
104
+ }
105
+ ```
106
+
107
+ ## Datasets
108
+
109
+ ### bzt-v1
110
+ - Repeats: 0
111
+ - Total number of images: 30
112
+ - Total number of aspect buckets: 1
113
+ - Resolution: 1.048576 megapixels
114
+ - Cropped: True
115
+ - Crop style: center
116
+ - Crop aspect: square
117
+
118
+
119
+ ## Inference
120
+
121
+
122
+ ```python
123
+ import torch
124
+ from diffusers import DiffusionPipeline
125
+ from lycoris import create_lycoris_from_weights
126
+
127
+ model_id = 'black-forest-labs/FLUX.1-dev'
128
+ adapter_id = 'pytorch_lora_weights.safetensors' # you will have to download this manually
129
+ lora_scale = 1.0
130
+ wrapper, _ = create_lycoris_from_weights(lora_scale, adapter_id, pipeline.transformer)
131
+ wrapper.merge_to()
132
+
133
+ prompt = "A symmetric portrait of Bzt man, evil cursed necromancer, features dissolving into curse magic thin, luminescent purple lines. Weighted Voronoi stippling and laser caustics create a network, transitioning from hyperrealistic detail to abstract, quantum-inspired forms. Ethereal hues blend, evoking existential transition and mystery. Close-up on face, evil skull partially visible. Set against a twilight cursed backdrop, toxic winds ripple through his tattered robes. Rendered in a fusion of photorealism and digital surrealism, the scene is illuminated by ghostly Northern Lights. Emphasis on darkness, menacing atmosphere, invoking Nordic myths. His gaunt face is adorned with arcane symbols, and a wispy beard flows like tendrils of dark energy."
134
+
135
+ pipeline.to('cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu')
136
+ image = pipeline(
137
+ prompt=prompt,
138
+ num_inference_steps=20,
139
+ generator=torch.Generator(device='cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu').manual_seed(1641421826),
140
+ width=1024,
141
+ height=1024,
142
+ guidance_scale=3.0,
143
+ ).images[0]
144
+ image.save("output.png", format="PNG")
145
+ ```
146
+