Files
ComfyGen/workflows/default.json

20 lines
1.3 KiB
JSON
Raw Normal View History

{
"1": {"class_type": "CheckpointLoaderSimple", "inputs": {"ckpt_name": "{{CHECKPOINT}}"}},
"2": {"class_type": "CLIPTextEncode", "inputs": {"text": "{{POSITIVE}}", "clip": ["1", 1]}},
"3": {"class_type": "CLIPTextEncode", "inputs": {"text": "{{NEGATIVE}}", "clip": ["1", 1]}},
"4": {"class_type": "EmptyLatentImage", "inputs": {"width": 1024, "height": 1024, "batch_size": 1}},
"5": {"class_type": "KSampler", "inputs": {
"model": ["1", 0], "positive": ["2", 0], "negative": ["3", 0], "latent_image": ["4", 0],
"seed": {{SEED}}, "steps": 32, "cfg": 6.5, "sampler_name": "dpmpp_2m", "scheduler": "karras", "denoise": 1.0
}},
"6": {"class_type": "VAEDecode", "inputs": {"samples": ["5", 0], "vae": ["1", 2]}},
"7": {"class_type": "SaveImage", "inputs": {"images": ["6", 0], "filename_prefix": "{{NAME}}_raw"}},
"8": {"class_type": "Image Rembg (Remove Background)", "inputs": {
"images": ["6", 0], "transparency": true, "model": "isnet-general-use",
"post_processing": true, "only_mask": false, "alpha_matting": false,
"alpha_matting_foreground_threshold": 240, "alpha_matting_background_threshold": 10,
"alpha_matting_erode_size": 10, "background_color": "none"
}},
"9": {"class_type": "SaveImage", "inputs": {"images": ["8", 0], "filename_prefix": "{{NAME}}_cutout"}}
}