diff --git a/examples/rh_imagetoimage.json b/examples/rh_imagetoimage.json new file mode 100644 index 0000000..383d651 --- /dev/null +++ b/examples/rh_imagetoimage.json @@ -0,0 +1,369 @@ +{ + "last_node_id": 12, + "last_link_id": 12, + "nodes": [ + { + "id": 10, + "type": "RH_ExecuteNode", + "pos": [ + 2012, + 255 + ], + "size": { + "0": 315, + "1": 102 + }, + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [ + { + "name": "apiConfig", + "type": "STRUCT", + "link": 8, + "label": "apiConfig" + }, + { + "name": "nodeInfoList", + "type": "ARRAY", + "link": 9, + "label": "nodeInfoList", + "slot_index": 1 + } + ], + "outputs": [ + { + "name": "images", + "type": "IMAGE", + "links": [ + 10 + ], + "shape": 3, + "label": "images", + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "RH_ExecuteNode" + }, + "widgets_values": [ + 600, + 10 + ] + }, + { + "id": 3, + "type": "ShowText|pysssss", + "pos": [ + 1816, + 526 + ], + "size": { + "0": 357.5720520019531, + "1": 181.1536865234375 + }, + "flags": { + "collapsed": true + }, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "text", + "type": "STRING", + "link": 12, + "widget": { + "name": "text" + }, + "label": "文本" + } + ], + "outputs": [ + { + "name": "STRING", + "type": "STRING", + "links": null, + "shape": 6, + "label": "字符串" + } + ], + "properties": { + "Node name for S&R": "ShowText|pysssss" + }, + "widgets_values": [ + "", + "api/da283c65854a296e2ede80ba4b674fe77dfa603d896a60c8b4ee7958ec173c9b.png" + ] + }, + { + "id": 9, + "type": "RH_ImageUploaderNode", + "pos": [ + 1750, + 431 + ], + "size": { + "0": 229.20001220703125, + "1": 46 + }, + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [ + { + "name": "apiConfig", + "type": "STRUCT", + "link": 6, + "label": "apiConfig" + }, + { + "name": "image", + "type": "IMAGE", + "link": 7, + "label": "image" + } + ], + "outputs": [ + { + "name": "filename", + "type": "STRING", + "links": [ + 11, + 12 + ], + "shape": 3, + "label": "filename", + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "RH_ImageUploaderNode" + } + }, + { + "id": 5, + "type": "LoadImage", + "pos": [ + 1347, + 263 + ], + "size": { + "0": 315, + "1": 314 + }, + "flags": {}, + "order": 0, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 7 + ], + "shape": 3, + "label": "图像", + "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3, + "label": "遮罩" + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "comfyui_temp_clpqa_00001__erplu.png", + "image" + ] + }, + { + "id": 12, + "type": "PreviewImage", + "pos": [ + 2341, + 255 + ], + "size": { + "0": 314.3929748535156, + "1": 547.883544921875 + }, + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 10, + "label": "图像" + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 6, + "type": "RH_SettingsNode", + "pos": [ + 1683, + 256 + ], + "size": { + "0": 315, + "1": 106 + }, + "flags": {}, + "order": 1, + "mode": 0, + "outputs": [ + { + "name": "STRUCT", + "type": "STRUCT", + "links": [ + 6, + 8 + ], + "shape": 3, + "label": "STRUCT", + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "RH_SettingsNode" + }, + "widgets_values": [ + "https://www.runninghub.cn", + "ed37fbdd79c34a7ca612aedbe5cea13e", + "1867632304280715265" + ] + }, + { + "id": 11, + "type": "RH_NodeInfoListNode", + "pos": [ + 1992, + 421 + ], + "size": { + "0": 330, + "1": 106 + }, + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "previousNodeInfoList", + "type": "ARRAY", + "link": null, + "label": "previousNodeInfoList" + }, + { + "name": "fieldValue", + "type": "STRING", + "link": 11, + "widget": { + "name": "fieldValue" + }, + "label": "fieldValue" + } + ], + "outputs": [ + { + "name": "ARRAY", + "type": "ARRAY", + "links": [ + 9 + ], + "shape": 3, + "label": "ARRAY" + } + ], + "properties": { + "Node name for S&R": "RH_NodeInfoListNode" + }, + "widgets_values": [ + 19, + "image", + "18" + ] + } + ], + "links": [ + [ + 6, + 6, + 0, + 9, + 0, + "STRUCT" + ], + [ + 7, + 5, + 0, + 9, + 1, + "IMAGE" + ], + [ + 8, + 6, + 0, + 10, + 0, + "STRUCT" + ], + [ + 9, + 11, + 0, + 10, + 1, + "ARRAY" + ], + [ + 10, + 10, + 0, + 12, + 0, + "IMAGE" + ], + [ + 11, + 9, + 0, + 11, + 1, + "STRING" + ], + [ + 12, + 9, + 0, + 3, + 0, + "STRING" + ] + ], + "groups": [], + "config": {}, + "extra": { + "ds": { + "scale": 1.0610764609500007, + "offset": [ + -971.4912525643809, + 87.02991363876899 + ] + }, + "ue_links": [] + }, + "version": 0.4 +} \ No newline at end of file