From ffd3e3a8ceba6444d587593999869bb5e7f40eac Mon Sep 17 00:00:00 2001 From: Robin Huang Date: Thu, 28 Mar 2024 20:19:40 -0700 Subject: [PATCH] Add workflow json to run. --- .../workflows/json_examples/workflow_api.json | 107 ++++++++++++++++++ .github/workflows/mac-os-test.yml | 4 +- 2 files changed, 109 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/json_examples/workflow_api.json diff --git a/.github/workflows/json_examples/workflow_api.json b/.github/workflows/json_examples/workflow_api.json new file mode 100644 index 000000000..f08092338 --- /dev/null +++ b/.github/workflows/json_examples/workflow_api.json @@ -0,0 +1,107 @@ +{ + "3": { + "inputs": { + "seed": 1090871012874091, + "steps": 20, + "cfg": 8, + "sampler_name": "euler", + "scheduler": "normal", + "denoise": 1, + "model": [ + "4", + 0 + ], + "positive": [ + "6", + 0 + ], + "negative": [ + "7", + 0 + ], + "latent_image": [ + "5", + 0 + ] + }, + "class_type": "KSampler", + "_meta": { + "title": "KSampler" + } + }, + "4": { + "inputs": { + "ckpt_name": "v1-5-pruned-emaonly.ckpt" + }, + "class_type": "CheckpointLoaderSimple", + "_meta": { + "title": "Load Checkpoint" + } + }, + "5": { + "inputs": { + "width": 512, + "height": 512, + "batch_size": 1 + }, + "class_type": "EmptyLatentImage", + "_meta": { + "title": "Empty Latent Image" + } + }, + "6": { + "inputs": { + "text": "beautiful scenery nature glass bottle landscape, , purple galaxy bottle,", + "clip": [ + "4", + 1 + ] + }, + "class_type": "CLIPTextEncode", + "_meta": { + "title": "CLIP Text Encode (Prompt)" + } + }, + "7": { + "inputs": { + "text": "text, watermark", + "clip": [ + "4", + 1 + ] + }, + "class_type": "CLIPTextEncode", + "_meta": { + "title": "CLIP Text Encode (Prompt)" + } + }, + "8": { + "inputs": { + "samples": [ + "3", + 0 + ], + "vae": [ + "4", + 2 + ] + }, + "class_type": "VAEDecode", + "_meta": { + "title": "VAE Decode" + } + }, + "9": { + "inputs": { + "filename_prefix": "ComfyUI", + "images": [ + "8", + 0 + ] + }, + "class_type": "SaveImage", + "_meta": { + "title": "Save Image" + } + } +} \ No newline at end of file diff --git a/.github/workflows/mac-os-test.yml b/.github/workflows/mac-os-test.yml index 57534de48..089998cef 100644 --- a/.github/workflows/mac-os-test.yml +++ b/.github/workflows/mac-os-test.yml @@ -9,7 +9,7 @@ jobs: uses: drip-art/comfymac-action@main with: ORG_KEY: "test-key" - py_ver: '3.11' + py_ver: '3.11.0' torch_ver: 'nightly' models-json: '{"v1-5-pruned-emaonly.ckpt": {"url": "https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.ckpt", "directory": "checkpoints"}}' - workflow: 'default' + workflow_json_path: '.github/workflows/json_examples/workflow_api.json'