diff --git a/examples/img2img.json b/examples/img2img.json new file mode 100644 index 0000000..b75b2d9 --- /dev/null +++ b/examples/img2img.json @@ -0,0 +1,455 @@ +{ + "last_node_id": 8, + "last_link_id": 25, + "nodes": [ + { + "id": 6, + "type": "LoadImage", + "pos": [ + 246, + 54 + ], + "size": [ + 315, + 314 + ], + "flags": {}, + "order": 0, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 22 + ], + "shape": 3, + "label": "IMAGE", + "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3, + "label": "MASK" + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "gakki.png", + "image" + ] + }, + { + "id": 5, + "type": "MSdiffusion_Model_Loader", + "pos": [ + 641, + 298 + ], + "size": { + "0": 400, + "1": 440 + }, + "flags": {}, + "order": 1, + "mode": 0, + "outputs": [ + { + "name": "pipe", + "type": "MODEL", + "links": [ + 12 + ], + "shape": 3, + "label": "pipe", + "slot_index": 0 + }, + { + "name": "ms_model", + "type": "MODEL", + "links": [ + 13 + ], + "shape": 3, + "label": "ms_model", + "slot_index": 1 + }, + { + "name": "image_encoder", + "type": "MODEL", + "links": [ + 14 + ], + "shape": 3, + "label": "image_encoder", + "slot_index": 2 + }, + { + "name": "image_processor", + "type": "MODEL", + "links": [ + 15 + ], + "shape": 3, + "label": "image_processor", + "slot_index": 3 + }, + { + "name": "tensor", + "type": "CONDITIONING", + "links": [ + 16 + ], + "shape": 3, + "label": "tensor", + "slot_index": 4 + }, + { + "name": "info", + "type": "STRING", + "links": [ + 17 + ], + "shape": 3, + "label": "info", + "slot_index": 5 + } + ], + "properties": { + "Node name for S&R": "MSdiffusion_Model_Loader" + }, + "widgets_values": [ + "[woman] wearing a white T-shirt, blue loose hair.\n[man] wearing a suit,black hair.", + "none", + "stabilityai\\stable-diffusion-xl-base-1.0", + "", + "laion\\CLIP-ViT-bigG-14-laion2B-39B-b160k", + "", + "none", + "none", + 0.8, + "best quality", + "Euler", + "img2img" + ] + }, + { + "id": 8, + "type": "ImageBatch", + "pos": [ + 713, + 186 + ], + "size": { + "0": 210, + "1": 46 + }, + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "image1", + "type": "IMAGE", + "link": 22, + "label": "image1" + }, + { + "name": "image2", + "type": "IMAGE", + "link": 21, + "label": "image2" + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 25 + ], + "shape": 3, + "label": "IMAGE", + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "ImageBatch" + } + }, + { + "id": 4, + "type": "MSdiffusion_Sampler", + "pos": [ + 1160, + 272 + ], + "size": [ + 459.57515381226176, + 746.1732014255534 + ], + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "pipe", + "type": "MODEL", + "link": 12, + "label": "pipe" + }, + { + "name": "ms_model", + "type": "MODEL", + "link": 13, + "label": "ms_model" + }, + { + "name": "image_encoder", + "type": "MODEL", + "link": 14, + "label": "image_encoder" + }, + { + "name": "image_processor", + "type": "MODEL", + "link": 15, + "label": "image_processor" + }, + { + "name": "tensor", + "type": "CONDITIONING", + "link": 16, + "label": "tensor" + }, + { + "name": "control_image", + "type": "IMAGE", + "link": null, + "label": "control_image", + "slot_index": 5 + }, + { + "name": "image", + "type": "IMAGE", + "link": 25, + "label": "image" + }, + { + "name": "info", + "type": "STRING", + "link": 17, + "widget": { + "name": "info" + } + } + ], + "outputs": [ + { + "name": "image", + "type": "IMAGE", + "links": [ + 18 + ], + "shape": 3, + "label": "image", + "slot_index": 0 + }, + { + "name": "prompt_array", + "type": "STRING", + "links": null, + "shape": 3, + "label": "prompt_array" + } + ], + "properties": { + "Node name for S&R": "MSdiffusion_Sampler" + }, + "widgets_values": [ + "", + "[woman] and [man] have breakfast,medium shot;\n[woman] go to company;\n[man] have lunch,medium shot;\n[NC] a living room.", + "", + "bad anatomy, bad hands, missing fingers, extra fingers, three hands, three legs, bad arms, missing legs, missing arms, poorly drawn face, bad face, fused face, cloned face, three crus, fused feet, fused thigh, extra crus, ugly fingers, horn,amputation, disconnected limbs", + "No_style", + 337979215, + "randomize", + 20, + 7, + 0.8, + 0.5, + 5, + 0.8, + 768, + 768, + false, + "0., 0.25, 0.4, 0.75;0.6, 0.25, 1., 0.75" + ] + }, + { + "id": 7, + "type": "LoadImage", + "pos": [ + 266, + 476 + ], + "size": { + "0": 315, + "1": 314 + }, + "flags": {}, + "order": 2, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 21 + ], + "shape": 3, + "label": "IMAGE", + "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3, + "label": "MASK" + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "lecun.png", + "image" + ] + }, + { + "id": 3, + "type": "PreviewImage", + "pos": [ + 1644, + 272 + ], + "size": [ + 615.9524681091311, + 721.3610717773438 + ], + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 18, + "label": "images" + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + } + ], + "links": [ + [ + 12, + 5, + 0, + 4, + 0, + "MODEL" + ], + [ + 13, + 5, + 1, + 4, + 1, + "MODEL" + ], + [ + 14, + 5, + 2, + 4, + 2, + "MODEL" + ], + [ + 15, + 5, + 3, + 4, + 3, + "MODEL" + ], + [ + 16, + 5, + 4, + 4, + 4, + "CONDITIONING" + ], + [ + 17, + 5, + 5, + 4, + 7, + "STRING" + ], + [ + 18, + 4, + 0, + 3, + 0, + "IMAGE" + ], + [ + 21, + 7, + 0, + 8, + 1, + "IMAGE" + ], + [ + 22, + 6, + 0, + 8, + 0, + "IMAGE" + ], + [ + 25, + 8, + 0, + 4, + 6, + "IMAGE" + ] + ], + "groups": [], + "config": {}, + "extra": { + "ds": { + "scale": 0.8264462809917354, + "offset": { + "0": 17.87253189086914, + "1": 104.71392822265625 + } + } + }, + "version": 0.4 +} \ No newline at end of file diff --git a/examples/img2imgnew.png b/examples/img2imgnew.png new file mode 100644 index 0000000..5943404 Binary files /dev/null and b/examples/img2imgnew.png differ diff --git a/examples/txt2img.json b/examples/txt2img.json new file mode 100644 index 0000000..bb26e21 --- /dev/null +++ b/examples/txt2img.json @@ -0,0 +1,304 @@ +{ + "last_node_id": 5, + "last_link_id": 18, + "nodes": [ + { + "id": 5, + "type": "MSdiffusion_Model_Loader", + "pos": [ + 656, + 275 + ], + "size": { + "0": 400, + "1": 440 + }, + "flags": {}, + "order": 0, + "mode": 0, + "outputs": [ + { + "name": "pipe", + "type": "MODEL", + "links": [ + 12 + ], + "shape": 3, + "label": "pipe", + "slot_index": 0 + }, + { + "name": "ms_model", + "type": "MODEL", + "links": [ + 13 + ], + "shape": 3, + "label": "ms_model", + "slot_index": 1 + }, + { + "name": "image_encoder", + "type": "MODEL", + "links": [ + 14 + ], + "shape": 3, + "label": "image_encoder", + "slot_index": 2 + }, + { + "name": "image_processor", + "type": "MODEL", + "links": [ + 15 + ], + "shape": 3, + "label": "image_processor", + "slot_index": 3 + }, + { + "name": "tensor", + "type": "CONDITIONING", + "links": [ + 16 + ], + "shape": 3, + "label": "tensor", + "slot_index": 4 + }, + { + "name": "info", + "type": "STRING", + "links": [ + 17 + ], + "shape": 3, + "label": "info", + "slot_index": 5 + } + ], + "properties": { + "Node name for S&R": "MSdiffusion_Model_Loader" + }, + "widgets_values": [ + "[woman] wearing a white T-shirt, blue loose hair.\n[man] wearing a suit,black hair.", + "none", + "stabilityai\\stable-diffusion-xl-base-1.0", + "", + "laion\\CLIP-ViT-bigG-14-laion2B-39B-b160k", + "", + "none", + "none", + 0.8, + "best quality", + "Euler", + "txt2img" + ] + }, + { + "id": 4, + "type": "MSdiffusion_Sampler", + "pos": [ + 1160, + 272 + ], + "size": [ + 459.57515381226176, + 746.1732014255534 + ], + "flags": {}, + "order": 1, + "mode": 0, + "inputs": [ + { + "name": "pipe", + "type": "MODEL", + "link": 12, + "label": "pipe" + }, + { + "name": "ms_model", + "type": "MODEL", + "link": 13, + "label": "ms_model" + }, + { + "name": "image_encoder", + "type": "MODEL", + "link": 14, + "label": "image_encoder" + }, + { + "name": "image_processor", + "type": "MODEL", + "link": 15, + "label": "image_processor" + }, + { + "name": "tensor", + "type": "CONDITIONING", + "link": 16, + "label": "tensor" + }, + { + "name": "control_image", + "type": "IMAGE", + "link": null, + "label": "control_image" + }, + { + "name": "image", + "type": "IMAGE", + "link": null, + "label": "image" + }, + { + "name": "info", + "type": "STRING", + "link": 17, + "widget": { + "name": "info" + } + } + ], + "outputs": [ + { + "name": "image", + "type": "IMAGE", + "links": [ + 18 + ], + "shape": 3, + "label": "image", + "slot_index": 0 + }, + { + "name": "prompt_array", + "type": "STRING", + "links": null, + "shape": 3, + "label": "prompt_array" + } + ], + "properties": { + "Node name for S&R": "MSdiffusion_Sampler" + }, + "widgets_values": [ + "", + "[woman] and [man] have breakfast,medium shot;\n[woman] go to company;\n[man] have lunch,medium shot;\n[NC] a living room.", + "", + "bad anatomy, bad hands, missing fingers, extra fingers, three hands, three legs, bad arms, missing legs, missing arms, poorly drawn face, bad face, fused face, cloned face, three crus, fused feet, fused thigh, extra crus, ugly fingers, horn,amputation, disconnected limbs", + "No_style", + 1038260402, + "randomize", + 20, + 7, + 0.8, + 0.5, + 5, + 0.8, + 768, + 768, + false, + "0., 0.25, 0.4, 0.75;0.6, 0.25, 1., 0.75" + ] + }, + { + "id": 3, + "type": "PreviewImage", + "pos": [ + 1701, + 294 + ], + "size": { + "0": 445.75, + "1": 257 + }, + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 18, + "label": "images" + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + } + ], + "links": [ + [ + 12, + 5, + 0, + 4, + 0, + "MODEL" + ], + [ + 13, + 5, + 1, + 4, + 1, + "MODEL" + ], + [ + 14, + 5, + 2, + 4, + 2, + "MODEL" + ], + [ + 15, + 5, + 3, + 4, + 3, + "MODEL" + ], + [ + 16, + 5, + 4, + 4, + 4, + "CONDITIONING" + ], + [ + 17, + 5, + 5, + 4, + 7, + "STRING" + ], + [ + 18, + 4, + 0, + 3, + 0, + "IMAGE" + ] + ], + "groups": [], + "config": {}, + "extra": { + "ds": { + "scale": 1.3310000000000006, + "offset": { + "0": -592.1525268554688, + "1": -180.4571990966797 + } + } + }, + "version": 0.4 +} \ No newline at end of file diff --git a/examples/txt2imgnew.png b/examples/txt2imgnew.png new file mode 100644 index 0000000..7182430 Binary files /dev/null and b/examples/txt2imgnew.png differ