From aa51fc52ccd0d7512df7535fabf98e5551e1b6e0 Mon Sep 17 00:00:00 2001 From: shadowcz007 Date: Fri, 2 Feb 2024 09:44:39 +0800 Subject: [PATCH] example --- README.md | 2 + workflow.json | 355 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 357 insertions(+) create mode 100644 workflow.json diff --git a/README.md b/README.md index 0b52eab..b60f993 100644 --- a/README.md +++ b/README.md @@ -6,3 +6,5 @@ After downloading the OpenAI VAE model, place it in the "model/vae" directory for use. https://openaipublic.azureedge.net/diff-vae/c9cebd3132dd9c42936d803e33424145a748843c8f716c0814838bdc8a2fe7cb/decoder.pt + +[example workflow](./workflow.json) \ No newline at end of file diff --git a/workflow.json b/workflow.json new file mode 100644 index 0000000..b5293e0 --- /dev/null +++ b/workflow.json @@ -0,0 +1,355 @@ +{ + "last_node_id": 21, + "last_link_id": 28, + "nodes": [ + { + "id": 14, + "type": "VAELoaderConsistencyDecoder", + "pos": [ + 401, + -2977 + ], + "size": { + "0": 315, + "1": 58 + }, + "flags": {}, + "order": 0, + "mode": 0, + "outputs": [ + { + "name": "VAE", + "type": "VAE", + "links": [ + 23 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "VAELoaderConsistencyDecoder" + }, + "widgets_values": [ + "decoder.pt" + ] + }, + { + "id": 18, + "type": "VAEDecodeConsistencyDecoder", + "pos": [ + 794, + -2980 + ], + "size": { + "0": 210, + "1": 46 + }, + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 22 + }, + { + "name": "vae", + "type": "VAE", + "link": 23 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 24 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "VAEDecodeConsistencyDecoder" + } + }, + { + "id": 10, + "type": "LoadImage", + "pos": [ + -127, + -3426 + ], + "size": [ + 455.238163590927, + 601.0795254391355 + ], + "flags": {}, + "order": 1, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 18 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "12.png", + "image" + ] + }, + { + "id": 15, + "type": "VAEEncode", + "pos": [ + 494, + -3365 + ], + "size": { + "0": 210, + "1": 46 + }, + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "pixels", + "type": "IMAGE", + "link": 18 + }, + { + "name": "vae", + "type": "VAE", + "link": 25, + "slot_index": 1 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 22, + 26 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "VAEEncode" + } + }, + { + "id": 19, + "type": "VAELoader", + "pos": [ + 401, + -3225 + ], + "size": { + "0": 315, + "1": 58 + }, + "flags": {}, + "order": 2, + "mode": 0, + "outputs": [ + { + "name": "VAE", + "type": "VAE", + "links": [ + 25, + 27 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "VAELoader" + }, + "widgets_values": [ + "kl-f8-anime2.ckpt" + ] + }, + { + "id": 20, + "type": "VAEDecode", + "pos": [ + 803, + -3464 + ], + "size": { + "0": 210, + "1": 46 + }, + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 26 + }, + { + "name": "vae", + "type": "VAE", + "link": 27 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 28 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "VAEDecode" + } + }, + { + "id": 17, + "type": "PreviewImage", + "pos": [ + 1654, + -3459 + ], + "size": [ + 490.49860261037406, + 588.4543676153476 + ], + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 24 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 21, + "type": "PreviewImage", + "pos": [ + 1088, + -3507 + ], + "size": [ + 541.004670732146, + 660.0415994762975 + ], + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 28 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + } + ], + "links": [ + [ + 18, + 10, + 0, + 15, + 0, + "IMAGE" + ], + [ + 22, + 15, + 0, + 18, + 0, + "LATENT" + ], + [ + 23, + 14, + 0, + 18, + 1, + "VAE" + ], + [ + 24, + 18, + 0, + 17, + 0, + "IMAGE" + ], + [ + 25, + 19, + 0, + 15, + 1, + "VAE" + ], + [ + 26, + 15, + 0, + 20, + 0, + "LATENT" + ], + [ + 27, + 19, + 0, + 20, + 1, + "VAE" + ], + [ + 28, + 20, + 0, + 21, + 0, + "IMAGE" + ] + ], + "groups": [], + "config": {}, + "extra": {}, + "version": 0.4 +} \ No newline at end of file