Spaces:
Running on Zero
Running on Zero
Download workflow.json from PrunaAI/P-H3-Image: direct link, hf CLI and curl.
- Browser
- Download file 7.53 kB
-
https://huggingface.co/spaces/PrunaAI/P-H3-Image/resolve/refs%2Fpr%2F1/workflow.json
- Command line
-
hf download hf://spaces/PrunaAI/P-H3-Image@refs/pr/1/workflow.json
-
curl -L -o workflow.json https://huggingface.co/spaces/PrunaAI/P-H3-Image/resolve/refs%2Fpr%2F1/workflow.json
7.53 kB
| { | |
| "schema_version": "2", | |
| "name": "P-H3-Image 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": "make it night, with warm light glowing in the windows"} | |
| }, | |
| { | |
| "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 boat with a lantern on the water"} | |
| }, | |
| { | |
| "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_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 lighthouse on a cliff at dusk, film still, cold light raking across the rocks, fine grain, restrained palette of slate and amber."} | |
| }, | |
| { | |
| "id": "ref_aspect", | |
| "label": "Aspect Ratio", | |
| "role": "reference", | |
| "asset_type": "text", | |
| "inputs": [{"id": "in", "label": "Text", "type": "text"}], | |
| "outputs": [{"id": "out", "label": "Text", "type": "text"}], | |
| "x": 40, | |
| "y": 640, | |
| "width": 140, | |
| "height": 90, | |
| "data": {"out": "4:3"} | |
| }, | |
| { | |
| "id": "ref_resolution", | |
| "label": "Resolution", | |
| "role": "reference", | |
| "asset_type": "text", | |
| "inputs": [{"id": "in", "label": "Text", "type": "text"}], | |
| "outputs": [{"id": "out", "label": "Text", "type": "text"}], | |
| "x": 200, | |
| "y": 640, | |
| "width": 140, | |
| "height": 90, | |
| "data": {"out": "8 MP"} | |
| } | |
| ], | |
| "operators": [ | |
| { | |
| "id": "op_edit", | |
| "label": "P-H3 Edit", | |
| "role": "operator", | |
| "kind": "fn", | |
| "fn": "ph3_edit", | |
| "inputs": [ | |
| {"id": "image", "label": "Image", "type": "image", "required": true}, | |
| {"id": "prompt", "label": "Edit Instruction", "type": "text", "required": true}, | |
| {"id": "seed", "label": "Seed", "type": "text"} | |
| ], | |
| "outputs": [{"id": "out_0", "label": "Image", "type": "image", "output_index": 0}], | |
| "x": 620, | |
| "y": 60, | |
| "width": 230, | |
| "height": 150, | |
| "data": {} | |
| }, | |
| { | |
| "id": "op_edit_2", | |
| "label": "P-H3 Edit (chained)", | |
| "role": "operator", | |
| "kind": "fn", | |
| "fn": "ph3_edit", | |
| "inputs": [ | |
| {"id": "image", "label": "Image", "type": "image", "required": true}, | |
| {"id": "prompt", "label": "Edit Instruction", "type": "text", "required": true}, | |
| {"id": "seed", "label": "Seed", "type": "text"} | |
| ], | |
| "outputs": [{"id": "out_0", "label": "Image", "type": "image", "output_index": 0}], | |
| "x": 960, | |
| "y": 260, | |
| "width": 230, | |
| "height": 150, | |
| "data": {} | |
| }, | |
| { | |
| "id": "op_generate", | |
| "label": "P-H3 Generate", | |
| "role": "operator", | |
| "kind": "fn", | |
| "fn": "ph3_generate", | |
| "inputs": [ | |
| {"id": "prompt", "label": "Prompt", "type": "text", "required": true}, | |
| {"id": "aspect", "label": "Aspect Ratio", "type": "text"}, | |
| {"id": "resolution", "label": "Resolution", "type": "text"}, | |
| {"id": "seed", "label": "Seed", "type": "text"} | |
| ], | |
| "outputs": [{"id": "out_0", "label": "Image", "type": "image", "output_index": 0}], | |
| "x": 420, | |
| "y": 480, | |
| "width": 230, | |
| "height": 170, | |
| "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": 900, | |
| "y": 70, | |
| "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_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_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_aspect", "from_node_id": "ref_aspect", "from_port_id": "out", "to_node_id": "op_generate", "to_port_id": "aspect", "type": "text"}, | |
| {"id": "e_resolution", "from_node_id": "ref_resolution", "from_port_id": "out", "to_node_id": "op_generate", "to_port_id": "resolution", "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"} | |
| ] | |
| } | |