{ "schema_version": "2", "name": "Image Editing Pipeline", "references": [ { "id": "ref_image", "role": "reference", "label": "Image", "asset_type": "image", "inputs": [ { "id": "in", "label": "Image", "type": "image" } ], "outputs": [ { "id": "out", "label": "Image", "type": "image" } ], "data": { "out": "https://huggingface.co/spaces/ysharma/gr-workflow-image-editor/resolve/main/sample.png" }, "x": 40, "y": 60, "width": 240, "height": 136 }, { "id": "ref_prompt", "role": "reference", "label": "Edit instruction", "asset_type": "text", "inputs": [ { "id": "in", "label": "Edit instruction", "type": "text" } ], "outputs": [ { "id": "out", "label": "Edit instruction", "type": "text" } ], "data": { "out": "turn it into a snowy winter scene with the dog wearing a red scarf" }, "x": 40, "y": 320, "width": 240, "height": 163 } ], "operators": [ { "id": "op_edit", "role": "operator", "kind": "model", "model_id": "Qwen/Qwen-Image-Edit", "pipeline_tag": "image-to-image", "endpoint": "image_to_image", "provider": "auto", "label": "Qwen-Image-Edit", "inputs": [ { "id": "image", "label": "Image", "type": "image" }, { "id": "prompt", "label": "Prompt", "type": "text" } ], "outputs": [ { "id": "out_0", "label": "Image", "type": "image", "output_index": 0 } ], "data": {}, "x": 360, "y": 150, "width": 240, "height": 140 } ], "subjects": [ { "id": "sub_out", "role": "subject", "label": "Edited image", "asset_type": "image", "inputs": [ { "id": "in", "label": "Edited image", "type": "image" } ], "outputs": [ { "id": "out", "label": "Edited image", "type": "image" } ], "data": {}, "x": 680, "y": 120, "width": 260, "height": 107 } ], "edges": [ { "id": "e1", "from_node_id": "ref_image", "from_port_id": "out", "to_node_id": "op_edit", "to_port_id": "image", "type": "image" }, { "id": "e2", "from_node_id": "ref_prompt", "from_port_id": "out", "to_node_id": "op_edit", "to_port_id": "prompt", "type": "text" }, { "id": "e3", "from_node_id": "op_edit", "from_port_id": "out_0", "to_node_id": "sub_out", "to_port_id": "in", "type": "image" } ] }