Browse Source

first workflows

wyrde-docs
wyrde 2 years ago
parent
commit
2f3e8b7202
  1. BIN
      basics/building-up/ComfyUI_00335_.png
  2. BIN
      basics/building-up/ComfyUI_00344_.png
  3. BIN
      basics/building-up/ComfyUI_00349_.png
  4. 71
      basics/building-up/README.md
  5. 556
      basics/building-up/basic-workflow-v03.json
  6. BIN
      basics/building-up/basic-workflow-v03.png
  7. BIN
      basics/building-up/basic-workflow-v03ex.png
  8. 1073
      basics/building-up/basic-workflow-vae-lora-latent-hrf.json
  9. BIN
      basics/building-up/basic-workflow-vae-lora-latent-hrf.png
  10. 1635
      basics/building-up/basic-workflow-vae-lora-latentupscale-v03.json
  11. 1073
      basics/building-up/basic-workflow-vae-lora-one-latent-v03.json
  12. 677
      basics/building-up/basic-workflow-vae-v03.json
  13. BIN
      basics/building-up/basic-workflow-vae-v03.png

BIN
basics/building-up/ComfyUI_00335_.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 368 KiB

BIN
basics/building-up/ComfyUI_00344_.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 KiB

BIN
basics/building-up/ComfyUI_00349_.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 262 KiB

71
basics/building-up/README.md

