diff --git a/example/example.png b/example/example.png new file mode 100644 index 0000000..07a68f8 Binary files /dev/null and b/example/example.png differ diff --git a/example/workflow.json b/example/workflow.json new file mode 100644 index 0000000..a483fa1 --- /dev/null +++ b/example/workflow.json @@ -0,0 +1,274 @@ +{ + "last_node_id": 24, + "last_link_id": 30, + "nodes": [ + { + "id": 2, + "type": "StableMakeup_Sampler", + "pos": [ + 1384, + 266 + ], + "size": { + "0": 315, + "1": 190 + }, + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "id_image", + "type": "IMAGE", + "link": 3, + "label": "id_image", + "slot_index": 0 + }, + { + "name": "makeup_image", + "type": "IMAGE", + "link": 4, + "label": "makeup_image" + }, + { + "name": "pipe", + "type": "MODEL", + "link": 29, + "label": "pipe" + }, + { + "name": "makeup_encoder", + "type": "MODEL", + "link": 30, + "label": "makeup_encoder" + } + ], + "outputs": [ + { + "name": "image", + "type": "IMAGE", + "links": [ + 5 + ], + "shape": 3, + "label": "image", + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "StableMakeup_Sampler" + }, + "widgets_values": [ + 1.6, + 30, + 512, + 512 + ] + }, + { + "id": 5, + "type": "PreviewImage", + "pos": [ + 1382, + 505 + ], + "size": { + "0": 403.4498291015625, + "1": 383.42840576171875 + }, + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 5, + "label": "images" + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 4, + "type": "LoadImage", + "pos": [ + 978, + 556 + ], + "size": { + "0": 315, + "1": 314 + }, + "flags": {}, + "order": 0, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 4 + ], + "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": [ + "1.jpg", + "image" + ] + }, + { + "id": 3, + "type": "LoadImage", + "pos": [ + 621, + 554 + ], + "size": { + "0": 315, + "1": 314 + }, + "flags": {}, + "order": 1, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 3 + ], + "shape": 3, + "label": "IMAGE" + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3, + "label": "MASK" + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "Yoshua_Bengio (2).jpg", + "image" + ] + }, + { + "id": 24, + "type": "StableMakeup_LoadModel", + "pos": [ + 874, + 269 + ], + "size": { + "0": 315, + "1": 150 + }, + "flags": {}, + "order": 2, + "mode": 0, + "outputs": [ + { + "name": "model", + "type": "MODEL", + "links": [ + 29 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "makeup_encoder", + "type": "MODEL", + "links": [ + 30 + ], + "shape": 3, + "slot_index": 1 + } + ], + "properties": { + "Node name for S&R": "StableMakeup_LoadModel" + }, + "widgets_values": [ + "stable-diffusion-v1-5", + "", + "1SD1.5\\DreamShaper_8_pruned.safetensors", + "DDIM" + ] + } + ], + "links": [ + [ + 3, + 3, + 0, + 2, + 0, + "IMAGE" + ], + [ + 4, + 4, + 0, + 2, + 1, + "IMAGE" + ], + [ + 5, + 2, + 0, + 5, + 0, + "IMAGE" + ], + [ + 29, + 24, + 0, + 2, + 2, + "MODEL" + ], + [ + 30, + 24, + 1, + 2, + 3, + "MODEL" + ] + ], + "groups": [], + "config": {}, + "extra": { + "ds": { + "scale": 1.3310000000000008, + "offset": { + "0": -400.87188720703125, + "1": -131.8590087890625 + } + } + }, + "version": 0.4 +} \ No newline at end of file