From 81c0dd328d5f0f0746fede94355bd0f362b183ed Mon Sep 17 00:00:00 2001 From: Tim Pietrusky Date: Tue, 4 Jun 2024 11:17:47 +0200 Subject: [PATCH] chore: added example workflows for webp and sdxl-turbo --- .../workflows/workflow_sdxl_turbo.json | 84 +++++++++++++ test_resources/workflows/workflow_webp.json | 114 ++++++++++++++++++ 2 files changed, 198 insertions(+) create mode 100644 test_resources/workflows/workflow_sdxl_turbo.json create mode 100644 test_resources/workflows/workflow_webp.json diff --git a/test_resources/workflows/workflow_sdxl_turbo.json b/test_resources/workflows/workflow_sdxl_turbo.json new file mode 100644 index 0000000..1adb884 --- /dev/null +++ b/test_resources/workflows/workflow_sdxl_turbo.json @@ -0,0 +1,84 @@ +{ + "input": { + "workflow": { + "3": { + "inputs": { + "seed": 457699577674669, + "steps": 3, + "cfg": 1.5, + "sampler_name": "euler_ancestral", + "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": "sd_xl_turbo_1.0_fp16.safetensors" + }, + "class_type": "CheckpointLoaderSimple", + "_meta": { + "title": "Load Checkpoint" + } + }, + "5": { + "inputs": { + "width": 1024, + "height": 1024, + "batch_size": 1 + }, + "class_type": "EmptyLatentImage", + "_meta": { + "title": "Empty Latent Image" + } + }, + "6": { + "inputs": { + "text": "ancient rome, 4k photo", + "clip": ["4", 1] + }, + "class_type": "CLIPTextEncode", + "_meta": { + "title": "CLIP Text Encode (Prompt)" + } + }, + "7": { + "inputs": { + "text": "text, watermark, blurry, ugly, deformed", + "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": "images/rome", + "images": ["8", 0] + }, + "class_type": "SaveImage", + "_meta": { + "title": "Save Image" + } + } + } + } +} diff --git a/test_resources/workflows/workflow_webp.json b/test_resources/workflows/workflow_webp.json new file mode 100644 index 0000000..8f9a1d5 --- /dev/null +++ b/test_resources/workflows/workflow_webp.json @@ -0,0 +1,114 @@ +{ + "input": { + "workflow": { + "3": { + "inputs": { + "seed": 416138702284529, + "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.safetensors" + }, + "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" + } + }, + "10": { + "inputs": { + "output_path": "output_path", + "filename_prefix": "filename_prefix", + "filename_delimiter": "___", + "filename_number_padding": 4, + "filename_number_start": "false", + "extension": "webp", + "quality": 10, + "lossless_webp": "false", + "overwrite_mode": "false", + "show_history": "false", + "show_history_by_prefix": "false", + "embed_workflow": "false", + "show_previews": "false", + "images": ["8", 0] + }, + "class_type": "Image Save", + "_meta": { + "title": "Image Save" + } + }, + "11": { + "inputs": { + "images": ["8", 0] + }, + "class_type": "PreviewImage", + "_meta": { + "title": "Preview Image" + } + }, + "12": { + "inputs": { + "images": ["8", 0] + }, + "class_type": "PreviewImage", + "_meta": { + "title": "Preview Image" + } + } + } + } +}