@ -0,0 +1,71 @@
# Building on the Basics
A series of workflows to teach some of ComfyUI's basics.
<img src="some image" align="middle">
## The Beginning
* <a href="basic-workflow-v03.json">basic-workflow .json file</a>
<img src="basic-workflow-v03.png" align="middle">
Once ComfyUI is installed and running, adding workflows is as easy as dragging and dropping images or workflows created by ComfyUI into the empty area of the browser window.
This basic workflow generates an image based on the positive and negative prompts.
* processing starts with the "checkpoint", which is loaded by the Load Checkpoint node on the left.
* Information from the chekcpoint is sent to the two clip boxes, along the node path, and along the model path.
* The clip text encode node attached to the KSampler's _positive_ input in the _Positive Prompt_.
* The clip text encode node attached to the KSampler's _negative_ input in the _Negative Prompt_.
* The Empty Latent Image is the "starting image", is a blank bit of noise. Rather like a painter's canvas.
* The _Model_ is all the raw information _Stable Diffusion_ uses through the Sampler to resolve noise into images.
* I don't know what the fuck VAEs are, but they're important.
* all models contain a VAE, but not all models have a good VAE.
* an external VAE can be added to the workflow through a VAE laoder, see below.
* The _KSampler_ node has a number of options. I won't go over all of them here, but for right now the most important are:
* The _Seed_ is a number used for randomness. All things being equal, a workflow with the same seed will spit out the same image.
* If the seed doesn't change and nothing else changes, ComfyUI won't even process the workflow. The result is the same as last time. If nothing else changes and the seed does, then new images will be generated. They can vary wildly from one to the next.
* This makes it easy to tell if nothing has changed.
* The line under the seed is how new seeds are generated.
* fixed: they aren't. Seed stays the same. Useful for checking othetr parameters and generating the same basic image.
* Increment/Decriment: the seed changes by +/- 1.
* Random: Holdy Changing Numbers, Batman!
* values are changed by clicking the arrows to scroll through the options or clicking directly on a value to see a list.
## Adding a Vae Loader
## Adding a Lora
## HiRez Fixing
## Expanding on Fixing
## Upscaling
* images
<!-- <img src="" width="10%" align="middle"> -->
## resources
<!-- things people might want to duplicate results -->
Model
* https://civitai.com/models/4384/dreamshaper
Lora
* https://civitai.com/models/8858/maplestory2game-chibi-style-hn
* https://civitai.com/models/21670/astrobabes
* https://civitai.com/models/25803/battle-angels
Embeds
* EasyNegative https://civitai.com/models/7808/easynegative
* bad-hands-5 https://huggingface.co/yesyeahvh/bad-hands-5/tree/main
Custom Nodes
* [WAS Suite](https://github.com/WASasquatch/was-node-suite-comfyui)
<!-- will likely forget to doublecheck this -->
<p align="right"><a href="..">[back]</a><a href="../../../.."> [home]</a></p>

556
basics/building-up/basic-workflow-v03.json

@ -0,0 +1,556 @@
{
"last_node_id": 35,
"last_link_id": 76,
"nodes": [
{
"id": 9,
"type": "SaveImage",
"pos": [
2350,
140
],
"size": {
"0": 400,
"1": 480
},
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 9
}
],
"properties": {},
"widgets_values": [
"ComfyUI"
]
},
{
"id": 34,
"type": "Reroute",
"pos": [
1390,
-100
],
"size": [
82,
26
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 70
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
54
],
"slot_index": 0
}
],
"properties": {
"showOutputText": true,
"horizontal": false
},
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 35,
"type": "Reroute",
"pos": [
740,
-100
],
"size": [
82,
26
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 69
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
70
],
"slot_index": 0
}
],
"properties": {
"showOutputText": true,
"horizontal": false
},
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 3,
"type": "KSampler",
"pos": [
1610,
140
],
"size": {
"0": 315,
"1": 262
},
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 54
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 76
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 75
},
{
"name": "latent_image",
"type": "LATENT",
"link": 74
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
72
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
1117698844150624,
"randomize",
20,
8,
"uni_pc_bh2",
"normal",
1
]
},
{
"id": 8,
"type": "VAEDecode",
"pos": [
2070,
140
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 72
},
{
"name": "vae",
"type": "VAE",
"link": 12
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
9
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 13,
"type": "Reroute",
"pos": [
710,
600
],
"size": [
75,
26
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 73
}
],
"outputs": [
{
"name": "VAE",
"type": "VAE",
"links": [
19
],
"slot_index": 0
}
],
"properties": {
"showOutputText": true,
"horizontal": false
},
"color": "#323",
"bgcolor": "#535"
},
{
"id": 11,
"type": "Reroute",
"pos": [
1900,
600
],
"size": [
75,
26
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 19
}
],
"outputs": [
{
"name": "VAE",
"type": "VAE",
"links": [
12
],
"slot_index": 0
}
],
"properties": {
"showOutputText": true,
"horizontal": false
},
"color": "#323",
"bgcolor": "#535"
},
{
"id": 5,
"type": "EmptyLatentImage",
"pos": [
910,
430
],
"size": {
"0": 315,
"1": 106
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
74
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "EmptyLatentImage"
},
"widgets_values": [
512,
512,
1
]
},
{
"id": 7,
"type": "CLIPTextEncode",
"pos": [
850,
180
],
"size": {
"0": 425.27801513671875,
"1": 180.6060791015625
},
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 68
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
75
],
"slot_index": 0
}
],
"title": "CLIP Text Encode (Prompt) Negative",
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"text, watermark"
],
"color": "#222",
"bgcolor": "#000"
},
{
"id": 6,
"type": "CLIPTextEncode",
"pos": [
860,
-30
],
"size": {
"0": 422.84503173828125,
"1": 164.31304931640625
},
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 67
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
76
],
"slot_index": 0
}
],
"title": "CLIP Text Encode (Prompt) Positive",
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"beautiful scenery nature glass bottle landscape, purple galaxy bottle,"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 4,
"type": "CheckpointLoaderSimple",
"pos": [
270,
160
],
"size": {
"0": 350,
"1": 100
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
69
],
"slot_index": 0
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
67,
68
],
"slot_index": 1
},
{
"name": "VAE",
"type": "VAE",
"links": [
73
],
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"v1-5-pruned-emaonly.safetensors"
]
}
],
"links": [
[
9,
8,
0,
9,
0,
"IMAGE"
],
[
12,
11,
0,
8,
1,
"VAE"
],
[
19,
13,
0,
11,
0,
"*"
],
[
54,
34,
0,
3,
0,
"MODEL"
],
[
67,
4,
1,
6,
0,
"CLIP"
],
[
68,
4,
1,
7,
0,
"CLIP"
],
[
69,
4,
0,
35,
0,
"*"
],
[
70,
35,
0,
34,
0,
"*"
],
[
72,
3,
0,
8,
0,
"LATENT"
],
[
73,
4,
2,
13,
0,
"*"
],
[
74,
5,
0,
3,
3,
"LATENT"
],
[
75,
7,
0,
3,
2,
"CONDITIONING"
],
[
76,
6,
0,
3,
1,
"CONDITIONING"
]
],
"groups": [],
"config": {},
"extra": {},
"version": 0.4
}

BIN
basics/building-up/basic-workflow-v03.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 KiB

BIN
basics/building-up/basic-workflow-v03ex.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 372 KiB

1073
basics/building-up/basic-workflow-vae-lora-latent-hrf.json

File diff suppressed because it is too large Load Diff

BIN
basics/building-up/basic-workflow-vae-lora-latent-hrf.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

1635
basics/building-up/basic-workflow-vae-lora-latentupscale-v03.json

File diff suppressed because it is too large Load Diff

1073
basics/building-up/basic-workflow-vae-lora-one-latent-v03.json

File diff suppressed because it is too large Load Diff

677
basics/building-up/basic-workflow-vae-v03.json

