Skip to content

Commit

Permalink
chore: added example workflows for webp and sdxl-turbo
Browse files Browse the repository at this point in the history
  • Loading branch information
TimPietrusky committed Jun 4, 2024
1 parent 164da59 commit 81c0dd3
Show file tree
Hide file tree
Showing 2 changed files with 198 additions and 0 deletions.
84 changes: 84 additions & 0 deletions test_resources/workflows/workflow_sdxl_turbo.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
}
}
114 changes: 114 additions & 0 deletions test_resources/workflows/workflow_webp.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
}
}

0 comments on commit 81c0dd3

Please sign in to comment.