akhaliq's picture
akhaliq HF Staff
example input: cat photo (plain input, not the comparison strip)
6548a28 verified
Raw History Blame Contribute Delete
6.15 kB
{
"schema_version": "2",
"name": "Qwen-Image-2.1 Multiple-Angles",
"runtime": {
"default": "client"
},
"references": [
{
"id": "ref_photo",
"label": "Photo to reshoot",
"role": "reference",
"asset_type": "image",
"inputs": [{"id": "in", "label": "Image", "type": "image"}],
"outputs": [{"id": "out", "label": "Image", "type": "image"}],
"x": 60,
"y": 60,
"width": 260,
"data": {
"out": {
"name": "cat_input.jpg",
"url": "https://huggingface.co/akhaliq/Qwen-Image-2.1-Multiple-Angles-LoRA/resolve/main/examples/cat_input.jpg",
"mime": "image/jpeg"
}
}
},
{
"id": "ref_azimuth",
"label": "Azimuth",
"role": "reference",
"asset_type": "text",
"inputs": [{"id": "in", "label": "Text", "type": "text"}],
"outputs": [{"id": "out", "label": "Text", "type": "text"}],
"x": 60,
"y": 280,
"width": 280,
"data": {"out": "right side view"}
},
{
"id": "ref_elevation",
"label": "Elevation",
"role": "reference",
"asset_type": "text",
"inputs": [{"id": "in", "label": "Text", "type": "text"}],
"outputs": [{"id": "out", "label": "Text", "type": "text"}],
"x": 60,
"y": 440,
"width": 280,
"data": {"out": "high-angle shot"}
},
{
"id": "ref_closeup",
"label": "Close-up",
"role": "reference",
"asset_type": "text",
"inputs": [{"id": "in", "label": "Text", "type": "text"}],
"outputs": [{"id": "out", "label": "Text", "type": "text"}],
"x": 60,
"y": 600,
"width": 280,
"data": {"out": "false"}
},
{
"id": "ref_steps",
"label": "Steps",
"role": "reference",
"asset_type": "text",
"inputs": [{"id": "in", "label": "Text", "type": "text"}],
"outputs": [{"id": "out", "label": "Number", "type": "number"}],
"x": 60,
"y": 760,
"width": 280,
"data": {"out": 40}
},
{
"id": "ref_seed",
"label": "Seed",
"role": "reference",
"asset_type": "text",
"inputs": [{"id": "in", "label": "Text", "type": "text"}],
"outputs": [{"id": "out", "label": "Number", "type": "number"}],
"x": 60,
"y": 920,
"width": 280,
"data": {"out": 42}
},
{
"id": "ref_strength",
"label": "LoRA strength",
"role": "reference",
"asset_type": "text",
"inputs": [{"id": "in", "label": "Text", "type": "text"}],
"outputs": [{"id": "out", "label": "Number", "type": "number"}],
"x": 60,
"y": 1080,
"width": 280,
"data": {"out": 1.0}
}
],
"operators": [
{
"id": "op_reshoot",
"label": "Multiple-Angles Reshoot",
"role": "operator",
"kind": "fn",
"fn": "reshoot",
"inputs": [
{"id": "in_0", "label": "Photo", "type": "image", "required": true},
{"id": "in_1", "label": "Azimuth", "type": "text", "required": false},
{"id": "in_2", "label": "Elevation", "type": "text", "required": false},
{"id": "in_3", "label": "Close-up", "type": "text", "required": false},
{"id": "in_4", "label": "Steps", "type": "number", "required": false},
{"id": "in_5", "label": "Seed", "type": "number", "required": false},
{"id": "in_6", "label": "LoRA strength", "type": "number", "required": false}
],
"outputs": [
{"id": "out_0", "label": "Reshot image", "type": "image", "output_index": 0},
{"id": "out_1", "label": "Report", "type": "text", "output_index": 1}
],
"x": 460,
"y": 320,
"width": 320,
"data": {}
}
],
"subjects": [
{
"id": "sub_image",
"label": "Reshot Photo",
"role": "subject",
"asset_type": "image",
"inputs": [{"id": "in", "label": "Image", "type": "image"}],
"outputs": [{"id": "out", "label": "Image", "type": "image"}],
"x": 900,
"y": 320,
"width": 340,
"data": {}
},
{
"id": "sub_report",
"label": "Run Report",
"role": "subject",
"asset_type": "text",
"inputs": [{"id": "in", "label": "Text", "type": "text"}],
"outputs": [{"id": "out", "label": "Text", "type": "text"}],
"x": 900,
"y": 700,
"width": 340,
"data": {}
}
],
"edges": [
{
"id": "e_photo",
"from_node_id": "ref_photo",
"from_port_id": "out",
"to_node_id": "op_reshoot",
"to_port_id": "in_0",
"type": "image"
},
{
"id": "e_azimuth",
"from_node_id": "ref_azimuth",
"from_port_id": "out",
"to_node_id": "op_reshoot",
"to_port_id": "in_1",
"type": "text"
},
{
"id": "e_elevation",
"from_node_id": "ref_elevation",
"from_port_id": "out",
"to_node_id": "op_reshoot",
"to_port_id": "in_2",
"type": "text"
},
{
"id": "e_closeup",
"from_node_id": "ref_closeup",
"from_port_id": "out",
"to_node_id": "op_reshoot",
"to_port_id": "in_3",
"type": "text"
},
{
"id": "e_steps",
"from_node_id": "ref_steps",
"from_port_id": "out",
"to_node_id": "op_reshoot",
"to_port_id": "in_4",
"type": "number"
},
{
"id": "e_seed",
"from_node_id": "ref_seed",
"from_port_id": "out",
"to_node_id": "op_reshoot",
"to_port_id": "in_5",
"type": "number"
},
{
"id": "e_strength",
"from_node_id": "ref_strength",
"from_port_id": "out",
"to_node_id": "op_reshoot",
"to_port_id": "in_6",
"type": "number"
},
{
"id": "e_image",
"from_node_id": "op_reshoot",
"from_port_id": "out_0",
"to_node_id": "sub_image",
"to_port_id": "in",
"type": "image"
},
{
"id": "e_report",
"from_node_id": "op_reshoot",
"from_port_id": "out_1",
"to_node_id": "sub_report",
"to_port_id": "in",
"type": "text"
}
],
"view": {
"default": "canvas"
}
}