| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355 |
- {
- "active": true,
- "connections": [
- {
- "sourceNodeId": "node_1785999268136",
- "sourceOutput": "main",
- "targetInput": "config",
- "targetNodeId": "node_1786002941621"
- },
- {
- "sourceNodeId": "node_1786002941621",
- "sourceOutput": "main",
- "targetInput": "data",
- "targetNodeId": "node_1786004423373"
- },
- {
- "sourceNodeId": "node_1785999268136",
- "sourceOutput": "main",
- "targetInput": "config",
- "targetNodeId": "node_1786004423373"
- },
- {
- "sourceNodeId": "node_1785999216336",
- "sourceOutput": "main",
- "targetInput": "data",
- "targetNodeId": "node_1786002941621"
- },
- {
- "sourceNodeId": "node_1785999221583",
- "sourceOutput": "main",
- "targetInput": "data",
- "targetNodeId": "node_1786002941621"
- },
- {
- "sourceNodeId": "node_1785999268136",
- "sourceOutput": "main",
- "targetInput": "config",
- "targetNodeId": "node_1786011832521"
- },
- {
- "sourceNodeId": "node_1786004423373",
- "sourceOutput": "main",
- "targetInput": "data",
- "targetNodeId": "node_1786011832521"
- },
- {
- "sourceNodeId": "node_1785999268136",
- "sourceOutput": "main",
- "targetInput": "config",
- "targetNodeId": "node_1786013716017"
- },
- {
- "sourceNodeId": "node_1786011832521",
- "sourceOutput": "main",
- "targetInput": "data",
- "targetNodeId": "node_1786029193764_8510"
- },
- {
- "sourceNodeId": "node_1786029193764_8510",
- "sourceOutput": "main",
- "targetInput": "data",
- "targetNodeId": "node_1786013716017"
- },
- {
- "sourceNodeId": "node_1786013716017",
- "sourceOutput": "main",
- "targetInput": "data",
- "targetNodeId": "node_1786003128448"
- }
- ],
- "name": "[SWF] SDCCP v2 generate image",
- "nodes": [
- {
- "config": {
- "allowExtra": false,
- "fields": [
- {
- "defaultValue": "",
- "description": "What to generate",
- "name": "prompt",
- "required": true
- },
- {
- "defaultValue": "1024",
- "description": "Target width",
- "name": "width",
- "required": true
- },
- {
- "defaultValue": "1024",
- "description": "Target height",
- "name": "height",
- "required": true
- },
- {
- "defaultValue": "<lora:ZImage/zimage_alexandrabotez_v1:0.7>",
- "description": "Appended to the prompt. Empty for none",
- "name": "loraTag",
- "required": false
- },
- {
- "defaultValue": "reddit/r/selfie",
- "description": "Job title, so the queue says which workflow asked",
- "name": "title",
- "required": false
- },
- {
- "defaultValue": "sdcpp_outputs",
- "description": "Where the finished image is stored",
- "name": "collection",
- "required": false
- },
- {
- "defaultValue": "2",
- "description": "How many images",
- "name": "batchCount",
- "required": false
- },
- {
- "defaultValue": "24",
- "description": "How long the stored image lives. 0 keeps it for good",
- "name": "keepForHours",
- "required": false
- },
- {
- "defaultValue": true,
- "description": "Keep a copy of the generated image in the database. The image is already on the SD.cpp server and is fetched from there by URL, so a caller that publishes it elsewhere does not need a second copy.",
- "name": "storeInDatabase",
- "required": false
- }
- ]
- },
- "disabled": false,
- "id": "node_1785999216336",
- "name": "Workflow Input",
- "position": {
- "x": 320,
- "y": 0
- },
- "type": "workflow-input"
- },
- {
- "config": {
- "label": "Execute"
- },
- "disabled": false,
- "id": "node_1785999221583",
- "name": "Click Trigger",
- "position": {
- "x": 620,
- "y": 0
- },
- "type": "click-trigger"
- },
- {
- "config": {
- "settings": [
- {
- "name": "credentialId",
- "value": "cred_62748b40-e9d1-4659-b175-6dbc691cc0b1"
- },
- {
- "name": "serverUrl",
- "value": "http://mulan:8077"
- }
- ]
- },
- "disabled": false,
- "id": "node_1785999268136",
- "name": "Configurator",
- "position": {
- "x": -300,
- "y": 180
- },
- "type": "configurator"
- },
- {
- "config": {
- "backend": "",
- "diffusionConvDirect": false,
- "diffusionFlashAttn": true,
- "eagerLoad": true,
- "enableMmap": false,
- "flashAttn": true,
- "force": false,
- "forceSdxlVaeConvScale": false,
- "llm": "Huihui-Qwen3-4B-abliterated-v2.f16.gguf",
- "loadWaitMs": 900000,
- "loraApplyMode": "",
- "maxVram": -1,
- "modelArgs": "",
- "modelName": "z_image_turbo_bf16.safetensors",
- "modelType": "diffusion",
- "nThreads": 10,
- "options": {},
- "paramsBackend": "*=cpu",
- "prediction": "",
- "rngType": "",
- "rpcServers": "",
- "samplerRngType": "",
- "serverUrl": "http://localhost:8077",
- "streamLayers": true,
- "taePreviewOnly": false,
- "timeout": 600000,
- "vae": "ae.safetensors",
- "vaeConvDirect": false,
- "vaeFormat": "auto",
- "weightType": "",
- "whenDifferent": "load"
- },
- "disabled": false,
- "id": "node_1786002941621",
- "name": "SD.cpp Load Model",
- "position": {
- "x": 360,
- "y": 180
- },
- "type": "sdcpp-model-load"
- },
- {
- "config": {
- "fields": [
- {
- "name": "jobId",
- "value": "{{$node['SD.cpp Wait For Job'].jobId}}"
- },
- {
- "name": "succeeded",
- "value": "{{$node['SD.cpp Wait For Job'].succeeded}}"
- },
- {
- "name": "outputs",
- "value": "{{$node['SD.cpp Wait For Job'].outputs}}"
- },
- {
- "name": "urls",
- "value": "{{$node['SD.cpp Wait For Job'].urls}}"
- },
- {
- "name": "count",
- "value": "{{$node['SD.cpp Fetch Output'].count}}"
- },
- {
- "name": "stored",
- "value": "{{$node['SD.cpp Fetch Output'].storage}}"
- },
- {
- "name": "error",
- "value": "{{$node['SD.cpp Wait For Job'].error}}"
- }
- ],
- "source": "fields"
- },
- "disabled": false,
- "id": "node_1786003128448",
- "name": "Workflow Output",
- "position": {
- "x": 0,
- "y": 1260
- },
- "type": "workflow-output"
- },
- {
- "config": {
- "batchCount": "{{$node[\"Workflow Input\"].batchCount}}",
- "cacheMode": "off",
- "cfgScale": 1,
- "clipSkip": -1,
- "height": "{{$node[\"Workflow Input\"].height}}",
- "prompt": "{{$node[\"Workflow Input\"].prompt}} {{$node[\"Workflow Input\"].loraTag}}",
- "sampler": "euler",
- "scheduler": "smoothstep",
- "seed": 42,
- "serverUrl": "http://localhost:8077",
- "steps": 9,
- "timeout": 30000,
- "title": "{{$node[\"Workflow Input\"].title}}",
- "width": "{{$node[\"Workflow Input\"].width}}"
- },
- "disabled": false,
- "id": "node_1786004423373",
- "name": "SD.cpp Text to Image",
- "position": {
- "x": 360,
- "y": 360
- },
- "type": "sdcpp-txt2img"
- },
- {
- "config": {
- "failOnJobFailure": false,
- "failOnTimeout": false,
- "jobId": "{{$node[\"SD.cpp Text to Image\"].jobId}}",
- "maxWait": 600000,
- "pollInterval": 2000,
- "serverUrl": "http://localhost:8077",
- "timeout": 30000
- },
- "disabled": false,
- "id": "node_1786011832521",
- "name": "SD.cpp Wait For Job",
- "position": {
- "x": 140,
- "y": 540
- },
- "type": "sdcpp-job-wait"
- },
- {
- "config": {
- "collection": "{{$node[\"Workflow Input\"].collection}}",
- "limit": 0,
- "paths": [
- "{{$node[\"SD.cpp Wait For Job\"].outputs}}"
- ],
- "serverUrl": "http://localhost:8077",
- "storageTtlHours": "{{$node[\"Workflow Input\"].keepForHours}}",
- "storeInDatabase": "{{String($node['Workflow Input'].storeInDatabase) !== 'false'}}",
- "timeout": 120000
- },
- "disabled": false,
- "id": "node_1786013716017",
- "name": "SD.cpp Fetch Output",
- "position": {
- "x": 0,
- "y": 900
- },
- "type": "sdcpp-fetch-output"
- },
- {
- "config": {
- "duration": 500,
- "unit": "milliseconds"
- },
- "disabled": false,
- "id": "node_1786029193764_8510",
- "name": "Wait",
- "position": {
- "x": 140,
- "y": 720
- },
- "type": "wait"
- }
- ],
- "settings": {
- "errorWorkflowId": "wf_766fcbcb-6345-4e9c-b7f8-f219505ee45c",
- "storagePermissions": {
- "collections": {
- "anime_images": "read-write",
- "files": "read-write",
- "sdcpp_outputs": "read-write"
- },
- "defaultAccess": "none"
- }
- }
- }
|