diff --git a/web/DefaultWorkflows/imageUpscaler.json b/web/DefaultWorkflows/imageUpscaler.json new file mode 100644 index 000000000..4bb907c4f --- /dev/null +++ b/web/DefaultWorkflows/imageUpscaler.json @@ -0,0 +1,307 @@ +{ + "last_node_id": 11, + "last_link_id": 10, + "nodes": [ + { + "id": 10, + "type": "SaveImage", + "pos": [ + 695, + 151 + ], + "size": { + "0": 1500.8460693359375, + "1": 927.6019287109375 + }, + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 9, + "slot_index": 0 + } + ], + "outputs": [ + { + "links": null + } + ], + "properties": {}, + "widgets_values": [ + "Image Upscaler Atlas ComfyUI" + ] + }, + { + "id": 7, + "type": "ImageUpscaleWithModel", + "pos": [ + 282, + 496 + ], + "size": { + "0": 315.4982604980469, + "1": 250 + }, + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "upscale_model", + "type": "UPSCALE_MODEL", + "link": 5, + "slot_index": 0 + }, + { + "name": "image", + "type": "IMAGE", + "link": 7, + "slot_index": 1 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 9 + ] + }, + { + "links": null + } + ], + "properties": {} + }, + { + "id": 8, + "type": "ImageScale", + "pos": [ + -147, + 512 + ], + "size": { + "0": 315, + "1": 150 + }, + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 6 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 7 + ], + "slot_index": 0 + }, + { + "links": null + } + ], + "properties": {}, + "widgets_values": [ + "nearest-exact", + 768, + 512, + "disabled" + ] + }, + { + "id": 11, + "type": "PreviewImage", + "pos": [ + -114, + 949 + ], + "size": { + "0": 630.5836181640625, + "1": 344.1615905761719 + }, + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 10, + "slot_index": 0 + } + ], + "outputs": [ + { + "links": null + } + ], + "properties": {} + }, + { + "id": 5, + "type": "LoadImage", + "pos": [ + -579, + 682 + ], + "size": { + "0": 338.4964294433594, + "1": 323.1502990722656 + }, + "flags": {}, + "order": 0, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 6, + 10 + ], + "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": null + }, + { + "links": null + } + ], + "properties": {}, + "widgets_values": [ + "example.png", + "image" + ] + }, + { + "id": 6, + "type": "UpscaleModelLoader", + "pos": [ + -157, + 197 + ], + "size": { + "0": 315, + "1": 78 + }, + "flags": { + "collapsed": false + }, + "order": 1, + "mode": 0, + "outputs": [ + { + "name": "UPSCALE_MODEL", + "type": "UPSCALE_MODEL", + "links": [ + 5 + ], + "slot_index": 0 + }, + { + "links": null + } + ], + "properties": {}, + "widgets_values": [ + "RealESRGAN_x8.pth" + ] + } + ], + "links": [ + [ + 5, + 6, + 0, + 7, + 0, + "UPSCALE_MODEL" + ], + [ + 6, + 5, + 0, + 8, + 0, + "IMAGE" + ], + [ + 7, + 8, + 0, + 7, + 1, + "IMAGE" + ], + [ + 9, + 7, + 0, + 10, + 0, + "IMAGE" + ], + [ + 10, + 5, + 0, + 11, + 0, + "IMAGE" + ], + [ + null, + null, + null, + null, + null, + null + ], + [ + null, + null, + null, + null, + null, + null + ] + ], + "groups": [ + { + "title": "this is the best place to get the ESRGAN files. Just open the ZIP, then copy all the files from the 'models' folder into the 'upscalers' folder in ComfyUI", + "bounding": [ + -65, + 7, + 140, + 80 + ], + "color": "#88A" + }, + { + "title": "https://huggingface.co/sberbank-ai/Real-ESRGAN/tree/main", + "bounding": [ + 88, + 55, + 140, + 80 + ], + "color": "#b58b2a" + } + ], + "config": {}, + "extra": {}, + "version": 0.4 +} \ No newline at end of file diff --git a/web/DefaultWorkflows/index.json b/web/DefaultWorkflows/index.json new file mode 100644 index 000000000..3829d0836 --- /dev/null +++ b/web/DefaultWorkflows/index.json @@ -0,0 +1 @@ +["txt2img.json", "imageUpscaler.json"] \ No newline at end of file diff --git a/web/DefaultWorkflows/txt2img.json b/web/DefaultWorkflows/txt2img.json new file mode 100644 index 000000000..53fb2b884 --- /dev/null +++ b/web/DefaultWorkflows/txt2img.json @@ -0,0 +1,480 @@ +{ + "last_node_id": 19, + "last_link_id": 18, + "nodes": [ + { + "id": 7, + "type": "CLIPTextEncode", + "pos": [ + 413, + 389 + ], + "size": { + "0": 425.27801513671875, + "1": 180.6060791015625 + }, + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 5 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 6 + ], + "slot_index": 0 + }, + { + "links": null + } + ], + "properties": {}, + "widgets_values": [ + "" + ] + }, + { + "id": 6, + "type": "CLIPTextEncode", + "pos": [ + 415, + 186 + ], + "size": { + "0": 422.84503173828125, + "1": 164.31304931640625 + }, + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 3 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 4 + ], + "slot_index": 0 + }, + { + "links": null + } + ], + "properties": {}, + "widgets_values": [ + "cat pokes his nose at the camera, neko, cat" + ] + }, + { + "id": 4, + "type": "CheckpointLoaderSimple", + "pos": [ + 26, + 474 + ], + "size": { + "0": 315, + "1": 118 + }, + "flags": {}, + "order": 0, + "mode": 0, + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 1 + ], + "slot_index": 0 + }, + { + "name": "CLIP", + "type": "CLIP", + "links": [ + 3, + 5 + ], + "slot_index": 1 + }, + { + "name": "VAE", + "type": "VAE", + "links": [ + 8 + ], + "slot_index": 2 + }, + { + "links": null + } + ], + "properties": {}, + "widgets_values": [ + "deliberate_v2.safetensors" + ] + }, + { + "id": 3, + "type": "KSampler", + "pos": [ + 863, + 186 + ], + "size": { + "0": 315, + "1": 262 + }, + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 1 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 4 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 6 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 2 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 7 + ], + "slot_index": 0 + }, + { + "links": null + } + ], + "properties": {}, + "widgets_values": [ + 979959920485980, + true, + 20, + 7, + "euler", + "normal", + 1 + ] + }, + { + "id": 5, + "type": "EmptyLatentImage", + "pos": [ + 473, + 609 + ], + "size": { + "0": 315, + "1": 126 + }, + "flags": {}, + "order": 1, + "mode": 0, + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 2 + ], + "slot_index": 0 + }, + { + "links": null + } + ], + "properties": {}, + "widgets_values": [ + 512, + 512, + 1 + ] + }, + { + "id": 8, + "type": "VAEDecode", + "pos": [ + 1209, + 188 + ], + "size": { + "0": 210, + "1": 250 + }, + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 7 + }, + { + "name": "vae", + "type": "VAE", + "link": 8 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 12, + 17 + ], + "slot_index": 0 + }, + { + "links": null, + "slot_index": 1 + } + ], + "properties": {} + }, + { + "id": 19, + "type": "PreviewImage", + "pos": [ + 1715, + 799 + ], + "size": { + "0": 140, + "1": 107.58027648925781 + }, + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 18 + } + ], + "outputs": [ + { + "links": [], + "slot_index": 0 + } + ], + "properties": {} + }, + { + "id": 18, + "type": "ImageScale", + "pos": [ + 1689, + 544 + ], + "size": { + "0": 315, + "1": 150 + }, + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 17 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 18 + ], + "slot_index": 0 + }, + { + "links": null + } + ], + "properties": {}, + "widgets_values": [ + "nearest-exact", + 64, + 64, + "disabled" + ] + }, + { + "id": 11, + "type": "PreviewImage", + "pos": [ + 1112, + 616 + ], + "size": { + "0": 526.5640869140625, + "1": 552.5062866210938 + }, + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 12 + } + ], + "outputs": [ + { + "links": [], + "slot_index": 0 + } + ], + "properties": {} + } + ], + "links": [ + [ + 1, + 4, + 0, + 3, + 0, + "MODEL" + ], + [ + 2, + 5, + 0, + 3, + 3, + "LATENT" + ], + [ + 3, + 4, + 1, + 6, + 0, + "CLIP" + ], + [ + 4, + 6, + 0, + 3, + 1, + "CONDITIONING" + ], + [ + 5, + 4, + 1, + 7, + 0, + "CLIP" + ], + [ + 6, + 7, + 0, + 3, + 2, + "CONDITIONING" + ], + [ + 7, + 3, + 0, + 8, + 0, + "LATENT" + ], + [ + 8, + 4, + 2, + 8, + 1, + "VAE" + ], + [ + 12, + 8, + 0, + 11, + 0, + "IMAGE" + ], + [ + 17, + 8, + 0, + 18, + 0, + "IMAGE" + ], + [ + 18, + 18, + 0, + 19, + 0, + "IMAGE" + ], + [ + null, + null, + null, + null, + null, + null + ], + [ + null, + null, + null, + null, + null, + null + ] + ], + "groups": [], + "config": {}, + "extra": {}, + "version": 0.4 +} \ No newline at end of file