aleph65 commited on
Commit
74ebe56
·
verified ·
1 Parent(s): 78d3e2e

Add USO style transfer: uso-style-transfer.json

Browse files
Files changed (1) hide show
  1. workflows/api/uso-style-transfer.json +249 -0
workflows/api/uso-style-transfer.json ADDED
@@ -0,0 +1,249 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "1": {
3
+ "_meta": {
4
+ "title": "Load FLUX.1 Dev fp8 (all-in-one checkpoint)"
5
+ },
6
+ "class_type": "CheckpointLoaderSimple",
7
+ "inputs": {
8
+ "ckpt_name": "flux1-dev-fp8.safetensors"
9
+ }
10
+ },
11
+ "10": {
12
+ "_meta": {
13
+ "title": "VAE Encode content"
14
+ },
15
+ "class_type": "VAEEncode",
16
+ "inputs": {
17
+ "pixels": [
18
+ "15",
19
+ 0
20
+ ],
21
+ "vae": [
22
+ "1",
23
+ 2
24
+ ]
25
+ }
26
+ },
27
+ "11": {
28
+ "_meta": {
29
+ "title": "Flux Guidance"
30
+ },
31
+ "class_type": "FluxGuidance",
32
+ "inputs": {
33
+ "conditioning": [
34
+ "7",
35
+ 0
36
+ ],
37
+ "guidance": 3.5
38
+ }
39
+ },
40
+ "12": {
41
+ "_meta": {
42
+ "title": "Style Reference Image"
43
+ },
44
+ "class_type": "LoadImage",
45
+ "inputs": {
46
+ "image": "example.png"
47
+ }
48
+ },
49
+ "13": {
50
+ "_meta": {
51
+ "title": "Pass 1 \u2014 USO style (denoise = style strength)"
52
+ },
53
+ "class_type": "KSampler",
54
+ "inputs": {
55
+ "cfg": 1.0,
56
+ "denoise": 0.6,
57
+ "latent_image": [
58
+ "10",
59
+ 0
60
+ ],
61
+ "model": [
62
+ "6",
63
+ 0
64
+ ],
65
+ "negative": [
66
+ "9",
67
+ 0
68
+ ],
69
+ "positive": [
70
+ "11",
71
+ 0
72
+ ],
73
+ "sampler_name": "euler",
74
+ "scheduler": "simple",
75
+ "seed": 42,
76
+ "steps": 20
77
+ }
78
+ },
79
+ "14": {
80
+ "_meta": {
81
+ "title": "Content Image (what to restyle)"
82
+ },
83
+ "class_type": "LoadImage",
84
+ "inputs": {
85
+ "image": "example.png"
86
+ }
87
+ },
88
+ "15": {
89
+ "_meta": {
90
+ "title": "Scale content (working resolution)"
91
+ },
92
+ "class_type": "ImageScaleToMaxDimension",
93
+ "inputs": {
94
+ "image": [
95
+ "14",
96
+ 0
97
+ ],
98
+ "largest_size": 1280,
99
+ "upscale_method": "lanczos"
100
+ }
101
+ },
102
+ "16": {
103
+ "class_type": "VAEDecode",
104
+ "inputs": {
105
+ "samples": [
106
+ "23",
107
+ 0
108
+ ],
109
+ "vae": [
110
+ "1",
111
+ 2
112
+ ]
113
+ }
114
+ },
115
+ "2": {
116
+ "_meta": {
117
+ "title": "USO DiT LoRA"
118
+ },
119
+ "class_type": "LoraLoaderModelOnly",
120
+ "inputs": {
121
+ "lora_name": "uso-flux1-dit-lora-v1.safetensors",
122
+ "model": [
123
+ "1",
124
+ 0
125
+ ],
126
+ "strength_model": 1.0
127
+ }
128
+ },
129
+ "21": {
130
+ "class_type": "SaveImage",
131
+ "inputs": {
132
+ "filename_prefix": "uso_style_transfer",
133
+ "images": [
134
+ "16",
135
+ 0
136
+ ]
137
+ }
138
+ },
139
+ "23": {
140
+ "_meta": {
141
+ "title": "Pass 2 \u2014 plain flux refine (cleans USO texture)"
142
+ },
143
+ "class_type": "KSampler",
144
+ "inputs": {
145
+ "cfg": 1.0,
146
+ "denoise": 0.3,
147
+ "latent_image": [
148
+ "13",
149
+ 0
150
+ ],
151
+ "model": [
152
+ "1",
153
+ 0
154
+ ],
155
+ "negative": [
156
+ "9",
157
+ 0
158
+ ],
159
+ "positive": [
160
+ "11",
161
+ 0
162
+ ],
163
+ "sampler_name": "euler",
164
+ "scheduler": "simple",
165
+ "seed": 42,
166
+ "steps": 20
167
+ }
168
+ },
169
+ "3": {
170
+ "_meta": {
171
+ "title": "USO Projector (model patch)"
172
+ },
173
+ "class_type": "ModelPatchLoader",
174
+ "inputs": {
175
+ "name": "uso-flux1-projector-v1.safetensors"
176
+ }
177
+ },
178
+ "4": {
179
+ "_meta": {
180
+ "title": "Load SigCLIP Vision"
181
+ },
182
+ "class_type": "CLIPVisionLoader",
183
+ "inputs": {
184
+ "clip_name": "sigclip_vision_patch14_384.safetensors"
185
+ }
186
+ },
187
+ "5": {
188
+ "_meta": {
189
+ "title": "Encode Style 1"
190
+ },
191
+ "class_type": "CLIPVisionEncode",
192
+ "inputs": {
193
+ "clip_vision": [
194
+ "4",
195
+ 0
196
+ ],
197
+ "crop": "center",
198
+ "image": [
199
+ "12",
200
+ 0
201
+ ]
202
+ }
203
+ },
204
+ "6": {
205
+ "_meta": {
206
+ "title": "Apply USO Style 1"
207
+ },
208
+ "class_type": "USOStyleReference",
209
+ "inputs": {
210
+ "clip_vision_output": [
211
+ "5",
212
+ 0
213
+ ],
214
+ "model": [
215
+ "2",
216
+ 0
217
+ ],
218
+ "model_patch": [
219
+ "3",
220
+ 0
221
+ ]
222
+ }
223
+ },
224
+ "7": {
225
+ "_meta": {
226
+ "title": "Positive Prompt (describe the content image!)"
227
+ },
228
+ "class_type": "CLIPTextEncode",
229
+ "inputs": {
230
+ "clip": [
231
+ "1",
232
+ 1
233
+ ],
234
+ "text": "A high quality photo of a young woman, natural skin texture, professional photography"
235
+ }
236
+ },
237
+ "9": {
238
+ "_meta": {
239
+ "title": "Negative (zeroed \u2014 flux uses CFG 1)"
240
+ },
241
+ "class_type": "ConditioningZeroOut",
242
+ "inputs": {
243
+ "conditioning": [
244
+ "7",
245
+ 0
246
+ ]
247
+ }
248
+ }
249
+ }