Files
ComfyGen/workflows/Text to Image - Game.json

23 lines
1.6 KiB
JSON
Raw Permalink Normal View History

{
"1": {"class_type": "UNETLoader", "inputs": {"unet_name": "{{UNET}}", "weight_dtype": "default"}},
"2": {"class_type": "CLIPLoader", "inputs": {"clip_name": "{{CLIP}}", "type": "{{CLIP_TYPE}}", "device": "default"}},
"3": {"class_type": "VAELoader", "inputs": {"vae_name": "{{VAE}}"}},
"4": {"class_type": "CLIPTextEncode", "inputs": {"text": "{{POSITIVE}}", "clip": ["2", 0]}},
"5": {"class_type": "CLIPTextEncode", "inputs": {"text": "{{NEGATIVE}}", "clip": ["2", 0]}},
"6": {"class_type": "EmptySD3LatentImage", "inputs": {"width": 1024, "height": 1024, "batch_size": 1}},
"7": {"class_type": "ModelSamplingAuraFlow", "inputs": {"model": ["1", 0], "shift": 3}},
"8": {"class_type": "KSampler", "inputs": {
"model": ["7", 0], "positive": ["4", 0], "negative": ["5", 0], "latent_image": ["6", 0],
"seed": {{SEED}}, "steps": 8, "cfg": 1, "sampler_name": "dpm_2", "scheduler": "karras", "denoise": 1
}},
"9": {"class_type": "VAEDecode", "inputs": {"samples": ["8", 0], "vae": ["3", 0]}},
"10": {"class_type": "SaveImage", "inputs": {"images": ["9", 0], "filename_prefix": "{{NAME}}_raw"}},
"11": {"class_type": "Image Rembg (Remove Background)", "inputs": {
"images": ["9", 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"
}},
"12": {"class_type": "SaveImage", "inputs": {"images": ["11", 0], "filename_prefix": "{{NAME}}_cutout"}}
}