Files
comfyui-extras/example_workflows/batch-pipeline-production-v1.json
Sebastian Krüger d6dfdd72e2 feat: initial ComfyUI workflow templates extension
- 40 workflow templates (text-to-image, image-to-video, image-to-image,
  text-to-music, upscaling, advanced, nsfw)
- Color-coded placeholder preview images using Pillow
- Template-only extension (no custom nodes)
- Preview generation script for future workflow additions

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-26 09:16:45 +01:00

248 lines
6.9 KiB
JSON

{
"last_node_id": 10,
"last_link_id": 10,
"nodes": [
{
"id": 1,
"type": "CheckpointLoaderSimple",
"pos": [50, 100],
"size": {"0": 350, "1": 100},
"flags": {},
"order": 0,
"mode": 0,
"properties": {"Node name for S&R": "CheckpointLoaderSimple"},
"widgets_values": ["sd_xl_base_1.0.safetensors"],
"title": "SDXL Base Loader",
"outputs": [
{"name": "MODEL", "type": "MODEL", "links": [1], "slot_index": 0},
{"name": "CLIP", "type": "CLIP", "links": [2, 3], "slot_index": 1},
{"name": "VAE", "type": "VAE", "links": [4], "slot_index": 2}
]
},
{
"id": 2,
"type": "CLIPTextEncode",
"pos": [450, 100],
"size": {"0": 400, "1": 200},
"flags": {},
"order": 1,
"mode": 0,
"properties": {"Node name for S&R": "CLIPTextEncode"},
"widgets_values": ["A beautiful landscape"],
"title": "API Base Prompt",
"inputs": [
{"name": "clip", "type": "CLIP", "link": 2}
],
"outputs": [
{"name": "CONDITIONING", "type": "CONDITIONING", "links": [5], "slot_index": 0}
]
},
{
"id": 3,
"type": "CLIPTextEncode",
"pos": [450, 350],
"size": {"0": 400, "1": 200},
"flags": {},
"order": 2,
"mode": 0,
"properties": {"Node name for S&R": "CLIPTextEncode"},
"widgets_values": ["blurry, low quality"],
"title": "API Negative Prompt",
"inputs": [
{"name": "clip", "type": "CLIP", "link": 3}
],
"outputs": [
{"name": "CONDITIONING", "type": "CONDITIONING", "links": [6], "slot_index": 0}
]
},
{
"id": 4,
"type": "EmptyLatentImage",
"pos": [450, 600],
"size": {"0": 315, "1": 106},
"flags": {},
"order": 3,
"mode": 0,
"properties": {"Node name for S&R": "EmptyLatentImage"},
"widgets_values": [1024, 1024, 4],
"title": "API Latent Config (Batch=4)",
"outputs": [
{"name": "LATENT", "type": "LATENT", "links": [7], "slot_index": 0}
]
},
{
"id": 5,
"type": "KSampler",
"pos": [900, 100],
"size": {"0": 315, "1": 474},
"flags": {},
"order": 4,
"mode": 0,
"properties": {"Node name for S&R": "KSampler"},
"widgets_values": [42, "fixed", 20, 7.0, "euler", "normal", 1],
"title": "Batch Sampler (4 variations)",
"inputs": [
{"name": "model", "type": "MODEL", "link": 1},
{"name": "positive", "type": "CONDITIONING", "link": 5},
{"name": "negative", "type": "CONDITIONING", "link": 6},
{"name": "latent_image", "type": "LATENT", "link": 7}
],
"outputs": [
{"name": "LATENT", "type": "LATENT", "links": [8], "slot_index": 0}
]
},
{
"id": 6,
"type": "VAEDecode",
"pos": [1270, 100],
"size": {"0": 210, "1": 46},
"flags": {},
"order": 5,
"mode": 0,
"properties": {"Node name for S&R": "VAEDecode"},
"title": "VAE Decode Batch",
"inputs": [
{"name": "samples", "type": "LATENT", "link": 8},
{"name": "vae", "type": "VAE", "link": 4}
],
"outputs": [
{"name": "IMAGE", "type": "IMAGE", "links": [9, 10], "slot_index": 0}
]
},
{
"id": 7,
"type": "PreviewImage",
"pos": [1530, 100],
"size": {"0": 400, "1": 400},
"flags": {},
"order": 6,
"mode": 0,
"properties": {"Node name for S&R": "PreviewImage"},
"title": "Preview All Variations",
"inputs": [
{"name": "images", "type": "IMAGE", "link": 9}
]
},
{
"id": 8,
"type": "SaveImage",
"pos": [1530, 550],
"size": {"0": 400, "1": 100},
"flags": {},
"order": 7,
"mode": 0,
"properties": {"Node name for S&R": "SaveImage"},
"widgets_values": ["batch_output"],
"title": "API Save All",
"inputs": [
{"name": "images", "type": "IMAGE", "link": 10}
]
}
],
"links": [
[1, 1, 0, 5, 0, "MODEL"],
[2, 1, 1, 2, 0, "CLIP"],
[3, 1, 1, 3, 0, "CLIP"],
[4, 1, 2, 6, 1, "VAE"],
[5, 2, 0, 5, 1, "CONDITIONING"],
[6, 3, 0, 5, 2, "CONDITIONING"],
[7, 4, 0, 5, 3, "LATENT"],
[8, 5, 0, 6, 0, "LATENT"],
[9, 6, 0, 7, 0, "IMAGE"],
[10, 6, 0, 8, 0, "IMAGE"]
],
"groups": [],
"config": {},
"extra": {
"workflow_info": {
"name": "Batch Pipeline Production",
"version": "1.0.0",
"description": "Batch generation pipeline for multiple variations. Generate 4 images simultaneously with different seeds for rapid iteration using Stable Diffusion XL.",
"category": "advanced",
"tags": [
"batch",
"multi-generation",
"variations",
"advanced",
"production",
"flux"
],
"requirements": {
"models": ["stable-diffusion-xl-base-1.0"],
"custom_nodes": [],
"vram_min": "20GB",
"vram_recommended": "24GB"
},
"parameters": {
"prompt": {
"node_id": 2,
"widget_index": 0,
"type": "string",
"required": true,
"default": "A beautiful landscape",
"description": "Text description of desired image"
},
"negative_prompt": {
"node_id": 3,
"widget_index": 0,
"type": "string",
"required": false,
"default": "blurry, low quality",
"description": "Undesired elements to avoid"
},
"batch_count": {
"node_id": 4,
"widget_index": 2,
"type": "integer",
"required": false,
"default": 4,
"min": 1,
"max": 8,
"description": "Number of variations to generate (batch size)"
},
"seed": {
"node_id": 5,
"widget_index": 0,
"type": "integer",
"required": false,
"default": 42,
"min": 0,
"max": 4294967295,
"description": "Random seed for reproducibility"
},
"steps": {
"node_id": 5,
"widget_index": 2,
"type": "integer",
"required": false,
"default": 20,
"min": 15,
"max": 50,
"description": "Number of sampling steps (20-30 recommended for SDXL)"
}
},
"outputs": {
"images": {
"node_id": 8,
"type": "image",
"format": "PNG",
"count": 4,
"resolution": "1024x1024 (configurable)"
}
},
"performance": {
"avg_generation_time": "45-60 seconds for 4 images (20 steps)",
"vram_usage": "~20-24GB (depends on batch size)",
"gpu_utilization": "95-100%"
},
"use_cases": [
"Rapid prototyping with multiple variations",
"Concept exploration and A/B testing",
"Client presentations with options",
"Quick iteration workflows"
]
}
},
"version": 0.4
}