Skip to content

Instantly share code, notes, and snippets.

@zaro
Forked from arcanite24/gist:fa69b647552fe6f067c888dfc31737a8
Last active February 17, 2026 19:08
Show Gist options
  • Select an option

  • Save zaro/9243d32d56f81655fdf9e3edd48f4ed1 to your computer and use it in GitHub Desktop.

Select an option

Save zaro/9243d32d56f81655fdf9e3edd48f4ed1 to your computer and use it in GitHub Desktop.

Revisions

  1. zaro revised this gist Jul 9, 2024. 2 changed files with 171 additions and 165 deletions.
    6 changes: 6 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    # How to use

    1. Start ComfyUI
    2. Download 'Stable Diffusion XL base model'(sd_xl_base_1.0.safetensors) from Comfy UI Model manager
    3. Download PixelArt model from : https://civitai.com/models/120096 and put the file in ComfyUI/models/loras/
    4. Load the JSON
    330 changes: 165 additions & 165 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -41,54 +41,6 @@
    "low quality, blurry, deformed, watermark, text, signature, depth of field, photoreal"
    ]
    },
    {
    "id": 4,
    "type": "CheckpointLoaderSimple",
    "pos": [
    -449,
    344
    ],
    "size": {
    "0": 315,
    "1": 98
    },
    "flags": {},
    "order": 0,
    "mode": 0,
    "outputs": [
    {
    "name": "MODEL",
    "type": "MODEL",
    "links": [
    50
    ],
    "slot_index": 0
    },
    {
    "name": "CLIP",
    "type": "CLIP",
    "links": [
    51
    ],
    "slot_index": 1
    },
    {
    "name": "VAE",
    "type": "VAE",
    "links": [
    46
    ],
    "slot_index": 2
    }
    ],
    "title": "Load Base Safetensors",
    "properties": {
    "Node name for S&R": "CheckpointLoaderSimple"
    },
    "widgets_values": [
    "sd_xl_base_0.9.safetensors"
    ]
    },
    {
    "id": 25,
    "type": "VAEDecode",
    @@ -208,10 +160,10 @@
    1782,
    354
    ],
    "size": [
    218.78795276988603,
    246
    ],
    "size": {
    "0": 218.78794860839844,
    "1": 246
    },
    "flags": {},
    "order": 10,
    "mode": 0,
    @@ -233,10 +185,10 @@
    1826,
    -188
    ],
    "size": [
    315,
    270
    ],
    "size": {
    "0": 315,
    "1": 270
    },
    "flags": {},
    "order": 11,
    "mode": 0,
    @@ -300,10 +252,10 @@
    2235,
    -199
    ],
    "size": [
    315,
    270.00000286102295
    ],
    "size": {
    "0": 315,
    "1": 270
    },
    "flags": {},
    "order": 14,
    "mode": 0,
    @@ -319,112 +271,17 @@
    "pixelbuildings128-v1-upscale-x8-"
    ]
    },
    {
    "id": 39,
    "type": "LoraLoader",
    "pos": [
    -64,
    191
    ],
    "size": {
    "0": 315,
    "1": 126
    },
    "flags": {},
    "order": 2,
    "mode": 0,
    "inputs": [
    {
    "name": "model",
    "type": "MODEL",
    "link": 50
    },
    {
    "name": "clip",
    "type": "CLIP",
    "link": 51
    }
    ],
    "outputs": [
    {
    "name": "MODEL",
    "type": "MODEL",
    "links": [
    54
    ],
    "shape": 3,
    "slot_index": 0
    },
    {
    "name": "CLIP",
    "type": "CLIP",
    "links": [
    52,
    53
    ],
    "shape": 3,
    "slot_index": 1
    }
    ],
    "properties": {
    "Node name for S&R": "LoraLoader"
    },
    "widgets_values": [
    "pixelbuildings128-v1.safetensors",
    1,
    1
    ]
    },
    {
    "id": 6,
    "type": "CLIPTextEncode",
    "pos": [
    323,
    115
    ],
    "size": {
    "0": 422.84503173828125,
    "1": 164.31304931640625
    },
    "flags": {},
    "order": 3,
    "mode": 0,
    "inputs": [
    {
    "name": "clip",
    "type": "CLIP",
    "link": 52
    }
    ],
    "outputs": [
    {
    "name": "CONDITIONING",
    "type": "CONDITIONING",
    "links": [
    4
    ],
    "slot_index": 0
    }
    ],
    "title": "Prompt Positive",
    "properties": {
    "Node name for S&R": "CLIPTextEncode"
    },
    "widgets_values": [
    "top-down view of a building, hospital, simple, flat colors, stardew valley style"
    ]
    },
    {
    "id": 26,
    "type": "PreviewImage",
    "pos": [
    1289,
    353
    ],
    "size": [
    439.6647705078126,
    465.12361450195317
    ],
    "size": {
    "0": 439.6647644042969,
    "1": 465.1236267089844
    },
    "flags": {},
    "order": 7,
    "mode": 0,
    @@ -452,7 +309,7 @@
    "1": 106
    },
    "flags": {},
    "order": 1,
    "order": 0,
    "mode": 0,
    "outputs": [
    {
    @@ -481,10 +338,10 @@
    2283,
    305
    ],
    "size": [
    410.66671142578116,
    472.9999999999999
    ],
    "size": {
    "0": 410.6667175292969,
    "1": 473
    },
    "flags": {},
    "order": 13,
    "mode": 0,
    @@ -550,14 +407,157 @@
    "Node name for S&R": "KSampler"
    },
    "widgets_values": [
    297321884627792,
    427913670023424,
    "randomize",
    20,
    7,
    "euler_ancestral",
    "karras",
    1
    ]
    },
    {
    "id": 4,
    "type": "CheckpointLoaderSimple",
    "pos": [
    -449,
    344
    ],
    "size": {
    "0": 315,
    "1": 98
    },
    "flags": {},
    "order": 1,
    "mode": 0,
    "outputs": [
    {
    "name": "MODEL",
    "type": "MODEL",
    "links": [
    50
    ],
    "slot_index": 0
    },
    {
    "name": "CLIP",
    "type": "CLIP",
    "links": [
    51
    ],
    "slot_index": 1
    },
    {
    "name": "VAE",
    "type": "VAE",
    "links": [
    46
    ],
    "slot_index": 2
    }
    ],
    "title": "Load Base Safetensors",
    "properties": {
    "Node name for S&R": "CheckpointLoaderSimple"
    },
    "widgets_values": [
    "sd_xl_base_1.0.safetensors"
    ]
    },
    {
    "id": 39,
    "type": "LoraLoader",
    "pos": [
    -85,
    183
    ],
    "size": {
    "0": 315,
    "1": 126
    },
    "flags": {},
    "order": 2,
    "mode": 0,
    "inputs": [
    {
    "name": "model",
    "type": "MODEL",
    "link": 50
    },
    {
    "name": "clip",
    "type": "CLIP",
    "link": 51
    }
    ],
    "outputs": [
    {
    "name": "MODEL",
    "type": "MODEL",
    "links": [
    54
    ],
    "shape": 3,
    "slot_index": 0
    },
    {
    "name": "CLIP",
    "type": "CLIP",
    "links": [
    52,
    53
    ],
    "shape": 3,
    "slot_index": 1
    }
    ],
    "properties": {
    "Node name for S&R": "LoraLoader"
    },
    "widgets_values": [
    "pixel-art-xl-v1.1.safetensors",
    1,
    1
    ]
    },
    {
    "id": 6,
    "type": "CLIPTextEncode",
    "pos": [
    323,
    115
    ],
    "size": {
    "0": 422.84503173828125,
    "1": 164.31304931640625
    },
    "flags": {},
    "order": 3,
    "mode": 0,
    "inputs": [
    {
    "name": "clip",
    "type": "CLIP",
    "link": 52
    }
    ],
    "outputs": [
    {
    "name": "CONDITIONING",
    "type": "CONDITIONING",
    "links": [
    4
    ],
    "slot_index": 0
    }
    ],
    "title": "Prompt Positive",
    "properties": {
    "Node name for S&R": "CLIPTextEncode"
    },
    "widgets_values": [
    "top-down view of a cobra crawling, simple, flat colors, stardew valley style"
    ]
    }
    ],
    "links": [
  2. @arcanite24 arcanite24 created this gist Jul 21, 2023.
    713 changes: 713 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,713 @@
    {
    "last_node_id": 47,
    "last_link_id": 63,
    "nodes": [
    {
    "id": 7,
    "type": "CLIPTextEncode",
    "pos": [
    317,
    352
    ],
    "size": {
    "0": 425.27801513671875,
    "1": 180.6060791015625
    },
    "flags": {},
    "order": 4,
    "mode": 0,
    "inputs": [
    {
    "name": "clip",
    "type": "CLIP",
    "link": 53
    }
    ],
    "outputs": [
    {
    "name": "CONDITIONING",
    "type": "CONDITIONING",
    "links": [
    6
    ],
    "slot_index": 0
    }
    ],
    "title": "Prompt Negative",
    "properties": {
    "Node name for S&R": "CLIPTextEncode"
    },
    "widgets_values": [
    "low quality, blurry, deformed, watermark, text, signature, depth of field, photoreal"
    ]
    },
    {
    "id": 4,
    "type": "CheckpointLoaderSimple",
    "pos": [
    -449,
    344
    ],
    "size": {
    "0": 315,
    "1": 98
    },
    "flags": {},
    "order": 0,
    "mode": 0,
    "outputs": [
    {
    "name": "MODEL",
    "type": "MODEL",
    "links": [
    50
    ],
    "slot_index": 0
    },
    {
    "name": "CLIP",
    "type": "CLIP",
    "links": [
    51
    ],
    "slot_index": 1
    },
    {
    "name": "VAE",
    "type": "VAE",
    "links": [
    46
    ],
    "slot_index": 2
    }
    ],
    "title": "Load Base Safetensors",
    "properties": {
    "Node name for S&R": "CheckpointLoaderSimple"
    },
    "widgets_values": [
    "sd_xl_base_0.9.safetensors"
    ]
    },
    {
    "id": 25,
    "type": "VAEDecode",
    "pos": [
    1238,
    189
    ],
    "size": {
    "0": 210,
    "1": 46
    },
    "flags": {},
    "order": 6,
    "mode": 0,
    "inputs": [
    {
    "name": "samples",
    "type": "LATENT",
    "link": 29
    },
    {
    "name": "vae",
    "type": "VAE",
    "link": 46,
    "slot_index": 1
    }
    ],
    "outputs": [
    {
    "name": "IMAGE",
    "type": "IMAGE",
    "links": [
    56,
    57,
    59
    ],
    "shape": 3,
    "slot_index": 0
    }
    ],
    "properties": {
    "Node name for S&R": "VAEDecode"
    }
    },
    {
    "id": 38,
    "type": "SaveImage",
    "pos": [
    1405,
    -187
    ],
    "size": {
    "0": 315,
    "1": 270
    },
    "flags": {},
    "order": 9,
    "mode": 0,
    "inputs": [
    {
    "name": "images",
    "type": "IMAGE",
    "link": 59
    }
    ],
    "properties": {},
    "widgets_values": [
    "pixelbuildings128-v1-raw-"
    ]
    },
    {
    "id": 42,
    "type": "ImageScaleBy",
    "pos": [
    1661,
    157
    ],
    "size": {
    "0": 315,
    "1": 82
    },
    "flags": {},
    "order": 8,
    "mode": 0,
    "inputs": [
    {
    "name": "image",
    "type": "IMAGE",
    "link": 57
    }
    ],
    "outputs": [
    {
    "name": "IMAGE",
    "type": "IMAGE",
    "links": [
    58,
    60,
    61
    ],
    "shape": 3,
    "slot_index": 0
    }
    ],
    "properties": {
    "Node name for S&R": "ImageScaleBy"
    },
    "widgets_values": [
    "nearest-exact",
    0.125
    ]
    },
    {
    "id": 43,
    "type": "PreviewImage",
    "pos": [
    1782,
    354
    ],
    "size": [
    218.78795276988603,
    246
    ],
    "flags": {},
    "order": 10,
    "mode": 0,
    "inputs": [
    {
    "name": "images",
    "type": "IMAGE",
    "link": 58
    }
    ],
    "properties": {
    "Node name for S&R": "Downscale"
    }
    },
    {
    "id": 44,
    "type": "SaveImage",
    "pos": [
    1826,
    -188
    ],
    "size": [
    315,
    270
    ],
    "flags": {},
    "order": 11,
    "mode": 0,
    "inputs": [
    {
    "name": "images",
    "type": "IMAGE",
    "link": 60
    }
    ],
    "properties": {},
    "widgets_values": [
    "pixelbuildings128-v1-downscale-x8-"
    ]
    },
    {
    "id": 45,
    "type": "ImageScaleBy",
    "pos": [
    2086,
    126
    ],
    "size": {
    "0": 315,
    "1": 82
    },
    "flags": {},
    "order": 12,
    "mode": 0,
    "inputs": [
    {
    "name": "image",
    "type": "IMAGE",
    "link": 61
    }
    ],
    "outputs": [
    {
    "name": "IMAGE",
    "type": "IMAGE",
    "links": [
    62,
    63
    ],
    "shape": 3,
    "slot_index": 0
    }
    ],
    "properties": {
    "Node name for S&R": "ImageScaleBy"
    },
    "widgets_values": [
    "nearest-exact",
    8
    ]
    },
    {
    "id": 47,
    "type": "SaveImage",
    "pos": [
    2235,
    -199
    ],
    "size": [
    315,
    270.00000286102295
    ],
    "flags": {},
    "order": 14,
    "mode": 0,
    "inputs": [
    {
    "name": "images",
    "type": "IMAGE",
    "link": 63
    }
    ],
    "properties": {},
    "widgets_values": [
    "pixelbuildings128-v1-upscale-x8-"
    ]
    },
    {
    "id": 39,
    "type": "LoraLoader",
    "pos": [
    -64,
    191
    ],
    "size": {
    "0": 315,
    "1": 126
    },
    "flags": {},
    "order": 2,
    "mode": 0,
    "inputs": [
    {
    "name": "model",
    "type": "MODEL",
    "link": 50
    },
    {
    "name": "clip",
    "type": "CLIP",
    "link": 51
    }
    ],
    "outputs": [
    {
    "name": "MODEL",
    "type": "MODEL",
    "links": [
    54
    ],
    "shape": 3,
    "slot_index": 0
    },
    {
    "name": "CLIP",
    "type": "CLIP",
    "links": [
    52,
    53
    ],
    "shape": 3,
    "slot_index": 1
    }
    ],
    "properties": {
    "Node name for S&R": "LoraLoader"
    },
    "widgets_values": [
    "pixelbuildings128-v1.safetensors",
    1,
    1
    ]
    },
    {
    "id": 6,
    "type": "CLIPTextEncode",
    "pos": [
    323,
    115
    ],
    "size": {
    "0": 422.84503173828125,
    "1": 164.31304931640625
    },
    "flags": {},
    "order": 3,
    "mode": 0,
    "inputs": [
    {
    "name": "clip",
    "type": "CLIP",
    "link": 52
    }
    ],
    "outputs": [
    {
    "name": "CONDITIONING",
    "type": "CONDITIONING",
    "links": [
    4
    ],
    "slot_index": 0
    }
    ],
    "title": "Prompt Positive",
    "properties": {
    "Node name for S&R": "CLIPTextEncode"
    },
    "widgets_values": [
    "top-down view of a building, hospital, simple, flat colors, stardew valley style"
    ]
    },
    {
    "id": 26,
    "type": "PreviewImage",
    "pos": [
    1289,
    353
    ],
    "size": [
    439.6647705078126,
    465.12361450195317
    ],
    "flags": {},
    "order": 7,
    "mode": 0,
    "inputs": [
    {
    "name": "images",
    "type": "IMAGE",
    "link": 56
    }
    ],
    "title": "Preview Raw Image",
    "properties": {
    "Node name for S&R": "PreviewImage"
    }
    },
    {
    "id": 40,
    "type": "EmptyLatentImage",
    "pos": [
    275,
    669
    ],
    "size": {
    "0": 315,
    "1": 106
    },
    "flags": {},
    "order": 1,
    "mode": 0,
    "outputs": [
    {
    "name": "LATENT",
    "type": "LATENT",
    "links": [
    55
    ],
    "shape": 3,
    "slot_index": 0
    }
    ],
    "properties": {
    "Node name for S&R": "EmptyLatentImage"
    },
    "widgets_values": [
    1024,
    1024,
    1
    ]
    },
    {
    "id": 46,
    "type": "PreviewImage",
    "pos": [
    2283,
    305
    ],
    "size": [
    410.66671142578116,
    472.9999999999999
    ],
    "flags": {},
    "order": 13,
    "mode": 0,
    "inputs": [
    {
    "name": "images",
    "type": "IMAGE",
    "link": 62
    }
    ],
    "properties": {
    "Node name for S&R": "PreviewImage"
    }
    },
    {
    "id": 3,
    "type": "KSampler",
    "pos": [
    869,
    153
    ],
    "size": {
    "0": 315,
    "1": 262
    },
    "flags": {},
    "order": 5,
    "mode": 0,
    "inputs": [
    {
    "name": "model",
    "type": "MODEL",
    "link": 54
    },
    {
    "name": "positive",
    "type": "CONDITIONING",
    "link": 4
    },
    {
    "name": "negative",
    "type": "CONDITIONING",
    "link": 6
    },
    {
    "name": "latent_image",
    "type": "LATENT",
    "link": 55
    }
    ],
    "outputs": [
    {
    "name": "LATENT",
    "type": "LATENT",
    "links": [
    29
    ],
    "slot_index": 0
    }
    ],
    "title": "Base KSampler",
    "properties": {
    "Node name for S&R": "KSampler"
    },
    "widgets_values": [
    297321884627792,
    "randomize",
    20,
    7,
    "euler_ancestral",
    "karras",
    1
    ]
    }
    ],
    "links": [
    [
    4,
    6,
    0,
    3,
    1,
    "CONDITIONING"
    ],
    [
    6,
    7,
    0,
    3,
    2,
    "CONDITIONING"
    ],
    [
    29,
    3,
    0,
    25,
    0,
    "LATENT"
    ],
    [
    46,
    4,
    2,
    25,
    1,
    "VAE"
    ],
    [
    50,
    4,
    0,
    39,
    0,
    "MODEL"
    ],
    [
    51,
    4,
    1,
    39,
    1,
    "CLIP"
    ],
    [
    52,
    39,
    1,
    6,
    0,
    "CLIP"
    ],
    [
    53,
    39,
    1,
    7,
    0,
    "CLIP"
    ],
    [
    54,
    39,
    0,
    3,
    0,
    "MODEL"
    ],
    [
    55,
    40,
    0,
    3,
    3,
    "LATENT"
    ],
    [
    56,
    25,
    0,
    26,
    0,
    "IMAGE"
    ],
    [
    57,
    25,
    0,
    42,
    0,
    "IMAGE"
    ],
    [
    58,
    42,
    0,
    43,
    0,
    "IMAGE"
    ],
    [
    59,
    25,
    0,
    38,
    0,
    "IMAGE"
    ],
    [
    60,
    42,
    0,
    44,
    0,
    "IMAGE"
    ],
    [
    61,
    42,
    0,
    45,
    0,
    "IMAGE"
    ],
    [
    62,
    45,
    0,
    46,
    0,
    "IMAGE"
    ],
    [
    63,
    45,
    0,
    47,
    0,
    "IMAGE"
    ]
    ],
    "groups": [],
    "config": {},
    "extra": {},
    "version": 0.4
    }