diff --git a/example/example.json b/example/example.json new file mode 100644 index 0000000..ada948c --- /dev/null +++ b/example/example.json @@ -0,0 +1,278 @@ +{ + "last_node_id": 35, + "last_link_id": 58, + "nodes": [ + { + "id": 5, + "type": "PreviewImage", + "pos": [ + 1646, + 63 + ], + "size": { + "0": 403.4498291015625, + "1": 383.42840576171875 + }, + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 52, + "label": "images" + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 33, + "type": "StableMakeup_Sampler", + "pos": [ + 1251, + 135 + ], + "size": { + "0": 315, + "1": 238 + }, + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "id_image", + "type": "IMAGE", + "link": 58, + "label": "id_image" + }, + { + "name": "makeup_image", + "type": "IMAGE", + "link": 57, + "label": "makeup_image" + }, + { + "name": "pipe", + "type": "MODEL", + "link": 56, + "label": "pipe" + }, + { + "name": "makeup_encoder", + "type": "MODEL", + "link": 55, + "label": "makeup_encoder" + } + ], + "outputs": [ + { + "name": "image", + "type": "IMAGE", + "links": [ + 52 + ], + "shape": 3, + "label": "image", + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "StableMakeup_Sampler" + }, + "widgets_values": [ + "mobilenet", + "300wpublic", + 1.6, + 30, + 512, + 512 + ] + }, + { + "id": 3, + "type": "LoadImage", + "pos": [ + 782, + -174 + ], + "size": { + "0": 315, + "1": 314 + }, + "flags": {}, + "order": 0, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 58 + ], + "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": [ + "Yoshua_Bengio (2).jpg", + "image" + ] + }, + { + "id": 35, + "type": "StableMakeup_LoadModel", + "pos": [ + 877, + 240 + ], + "size": { + "0": 315, + "1": 150 + }, + "flags": {}, + "order": 1, + "mode": 0, + "outputs": [ + { + "name": "model", + "type": "MODEL", + "links": [ + 56 + ], + "shape": 3, + "label": "model", + "slot_index": 0 + }, + { + "name": "makeup_encoder", + "type": "MODEL", + "links": [ + 55 + ], + "shape": 3, + "label": "makeup_encoder", + "slot_index": 1 + } + ], + "properties": { + "Node name for S&R": "StableMakeup_LoadModel" + }, + "widgets_values": [ + "none", + "runwayml/stable-diffusion-v1-5", + "openai/clip-vit-large-patch14", + "DDIM" + ] + }, + { + "id": 4, + "type": "LoadImage", + "pos": [ + 502, + 191 + ], + "size": { + "0": 315, + "1": 314 + }, + "flags": {}, + "order": 2, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 57 + ], + "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" + ] + } + ], + "links": [ + [ + 52, + 33, + 0, + 5, + 0, + "IMAGE" + ], + [ + 55, + 35, + 1, + 33, + 3, + "MODEL" + ], + [ + 56, + 35, + 0, + 33, + 2, + "MODEL" + ], + [ + 57, + 4, + 0, + 33, + 1, + "IMAGE" + ], + [ + 58, + 3, + 0, + 33, + 0, + "IMAGE" + ] + ], + "groups": [], + "config": {}, + "extra": { + "ds": { + "scale": 1.2100000000000006, + "offset": { + "0": -355.7597961425781, + "1": 272.1022644042969 + } + } + }, + "version": 0.4 +} \ No newline at end of file diff --git a/example/example.png b/example/example.png new file mode 100644 index 0000000..c87587f Binary files /dev/null and b/example/example.png differ