Spaces:
Running on Zero

AnimeGANv2 / workflow.json
akhaliq's picture
akhaliq HF Staff
gradio server and workflow (#15)
71704ff
Raw History Blame Contribute Delete
3.78 kB
{
"schema_version": "2",
"name": "AnimeGANv2 Workflow",
"references": [
{
"id": "ref_source",
"label": "Source Portrait",
"role": "reference",
"asset_type": "image",
"inputs": [{"id": "in", "label": "Image", "type": "image"}],
"outputs": [{"id": "out", "label": "Image", "type": "image"}],
"x": 40,
"y": 120,
"width": 220,
"height": 130,
"data": {}
},
{
"id": "ref_v1",
"label": "Style: Version 1",
"role": "reference",
"asset_type": "text",
"inputs": [{"id": "in", "label": "Text", "type": "text"}],
"outputs": [{"id": "out", "label": "Text", "type": "text"}],
"x": 40,
"y": 300,
"width": 160,
"height": 90,
"data": {"out": "Version 1"}
},
{
"id": "ref_v2",
"label": "Style: Version 2",
"role": "reference",
"asset_type": "text",
"inputs": [{"id": "in", "label": "Text", "type": "text"}],
"outputs": [{"id": "out", "label": "Text", "type": "text"}],
"x": 40,
"y": 520,
"width": 160,
"height": 90,
"data": {"out": "Version 2"}
}
],
"operators": [
{
"id": "op_v1",
"label": "AnimeGAN v1 (stylized)",
"role": "operator",
"kind": "fn",
"fn": "animegan_convert",
"inputs": [
{"id": "image", "label": "Image", "type": "image", "required": true},
{"id": "version", "label": "Style Version", "type": "text"}
],
"outputs": [{"id": "out_0", "label": "Image", "type": "image", "output_index": 0}],
"x": 380,
"y": 140,
"width": 230,
"height": 130,
"data": {}
},
{
"id": "op_v2",
"label": "AnimeGAN v2 (robust)",
"role": "operator",
"kind": "fn",
"fn": "animegan_convert",
"inputs": [
{"id": "image", "label": "Image", "type": "image", "required": true},
{"id": "version", "label": "Style Version", "type": "text"}
],
"outputs": [{"id": "out_0", "label": "Image", "type": "image", "output_index": 0}],
"x": 380,
"y": 420,
"width": 230,
"height": 130,
"data": {}
}
],
"subjects": [
{
"id": "sub_v1",
"label": "Anime Result — v1",
"role": "subject",
"asset_type": "image",
"inputs": [{"id": "in", "label": "Image", "type": "image"}],
"outputs": [{"id": "out", "label": "Image", "type": "image"}],
"x": 720,
"y": 150,
"width": 230,
"height": 110,
"data": {}
},
{
"id": "sub_v2",
"label": "Anime Result — v2",
"role": "subject",
"asset_type": "image",
"inputs": [{"id": "in", "label": "Image", "type": "image"}],
"outputs": [{"id": "out", "label": "Image", "type": "image"}],
"x": 720,
"y": 430,
"width": 230,
"height": 110,
"data": {}
}
],
"edges": [
{"id": "e_source_v1", "from_node_id": "ref_source", "from_port_id": "out", "to_node_id": "op_v1", "to_port_id": "image", "type": "image"},
{"id": "e_version_v1", "from_node_id": "ref_v1", "from_port_id": "out", "to_node_id": "op_v1", "to_port_id": "version", "type": "text"},
{"id": "e_out_v1", "from_node_id": "op_v1", "from_port_id": "out_0", "to_node_id": "sub_v1", "to_port_id": "in", "type": "image"},
{"id": "e_source_v2", "from_node_id": "ref_source", "from_port_id": "out", "to_node_id": "op_v2", "to_port_id": "image", "type": "image"},
{"id": "e_version_v2", "from_node_id": "ref_v2", "from_port_id": "out", "to_node_id": "op_v2", "to_port_id": "version", "type": "text"},
{"id": "e_out_v2", "from_node_id": "op_v2", "from_port_id": "out_0", "to_node_id": "sub_v2", "to_port_id": "in", "type": "image"}
]
}