diff --git a/example/usingmean.json b/example/usingmean.json new file mode 100644 index 0000000..ad830c5 --- /dev/null +++ b/example/usingmean.json @@ -0,0 +1,494 @@ +{ + "last_node_id": 74, + "last_link_id": 171, + "nodes": [ + { + "id": 63, + "type": "Pops_Repo_Choice", + "pos": [ + 945, + 536 + ], + "size": { + "0": 315, + "1": 154 + }, + "flags": {}, + "order": 0, + "mode": 0, + "outputs": [ + { + "name": "repo_id", + "type": "STRING", + "links": [ + 151 + ], + "shape": 3, + "label": "repo_id", + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "Pops_Repo_Choice" + }, + "widgets_values": [ + "kandinsky-community\\kandinsky-2-2-prior", + "", + "kandinsky-community\\kandinsky-2-2-decoder", + "", + "F:/test/ComfyUI/models/diffusers/pOpsPaper/operators" + ] + }, + { + "id": 23, + "type": "Imgae_To_Path", + "pos": [ + 917, + 789 + ], + "size": { + "0": 292.20001220703125, + "1": 102 + }, + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 165, + "label": "image", + "slot_index": 0 + }, + { + "name": "image_operator", + "type": "IMAGE", + "link": 166, + "label": "image_operator" + } + ], + "outputs": [ + { + "name": "inputs_a", + "type": "STRING", + "links": [ + 107 + ], + "shape": 3, + "label": "inputs_a", + "slot_index": 0 + }, + { + "name": "inputs_b", + "type": "STRING", + "links": [], + "shape": 3, + "label": "inputs_b", + "slot_index": 1 + } + ], + "properties": { + "Node name for S&R": "Imgae_To_Path" + }, + "widgets_values": [ + 1024, + 1024 + ] + }, + { + "id": 3, + "type": "LoadImage", + "pos": [ + 483, + 694 + ], + "size": { + "0": 315, + "1": 314 + }, + "flags": {}, + "order": 1, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 165, + 166 + ], + "shape": 3, + "label": "图像", + "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3, + "label": "遮罩" + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "birmingham-museums-trust-q2OwlfXAYfo-unsplash (1).jpg", + "image" + ] + }, + { + "id": 49, + "type": "Pops_Prior_Embedding", + "pos": [ + 1302, + 758 + ], + "size": { + "0": 315, + "1": 418 + }, + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "repo_id", + "type": "STRING", + "link": 151, + "widget": { + "name": "repo_id" + }, + "label": "repo_id" + }, + { + "name": "inputs_a", + "type": "STRING", + "link": 107, + "widget": { + "name": "inputs_a" + }, + "label": "inputs_a" + }, + { + "name": "inputs_b", + "type": "STRING", + "link": 158, + "widget": { + "name": "inputs_b" + }, + "label": "inputs_b" + } + ], + "outputs": [ + { + "name": "model", + "type": "MODEL", + "links": [ + 167 + ], + "shape": 3, + "label": "model", + "slot_index": 0 + }, + { + "name": "prior", + "type": "MODEL", + "links": [ + 168 + ], + "shape": 3, + "label": "prior", + "slot_index": 1 + }, + { + "name": "prior_pipeline", + "type": "MODEL", + "links": [ + 169 + ], + "shape": 3, + "label": "prior_pipeline", + "slot_index": 2 + }, + { + "name": "positive", + "type": "CONDITIONING", + "links": [], + "shape": 3, + "label": "positive", + "slot_index": 3 + }, + { + "name": "negative", + "type": "CONDITIONING", + "links": [], + "shape": 3, + "label": "negative", + "slot_index": 4 + }, + { + "name": "input_hidden_state", + "type": "CONDITIONING", + "links": [ + 170 + ], + "shape": 3, + "label": "input_hidden_state", + "slot_index": 5 + }, + { + "name": "img_emb_file", + "type": "STRING", + "links": [], + "shape": 3, + "label": "img_emb_file", + "slot_index": 6 + } + ], + "properties": { + "Node name for S&R": "Pops_Prior_Embedding" + }, + "widgets_values": [ + "", + "shiny", + "", + "", + false, + false, + 1, + 409034759, + "randomize", + 25, + "texturing", + 1024, + 1024 + ] + }, + { + "id": 73, + "type": "Pops_Mean_Sampler", + "pos": [ + 1713, + 829 + ], + "size": { + "0": 315, + "1": 238 + }, + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 167, + "label": "model" + }, + { + "name": "prior", + "type": "MODEL", + "link": 168, + "label": "prior" + }, + { + "name": "prior_pipeline", + "type": "MODEL", + "link": 169, + "label": "prior_pipeline" + }, + { + "name": "input_hidden_state", + "type": "CONDITIONING", + "link": 170, + "label": "input_hidden_state", + "slot_index": 3 + } + ], + "outputs": [ + { + "name": "image", + "type": "IMAGE", + "links": [ + 171 + ], + "shape": 3, + "label": "image", + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "Pops_Mean_Sampler" + }, + "widgets_values": [ + 1043430924, + "randomize", + 50, + 4, + 512, + 512 + ] + }, + { + "id": 74, + "type": "SaveImage", + "pos": [ + 2099, + 842 + ], + "size": [ + 315, + 270 + ], + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 171, + "label": "图像" + } + ], + "properties": {}, + "widgets_values": [ + "ComfyUI" + ] + }, + { + "id": 70, + "type": "StringFunction|pysssss", + "pos": [ + 817, + 1083 + ], + "size": { + "0": 400, + "1": 273.9999694824219 + }, + "flags": {}, + "order": 2, + "mode": 0, + "outputs": [ + { + "name": "STRING", + "type": "STRING", + "links": [ + 158 + ], + "shape": 3, + "label": "字符串", + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "StringFunction|pysssss" + }, + "widgets_values": [ + "append", + "no", + "F:/test/ComfyUI/output/a_04332_b_04332_s_133333333_cfg_1.0_img_emb.pth", + "", + "", + "F:/test/ComfyUI/output/a_04332_b_04332_s_133333333_cfg_1.0_img_emb.pth" + ] + } + ], + "links": [ + [ + 107, + 23, + 0, + 49, + 1, + "STRING" + ], + [ + 151, + 63, + 0, + 49, + 0, + "STRING" + ], + [ + 158, + 70, + 0, + 49, + 2, + "STRING" + ], + [ + 165, + 3, + 0, + 23, + 0, + "IMAGE" + ], + [ + 166, + 3, + 0, + 23, + 1, + "IMAGE" + ], + [ + 167, + 49, + 0, + 73, + 0, + "MODEL" + ], + [ + 168, + 49, + 1, + 73, + 1, + "MODEL" + ], + [ + 169, + 49, + 2, + 73, + 2, + "MODEL" + ], + [ + 170, + 49, + 5, + 73, + 3, + "CONDITIONING" + ], + [ + 171, + 73, + 0, + 74, + 0, + "IMAGE" + ] + ], + "groups": [], + "config": {}, + "extra": { + "ds": { + "scale": 1, + "offset": [ + -340.3537224537576, + -344.3948163649302 + ] + } + }, + "version": 0.4 +} \ No newline at end of file diff --git a/example/usingmean.png b/example/usingmean.png new file mode 100644 index 0000000..49d5fb0 Binary files /dev/null and b/example/usingmean.png differ