@ -0,0 +1,677 @@
{
"last_node_id": 35,
"last_link_id": 76,
"nodes": [
{
"id": 13,
"type": "Reroute",
"pos": [
700,
500
],
"size": [
75,
26
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 18
}
],
"outputs": [
{
"name": "VAE",
"type": "VAE",
"links": [
19
],
"slot_index": 0
}
],
"properties": {
"showOutputText": true,
"horizontal": false
},
"color": "#323",
"bgcolor": "#535"
},
{
"id": 5,
"type": "EmptyLatentImage",
"pos": [
270,
330
],
"size": {
"0": 315,
"1": 106
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
50
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "EmptyLatentImage"
},
"widgets_values": [
512,
512,
1
]
},
{
"id": 32,
"type": "Reroute",
"pos": [
700,
460
],
"size": [
90.4,
26
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 50
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
51
],
"slot_index": 0
}
],
"properties": {
"showOutputText": true,
"horizontal": false
},
"color": "#233",
"bgcolor": "#355"
},
{
"id": 9,
"type": "SaveImage",
"pos": [
2350,
140
],
"size": {
"0": 400,
"1": 480
},
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 9
}
],
"properties": {},
"widgets_values": [
"ComfyUI"
]
},
{
"id": 34,
"type": "Reroute",
"pos": [
1360,
0
],
"size": [
82,
26
],
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 70
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
54
],
"slot_index": 0
}
],
"properties": {
"showOutputText": true,
"horizontal": false
},
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 8,
"type": "VAEDecode",
"pos": [
2070,
140
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 72
},
{
"name": "vae",
"type": "VAE",
"link": 76
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
9
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 10,
"type": "VAELoader",
"pos": [
270,
480
],
"size": {
"0": 315,
"1": 58
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "VAE",
"type": "VAE",
"links": [
18
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAELoader"
},
"widgets_values": [
"vae-ft-mse-840000-ema-pruned.safetensors"
]
},
{
"id": 7,
"type": "CLIPTextEncode",
"pos": [
830,
280
],
"size": {
"0": 425.27801513671875,
"1": 180.6060791015625
},
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 68
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
73
],
"slot_index": 0
}
],
"title": "CLIP Text Encode (Prompt) Negative",
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"text, watermark"
],
"color": "#222",
"bgcolor": "#000"
},
{
"id": 6,
"type": "CLIPTextEncode",
"pos": [
830,
70
],
"size": {
"0": 422.84503173828125,
"1": 164.31304931640625
},
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 67
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
74
],
"slot_index": 0
}
],
"title": "CLIP Text Encode (Prompt) Positive",
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"beautiful scenery nature glass bottle landscape, purple galaxy bottle,"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 35,
"type": "Reroute",
"pos": [
710,
0
],
"size": [
82,
26
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 69
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
70
],
"slot_index": 0
}
],
"properties": {
"showOutputText": true,
"horizontal": false
},
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 33,
"type": "Reroute",
"pos": [
1370,
460
],
"size": [
90.4,
26
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 51
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
52
],
"slot_index": 0
}
],
"properties": {
"showOutputText": true,
"horizontal": false
},
"color": "#233",
"bgcolor": "#355"
},
{
"id": 4,
"type": "CheckpointLoaderSimple",
"pos": [
270,
190
],
"size": {
"0": 315,
"1": 98
},
"flags": {},
"order": 2,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
69
],
"slot_index": 0
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
67,
68
],
"slot_index": 1
},
{
"name": "VAE",
"type": "VAE",
"links": [],
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"v1-5-pruned-emaonly.safetensors"
]
},
{
"id": 11,
"type": "Reroute",
"pos": [
1875,
496
],
"size": [
75,
26
],
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 19
}
],
"outputs": [
{
"name": "VAE",
"type": "VAE",
"links": [
76
],
"slot_index": 0
}
],
"properties": {
"showOutputText": true,
"horizontal": false
},
"color": "#323",
"bgcolor": "#535"
},
{
"id": 3,
"type": "KSampler",
"pos": [
1610,
140
],
"size": {
"0": 315,
"1": 262
},
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 54
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 74
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 73
},
{
"name": "latent_image",
"type": "LATENT",
"link": 52
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
72
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
1117698844150624,
"randomize",
20,
8,
"uni_pc_bh2",
"normal",
1
]
}
],
"links": [
[
9,
8,
0,
9,
0,
"IMAGE"
],
[
18,
10,
0,
13,
0,
"*"
],
[
19,
13,
0,
11,
0,
"*"
],
[
50,
5,
0,
32,
0,
"*"
],
[
51,
32,
0,
33,
0,
"*"
],
[
52,
33,
0,
3,
3,
"LATENT"
],
[
54,
34,
0,
3,
0,
"MODEL"
],
[
67,
4,
1,
6,
0,
"CLIP"
],
[
68,
4,
1,
7,
0,
"CLIP"
],
[
69,
4,
0,
35,
0,
"*"
],
[
70,
35,
0,
34,
0,
"*"
],
[
72,
3,
0,
8,
0,
"LATENT"
],
[
73,
7,
0,
3,
2,
"CONDITIONING"
],
[
74,
6,
0,
3,
1,
"CONDITIONING"
],
[
76,
11,
0,
8,
1,
"VAE"
]
],
"groups": [],
"config": {},
"extra": {},
"version": 0.4
}

BIN
basics/building-up/basic-workflow-vae-v03.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 KiB

Loading…
Cancel
Save