akhaliq HF Staff commited on
Commit
728e52c
·
verified ·
1 Parent(s): 2304978

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. index.html +618 -19
index.html CHANGED
@@ -1,19 +1,618 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "last_node_id": 12,
3
+ "last_link_id": 18,
4
+ "nodes": [
5
+ {
6
+ "id": 1,
7
+ "type": "CheckpointLoaderSimple",
8
+ "pos": [
9
+ 100,
10
+ 100
11
+ ],
12
+ "size": {
13
+ "0": 315,
14
+ "1": 98
15
+ },
16
+ "flags": {},
17
+ "order": 0,
18
+ "mode": 0,
19
+ "outputs": [
20
+ {
21
+ "name": "MODEL",
22
+ "type": "MODEL",
23
+ "links": [
24
+ 1
25
+ ]
26
+ },
27
+ {
28
+ "name": "CLIP",
29
+ "type": "CLIP",
30
+ "links": [
31
+ 2
32
+ ]
33
+ },
34
+ {
35
+ "name": "VAE",
36
+ "type": "VAE",
37
+ "links": [
38
+ 3
39
+ ]
40
+ }
41
+ ],
42
+ "properties": {
43
+ "Node name for S&R": "CheckpointLoaderSimple"
44
+ }
45
+ },
46
+ {
47
+ "id": 2,
48
+ "type": "CLIPTextEncode",
49
+ "pos": [
50
+ 450,
51
+ 100
52
+ ],
53
+ "size": [
54
+ 300,
55
+ 180
56
+ ],
57
+ "flags": {},
58
+ "order": 1,
59
+ "mode": 0,
60
+ "inputs": [
61
+ {
62
+ "name": "clip",
63
+ "type": "CLIP",
64
+ "link": 2
65
+ }
66
+ ],
67
+ "outputs": [
68
+ {
69
+ "name": "CONDITIONING",
70
+ "type": "CONDITIONING",
71
+ "links": [
72
+ 4
73
+ ]
74
+ }
75
+ ],
76
+ "properties": {
77
+ "Node name for S&R": "CLIPTextEncode"
78
+ },
79
+ "widgets_values": [
80
+ "beautiful landscape photography, high quality, detailed, 4k"
81
+ ]
82
+ },
83
+ {
84
+ "id": 3,
85
+ "type": "CLIPTextEncode",
86
+ "pos": [
87
+ 450,
88
+ 300
89
+ ],
90
+ "size": [
91
+ 300,
92
+ 180
93
+ ],
94
+ "flags": {},
95
+ "order": 2,
96
+ "mode": 0,
97
+ "inputs": [
98
+ {
99
+ "name": "clip",
100
+ "type": "CLIP",
101
+ "link": 2
102
+ }
103
+ ],
104
+ "outputs": [
105
+ {
106
+ "name": "CONDITIONING",
107
+ "type": "CONDITIONING",
108
+ "links": [
109
+ 5
110
+ ]
111
+ }
112
+ ],
113
+ "properties": {
114
+ "Node name for S&R": "CLIPTextEncode"
115
+ },
116
+ "widgets_values": [
117
+ "blurry, low quality, distorted, ugly"
118
+ ]
119
+ },
120
+ {
121
+ "id": 4,
122
+ "type": "KSampler",
123
+ "pos": [
124
+ 800,
125
+ 100
126
+ ],
127
+ "size": [
128
+ 315,
129
+ 262
130
+ ],
131
+ "flags": {},
132
+ "order": 3,
133
+ "mode": 0,
134
+ "inputs": [
135
+ {
136
+ "name": "model",
137
+ "type": "MODEL",
138
+ "link": 1
139
+ },
140
+ {
141
+ "name": "positive",
142
+ "type": "CONDITIONING",
143
+ "link": 4
144
+ },
145
+ {
146
+ "name": "negative",
147
+ "type": "CONDITIONING",
148
+ "link": 5
149
+ },
150
+ {
151
+ "name": "latent_image",
152
+ "type": "LATENT",
153
+ "link": 6
154
+ }
155
+ ],
156
+ "outputs": [
157
+ {
158
+ "name": "LATENT",
159
+ "type": "LATENT",
160
+ "links": [
161
+ 7
162
+ ]
163
+ }
164
+ ],
165
+ "properties": {
166
+ "Node name for S&R": "KSampler"
167
+ },
168
+ "widgets_values": [
169
+ 84796741244667,
170
+ "randomize",
171
+ 20,
172
+ 7.0,
173
+ "euler"
174
+ ]
175
+ },
176
+ {
177
+ "id": 5,
178
+ "type": "EmptyLatentImage",
179
+ "pos": [
180
+ 550,
181
+ 100
182
+ ],
183
+ "size": [
184
+ 315,
185
+ 106
186
+ ],
187
+ "flags": {},
188
+ "order": 4,
189
+ "mode": 0,
190
+ "outputs": [
191
+ {
192
+ "name": "LATENT",
193
+ "type": "LATENT",
194
+ "links": [
195
+ 6
196
+ ]
197
+ }
198
+ ],
199
+ "properties": {
200
+ "Node name for S&R": "EmptyLatentImage"
201
+ },
202
+ "widgets_values": [
203
+ 512,
204
+ 512,
205
+ 1
206
+ ]
207
+ },
208
+ {
209
+ "id": 6,
210
+ "type": "VAEDecode",
211
+ "pos": [
212
+ 1150,
213
+ 100
214
+ ],
215
+ "size": [
216
+ 210,
217
+ 46
218
+ ],
219
+ "flags": {},
220
+ "order": 5,
221
+ "mode": 0,
222
+ "inputs": [
223
+ {
224
+ "name": "samples",
225
+ "type": "LATENT",
226
+ "link": 7
227
+ },
228
+ {
229
+ "name": "vae",
230
+ "type": "VAE",
231
+ "link": 3
232
+ }
233
+ ],
234
+ "outputs": [
235
+ {
236
+ "name": "IMAGE",
237
+ "type": "IMAGE",
238
+ "links": [
239
+ 8
240
+ ]
241
+ }
242
+ ],
243
+ "properties": {
244
+ "Node name for S&R": "VAEDecode"
245
+ }
246
+ },
247
+ {
248
+ "id": 7,
249
+ "type": "SaveImage",
250
+ "pos": [
251
+ 1400,
252
+ 100
253
+ ],
254
+ "size": [
255
+ 315,
256
+ 270
257
+ ],
258
+ "flags": {},
259
+ "order": 6,
260
+ "mode": 0,
261
+ "inputs": [
262
+ {
263
+ "name": "images",
264
+ "type": "IMAGE",
265
+ "link": 8
266
+ }
267
+ ],
268
+ "properties": {
269
+ "Node name for S&R": "SaveImage"
270
+ },
271
+ "widgets_values": [
272
+ "stable_diffusion_output"
273
+ ]
274
+ },
275
+ {
276
+ "id": 8,
277
+ "type": "SaveImage",
278
+ "pos": [
279
+ 1400,
280
+ 400
281
+ ],
282
+ "size": [
283
+ 315,
284
+ 270
285
+ ],
286
+ "flags": {},
287
+ "order": 7,
288
+ "mode": 0,
289
+ "properties": {
290
+ "Node name for S&R": "SaveImage"
291
+ },
292
+ "widgets_values": [
293
+ "stable_diffusion_grid"
294
+ ]
295
+ },
296
+ {
297
+ "id": 9,
298
+ "type": "CLIPTextEncode",
299
+ "pos": [
300
+ 450,
301
+ 520
302
+ ],
303
+ "size": [
304
+ 300,
305
+ 180
306
+ ],
307
+ "flags": {},
308
+ "order": 8,
309
+ "mode": 0,
310
+ "inputs": [
311
+ {
312
+ "name": "clip",
313
+ "type": "CLIP",
314
+ "link": 2
315
+ }
316
+ ],
317
+ "outputs": [
318
+ {
319
+ "name": "CONDITIONING",
320
+ "type": "CONDITIONING",
321
+ "links": [
322
+ 14
323
+ ]
324
+ }
325
+ ],
326
+ "properties": {
327
+ "Node name for S&R": "CLIPTextEncode"
328
+ },
329
+ "widgets_values": [
330
+ "portrait of a woman, detailed face, professional photography"
331
+ ]
332
+ },
333
+ {
334
+ "id": 10,
335
+ "type": "KSampler",
336
+ "pos": [
337
+ 800,
338
+ 400
339
+ ],
340
+ "size": [
341
+ 315,
342
+ 262
343
+ ],
344
+ "flags": {},
345
+ "order": 9,
346
+ "mode": 0,
347
+ "inputs": [
348
+ {
349
+ "name": "model",
350
+ "type": "MODEL",
351
+ "link": 1
352
+ },
353
+ {
354
+ "name": "positive",
355
+ "type": "CONDITIONING",
356
+ "link": 14
357
+ },
358
+ {
359
+ "name": "negative",
360
+ "type": "CONDITIONING",
361
+ "link": 5
362
+ },
363
+ {
364
+ "name": "latent_image",
365
+ "type": "LATENT",
366
+ "link": 15
367
+ }
368
+ ],
369
+ "outputs": [
370
+ {
371
+ "name": "LATENT",
372
+ "type": "LATENT",
373
+ "links": [
374
+ 16
375
+ ]
376
+ }
377
+ ],
378
+ "properties": {
379
+ "Node name for S&R": "KSampler"
380
+ },
381
+ "widgets_values": [
382
+ 12345678901234,
383
+ "randomize",
384
+ 25,
385
+ 8.0,
386
+ "euler"
387
+ ]
388
+ },
389
+ {
390
+ "id": 11,
391
+ "type": "EmptyLatentImage",
392
+ "pos": [
393
+ 550,
394
+ 400
395
+ ],
396
+ "size": [
397
+ 315,
398
+ 106
399
+ ],
400
+ "flags": {},
401
+ "order": 10,
402
+ "mode": 0,
403
+ "outputs": [
404
+ {
405
+ "name": "LATENT",
406
+ "type": "LATENT",
407
+ "links": [
408
+ 15
409
+ ]
410
+ }
411
+ ],
412
+ "properties": {
413
+ "Node name for S&R": "EmptyLatentImage"
414
+ },
415
+ "widgets_values": [
416
+ 768,
417
+ 512,
418
+ 1
419
+ ]
420
+ },
421
+ {
422
+ "id": 12,
423
+ "type": "VAEDecode",
424
+ "pos": [
425
+ 1150,
426
+ 400
427
+ ],
428
+ "size": [
429
+ 210,
430
+ 46
431
+ ],
432
+ "flags": {},
433
+ "order": 11,
434
+ "mode": 0,
435
+ "inputs": [
436
+ {
437
+ "name": "samples",
438
+ "type": "LATENT",
439
+ "link": 16
440
+ },
441
+ {
442
+ "name": "vae",
443
+ "type": "VAE",
444
+ "link": 3
445
+ }
446
+ ],
447
+ "outputs": [
448
+ {
449
+ "name": "IMAGE",
450
+ "type": "IMAGE",
451
+ "links": [
452
+ 17
453
+ ]
454
+ }
455
+ ],
456
+ "properties": {
457
+ "Node name for S&R": "VAEDecode"
458
+ }
459
+ },
460
+ {
461
+ "id": 13,
462
+ "type": "SaveImage",
463
+ "pos": [
464
+ 1400,
465
+ 700
466
+ ],
467
+ "size": [
468
+ 315,
469
+ 270
470
+ ],
471
+ "flags": {},
472
+ "order": 12,
473
+ "mode": 0,
474
+ "inputs": [
475
+ {
476
+ "name": "images",
477
+ "type": "IMAGE",
478
+ "link": 17
479
+ }
480
+ ],
481
+ "properties": {
482
+ "Node name for S&R": "SaveImage"
483
+ },
484
+ "widgets_values": [
485
+ "stable_diffusion_portrait"
486
+ ]
487
+ }
488
+ ],
489
+ "links": [
490
+ [
491
+ 1,
492
+ 1,
493
+ 0,
494
+ 4,
495
+ 0,
496
+ "MODEL"
497
+ ],
498
+ [
499
+ 2,
500
+ 1,
501
+ 1,
502
+ 2,
503
+ 0,
504
+ "CLIP"
505
+ ],
506
+ [
507
+ 3,
508
+ 1,
509
+ 2,
510
+ 6,
511
+ 1,
512
+ "VAE"
513
+ ],
514
+ [
515
+ 4,
516
+ 2,
517
+ 0,
518
+ 4,
519
+ 1,
520
+ "CONDITIONING"
521
+ ],
522
+ [
523
+ 5,
524
+ 3,
525
+ 0,
526
+ 4,
527
+ 2,
528
+ "CONDITIONING"
529
+ ],
530
+ [
531
+ 6,
532
+ 5,
533
+ 0,
534
+ 4,
535
+ 3,
536
+ "LATENT"
537
+ ],
538
+ [
539
+ 7,
540
+ 4,
541
+ 0,
542
+ 6,
543
+ 0,
544
+ "LATENT"
545
+ ],
546
+ [
547
+ 8,
548
+ 6,
549
+ 0,
550
+ 7,
551
+ 0,
552
+ "IMAGE"
553
+ ],
554
+ [
555
+ 14,
556
+ 9,
557
+ 0,
558
+ 10,
559
+ 1,
560
+ "CONDITIONING"
561
+ ],
562
+ [
563
+ 15,
564
+ 11,
565
+ 0,
566
+ 10,
567
+ 3,
568
+ "LATENT"
569
+ ],
570
+ [
571
+ 16,
572
+ 10,
573
+ 0,
574
+ 12,
575
+ 0,
576
+ "LATENT"
577
+ ],
578
+ [
579
+ 17,
580
+ 12,
581
+ 0,
582
+ 13,
583
+ 0,
584
+ "IMAGE"
585
+ ]
586
+ ],
587
+ "groups": [],
588
+ "config": {},
589
+ "extra": {},
590
+ "version": 0.4
591
+ }
592
+
593
+ This ComfyUI workflow implements a complete stable diffusion image generation pipeline with the following features:
594
+
595
+ **Core Components:**
596
+ - **CheckpointLoaderSimple**: Loads the stable diffusion model, CLIP, and VAE
597
+ - **CLIPTextEncode**: Encodes positive and negative prompts for conditioning
598
+ - **KSampler**: Performs the diffusion sampling process
599
+ - **EmptyLatentImage**: Creates initial latent canvas
600
+ - **VAEDecode**: Decodes latents to final images
601
+ - **SaveImage**: Outputs the generated images
602
+
603
+ **Key Features:**
604
+ 1. **Dual Sampling Paths**: Two complete generation pipelines for different image types
605
+ 2. **Positive/Negative Prompting**: Uses CLIP for text conditioning with both positive and negative prompts
606
+ 3. **Customizable Parameters**:
607
+ - Different sampling steps (20 vs 25)
608
+ - Various CFG scales (7.0 vs 8.0)
609
+ - Different image sizes (512x512 vs 768x512)
610
+ 4. **Multiple Outputs**: Generates landscape and portrait style images
611
+
612
+ **Usage:**
613
+ 1. Load a stable diffusion checkpoint (e.g., sd_v1-5.safetensors)
614
+ 2. The workflow automatically processes two different prompts
615
+ 3. Outputs saved as individual image files
616
+ 4. Ready for batch processing or single image generation
617
+
618
+ The workflow demonstrates the complete stable diffusion pipeline and can be easily modified for different models, prompts, or parameters.