From 849bbcb8c9bd9b53c636243675d0a34625168788 Mon Sep 17 00:00:00 2001 From: Tim Pietrusky Date: Sun, 11 Aug 2024 21:44:47 +0200 Subject: [PATCH] test: example workflow for FLUX.1-dev --- .../workflows/workflow_flux1_dev.json | 130 ++++++++++++++++++ 1 file changed, 130 insertions(+) create mode 100644 test_resources/workflows/workflow_flux1_dev.json diff --git a/test_resources/workflows/workflow_flux1_dev.json b/test_resources/workflows/workflow_flux1_dev.json new file mode 100644 index 0000000..9d6c444 --- /dev/null +++ b/test_resources/workflows/workflow_flux1_dev.json @@ -0,0 +1,130 @@ +{ + "input": { + "workflow": { + "5": { + "inputs": { + "width": 1024, + "height": 1024, + "batch_size": 1 + }, + "class_type": "EmptyLatentImage", + "_meta": { + "title": "Empty Latent Image" + } + }, + "6": { + "inputs": { + "text": "grey cat wearing a harry potter hat and programming in javascript in its ultramodern computer", + "clip": ["11", 0] + }, + "class_type": "CLIPTextEncode", + "_meta": { + "title": "CLIP Text Encode (Prompt)" + } + }, + "8": { + "inputs": { + "samples": ["13", 0], + "vae": ["10", 0] + }, + "class_type": "VAEDecode", + "_meta": { + "title": "VAE Decode" + } + }, + "9": { + "inputs": { + "filename_prefix": "ComfyUI", + "images": ["8", 0] + }, + "class_type": "SaveImage", + "_meta": { + "title": "Save Image" + } + }, + "10": { + "inputs": { + "vae_name": "ae.safetensors" + }, + "class_type": "VAELoader", + "_meta": { + "title": "Load VAE" + } + }, + "11": { + "inputs": { + "clip_name1": "t5xxl_fp8_e4m3fn.safetensors", + "clip_name2": "clip_l.safetensors", + "type": "flux" + }, + "class_type": "DualCLIPLoader", + "_meta": { + "title": "DualCLIPLoader" + } + }, + "12": { + "inputs": { + "unet_name": "flux1-dev.safetensors", + "weight_dtype": "fp8_e4m3fn" + }, + "class_type": "UNETLoader", + "_meta": { + "title": "Load Diffusion Model" + } + }, + "13": { + "inputs": { + "noise": ["25", 0], + "guider": ["22", 0], + "sampler": ["16", 0], + "sigmas": ["17", 0], + "latent_image": ["5", 0] + }, + "class_type": "SamplerCustomAdvanced", + "_meta": { + "title": "SamplerCustomAdvanced" + } + }, + "16": { + "inputs": { + "sampler_name": "euler" + }, + "class_type": "KSamplerSelect", + "_meta": { + "title": "KSamplerSelect" + } + }, + "17": { + "inputs": { + "scheduler": "sgm_uniform", + "steps": 4, + "denoise": 1, + "model": ["12", 0] + }, + "class_type": "BasicScheduler", + "_meta": { + "title": "BasicScheduler" + } + }, + "22": { + "inputs": { + "model": ["12", 0], + "conditioning": ["6", 0] + }, + "class_type": "BasicGuider", + "_meta": { + "title": "BasicGuider" + } + }, + "25": { + "inputs": { + "noise_seed": 108076821791990 + }, + "class_type": "RandomNoise", + "_meta": { + "title": "RandomNoise" + } + } + } + } +}