Spaces:
Running on Zero
Running on Zero
File size: 8,635 Bytes
e436294 caa53cc e436294 caa53cc e436294 caa53cc e436294 caa53cc e436294 caa53cc e436294 6d03892 e436294 6d03892 caa53cc 6d03892 e436294 08a517d caa53cc 08a517d caa53cc 08a517d e436294 caa53cc e436294 caa53cc e436294 caa53cc e436294 caa53cc e436294 caa53cc e436294 caa53cc 6d03892 caa53cc e436294 caa53cc e436294 caa53cc e436294 caa53cc e436294 caa53cc 6d03892 caa53cc e436294 caa53cc e436294 caa53cc e436294 caa53cc e436294 caa53cc e436294 caa53cc e436294 caa53cc e436294 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 | {
"schema_version": "2",
"name": "P-Q-Image-2.1 Workflow",
"references": [
{
"id": "ref_source",
"label": "Source Image",
"role": "reference",
"asset_type": "image",
"inputs": [{"id": "in", "label": "Image", "type": "image"}],
"outputs": [{"id": "out", "label": "Image", "type": "image"}],
"x": 40,
"y": 40,
"width": 220,
"height": 130,
"data": {}
},
{
"id": "ref_edit",
"label": "Edit Instruction",
"role": "reference",
"asset_type": "text",
"inputs": [{"id": "in", "label": "Text", "type": "text"}],
"outputs": [{"id": "out", "label": "Text", "type": "text"}],
"x": 300,
"y": 40,
"width": 280,
"height": 130,
"data": {"out": "Change the background to a sunset beach"}
},
{
"id": "ref_edit_2",
"label": "Second Edit Instruction",
"role": "reference",
"asset_type": "text",
"inputs": [{"id": "in", "label": "Text", "type": "text"}],
"outputs": [{"id": "out", "label": "Text", "type": "text"}],
"x": 620,
"y": 250,
"width": 280,
"height": 130,
"data": {"out": "Add a small sailboat on the horizon"}
},
{
"id": "ref_seed",
"label": "Seed",
"role": "reference",
"asset_type": "text",
"inputs": [{"id": "in", "label": "Text", "type": "text"}],
"outputs": [{"id": "out", "label": "Text", "type": "text"}],
"x": 300,
"y": 190,
"width": 130,
"height": 90,
"data": {"out": "42"}
},
{
"id": "ref_variant",
"label": "Variant",
"role": "reference",
"asset_type": "text",
"inputs": [{"id": "in", "label": "Variant", "type": "text", "choices": ["6-steps", "6-steps-upsampled", "8-steps", "5-steps"]}],
"outputs": [{"id": "out", "label": "Variant", "type": "text", "choices": ["6-steps", "6-steps-upsampled", "8-steps", "5-steps"]}],
"x": 450,
"y": 190,
"width": 150,
"height": 90,
"data": {"out": "6-steps"}
},
{
"id": "ref_prompt",
"label": "Prompt",
"role": "reference",
"asset_type": "text",
"inputs": [{"id": "in", "label": "Text", "type": "text"}],
"outputs": [{"id": "out", "label": "Text", "type": "text"}],
"x": 40,
"y": 460,
"width": 300,
"height": 160,
"data": {"out": "A glowing neon shop sign that reads \"QWEN IMAGE 2.1\", mounted on a brick wall in a narrow city alley at night. Heavy rain, wet pavement reflecting pink and blue light, shallow depth of field, cinematic photograph."}
},
{
"id": "ref_aspect",
"label": "Aspect Ratio",
"role": "reference",
"asset_type": "text",
"inputs": [{"id": "in", "label": "Text", "type": "text", "choices": ["1:1", "4:3", "3:4", "3:2", "2:3", "16:9", "9:16"]}],
"outputs": [{"id": "out", "label": "Text", "type": "text", "choices": ["1:1", "4:3", "3:4", "3:2", "2:3", "16:9", "9:16"]}],
"x": 40,
"y": 640,
"width": 140,
"height": 90,
"data": {"out": "1:1"}
}
],
"operators": [
{
"id": "op_edit",
"label": "P-Q Edit",
"role": "operator",
"kind": "fn",
"fn": "pq_edit",
"inputs": [
{"id": "image", "label": "Image", "type": "image", "required": true},
{"id": "prompt", "label": "Edit Instruction", "type": "text", "required": true},
{"id": "variant", "label": "Variant", "type": "text", "choices": ["6-steps", "6-steps-upsampled", "8-steps", "5-steps"], "default_value": "6-steps"},
{"id": "seed", "label": "Seed", "type": "text"}
],
"outputs": [{"id": "out_0", "label": "Image", "type": "image", "output_index": 0}],
"x": 660,
"y": 40,
"width": 230,
"height": 170,
"data": {}
},
{
"id": "op_edit_2",
"label": "P-Q Edit (chained)",
"role": "operator",
"kind": "fn",
"fn": "pq_edit",
"inputs": [
{"id": "image", "label": "Image", "type": "image", "required": true},
{"id": "prompt", "label": "Edit Instruction", "type": "text", "required": true},
{"id": "variant", "label": "Variant", "type": "text", "choices": ["6-steps", "6-steps-upsampled", "8-steps", "5-steps"], "default_value": "6-steps"},
{"id": "seed", "label": "Seed", "type": "text"}
],
"outputs": [{"id": "out_0", "label": "Image", "type": "image", "output_index": 0}],
"x": 960,
"y": 260,
"width": 230,
"height": 170,
"data": {}
},
{
"id": "op_generate",
"label": "P-Q Generate",
"role": "operator",
"kind": "fn",
"fn": "pq_generate",
"inputs": [
{"id": "prompt", "label": "Prompt", "type": "text", "required": true},
{"id": "variant", "label": "Variant", "type": "text", "choices": ["6-steps", "6-steps-upsampled", "8-steps", "5-steps"], "default_value": "6-steps"},
{"id": "aspect", "label": "Aspect Ratio", "type": "text", "choices": ["1:1", "4:3", "3:4", "3:2", "2:3", "16:9", "9:16"], "default_value": "1:1"},
{"id": "seed", "label": "Seed", "type": "text"}
],
"outputs": [{"id": "out_0", "label": "Image", "type": "image", "output_index": 0}],
"x": 420,
"y": 480,
"width": 230,
"height": 190,
"data": {}
}
],
"subjects": [
{
"id": "sub_edited",
"label": "Edited Image",
"role": "subject",
"asset_type": "image",
"inputs": [{"id": "in", "label": "Image", "type": "image"}],
"outputs": [{"id": "out", "label": "Image", "type": "image"}],
"x": 940,
"y": 50,
"width": 230,
"height": 110,
"data": {}
},
{
"id": "sub_final",
"label": "Final Image",
"role": "subject",
"asset_type": "image",
"inputs": [{"id": "in", "label": "Image", "type": "image"}],
"outputs": [{"id": "out", "label": "Image", "type": "image"}],
"x": 1240,
"y": 270,
"width": 230,
"height": 110,
"data": {}
},
{
"id": "sub_generated",
"label": "Generated Image",
"role": "subject",
"asset_type": "image",
"inputs": [{"id": "in", "label": "Image", "type": "image"}],
"outputs": [{"id": "out", "label": "Image", "type": "image"}],
"x": 710,
"y": 490,
"width": 230,
"height": 110,
"data": {}
}
],
"edges": [
{"id": "e_source", "from_node_id": "ref_source", "from_port_id": "out", "to_node_id": "op_edit", "to_port_id": "image", "type": "image"},
{"id": "e_edit", "from_node_id": "ref_edit", "from_port_id": "out", "to_node_id": "op_edit", "to_port_id": "prompt", "type": "text"},
{"id": "e_variant", "from_node_id": "ref_variant", "from_port_id": "out", "to_node_id": "op_edit", "to_port_id": "variant", "type": "text"},
{"id": "e_seed", "from_node_id": "ref_seed", "from_port_id": "out", "to_node_id": "op_edit", "to_port_id": "seed", "type": "text"},
{"id": "e_out", "from_node_id": "op_edit", "from_port_id": "out_0", "to_node_id": "sub_edited", "to_port_id": "in", "type": "image"},
{"id": "e_chain", "from_node_id": "op_edit", "from_port_id": "out_0", "to_node_id": "op_edit_2", "to_port_id": "image", "type": "image"},
{"id": "e_edit_2", "from_node_id": "ref_edit_2", "from_port_id": "out", "to_node_id": "op_edit_2", "to_port_id": "prompt", "type": "text"},
{"id": "e_variant_2", "from_node_id": "ref_variant", "from_port_id": "out", "to_node_id": "op_edit_2", "to_port_id": "variant", "type": "text"},
{"id": "e_seed_2", "from_node_id": "ref_seed", "from_port_id": "out", "to_node_id": "op_edit_2", "to_port_id": "seed", "type": "text"},
{"id": "e_out_2", "from_node_id": "op_edit_2", "from_port_id": "out_0", "to_node_id": "sub_final", "to_port_id": "in", "type": "image"},
{"id": "e_prompt", "from_node_id": "ref_prompt", "from_port_id": "out", "to_node_id": "op_generate", "to_port_id": "prompt", "type": "text"},
{"id": "e_variant_g", "from_node_id": "ref_variant", "from_port_id": "out", "to_node_id": "op_generate", "to_port_id": "variant", "type": "text"},
{"id": "e_aspect", "from_node_id": "ref_aspect", "from_port_id": "out", "to_node_id": "op_generate", "to_port_id": "aspect", "type": "text"},
{"id": "e_seed_g", "from_node_id": "ref_seed", "from_port_id": "out", "to_node_id": "op_generate", "to_port_id": "seed", "type": "text"},
{"id": "e_gen", "from_node_id": "op_generate", "from_port_id": "out_0", "to_node_id": "sub_generated", "to_port_id": "in", "type": "image"}
]
}
|