-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update comfyui example to use flux (#874)
- Loading branch information
Showing
5 changed files
with
127 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,107 +1,152 @@ | ||
{ | ||
"1": { | ||
"5": { | ||
"inputs": { | ||
"image": "yosemite_inpaint_example.png", | ||
"upload": "image" | ||
"width": 1024, | ||
"height": 1024, | ||
"batch_size": 1 | ||
}, | ||
"class_type": "LoadImage", | ||
"class_type": "EmptyLatentImage", | ||
"_meta": { | ||
"title": "Load Image" | ||
"title": "Empty Latent Image" | ||
} | ||
}, | ||
"2": { | ||
"6": { | ||
"inputs": { | ||
"ckpt_name": "512-inpainting-ema.safetensors" | ||
"text": "Surreal dreamscape with floating islands, upside-down waterfalls, and impossible geometric structures, all bathed in a soft, ethereal light", | ||
"clip": ["11", 0] | ||
}, | ||
"class_type": "CheckpointLoaderSimple", | ||
"class_type": "CLIPTextEncode", | ||
"_meta": { | ||
"title": "Load Checkpoint" | ||
"title": "CLIP Text Encode (Prompt)" | ||
} | ||
}, | ||
"3": { | ||
"8": { | ||
"inputs": { | ||
"text": "closeup photograph of a white heron in the yosemite national park mountains nature", | ||
"clip": ["2", 1] | ||
"samples": ["13", 0], | ||
"vae": ["10", 0] | ||
}, | ||
"class_type": "CLIPTextEncode", | ||
"class_type": "VAEDecode", | ||
"_meta": { | ||
"title": "CLIP Text Encode (Prompt)" | ||
"title": "VAE Decode" | ||
} | ||
}, | ||
"5": { | ||
"9": { | ||
"inputs": { | ||
"text": "watermark, text", | ||
"clip": ["2", 1] | ||
"filename_prefix": "ComfyUI", | ||
"images": ["26", 0] | ||
}, | ||
"class_type": "CLIPTextEncode", | ||
"class_type": "SaveImage", | ||
"_meta": { | ||
"title": "CLIP Text Encode (Prompt)" | ||
"title": "Save Image" | ||
} | ||
}, | ||
"6": { | ||
"10": { | ||
"inputs": { | ||
"seed": 655430128391471, | ||
"steps": 20, | ||
"cfg": 8, | ||
"sampler_name": "uni_pc_bh2", | ||
"scheduler": "normal", | ||
"denoise": 1, | ||
"model": ["2", 0], | ||
"positive": ["3", 0], | ||
"negative": ["5", 0], | ||
"latent_image": ["9", 0] | ||
"vae_name": "ae.safetensors" | ||
}, | ||
"class_type": "KSampler", | ||
"class_type": "VAELoader", | ||
"_meta": { | ||
"title": "KSampler" | ||
"title": "Load VAE" | ||
} | ||
}, | ||
"7": { | ||
"11": { | ||
"inputs": { | ||
"samples": ["6", 0], | ||
"vae": ["2", 2] | ||
"clip_name1": "t5xxl_fp8_e4m3fn.safetensors", | ||
"clip_name2": "clip_l.safetensors", | ||
"type": "flux" | ||
}, | ||
"class_type": "VAEDecode", | ||
"class_type": "DualCLIPLoader", | ||
"_meta": { | ||
"title": "VAE Decode" | ||
"title": "DualCLIPLoader" | ||
} | ||
}, | ||
"9": { | ||
"12": { | ||
"inputs": { | ||
"grow_mask_by": 6, | ||
"pixels": ["1", 0], | ||
"vae": ["2", 2], | ||
"mask": ["1", 1] | ||
"unet_name": "flux1-schnell.safetensors", | ||
"weight_dtype": "fp8_e4m3fn" | ||
}, | ||
"class_type": "VAEEncodeForInpaint", | ||
"class_type": "UNETLoader", | ||
"_meta": { | ||
"title": "VAE Encode (for Inpainting)" | ||
"title": "Load Diffusion Model" | ||
} | ||
}, | ||
"11": { | ||
"13": { | ||
"inputs": { | ||
"filename_prefix": "ComfyUI", | ||
"images": ["7", 0] | ||
"noise": ["25", 0], | ||
"guider": ["22", 0], | ||
"sampler": ["16", 0], | ||
"sigmas": ["17", 0], | ||
"latent_image": ["5", 0] | ||
}, | ||
"class_type": "SaveImage", | ||
"class_type": "SamplerCustomAdvanced", | ||
"_meta": { | ||
"title": "Save Image" | ||
"title": "SamplerCustomAdvanced" | ||
} | ||
}, | ||
"12": { | ||
"16": { | ||
"inputs": { | ||
"action": "resize only", | ||
"sampler_name": "euler" | ||
}, | ||
"class_type": "KSamplerSelect", | ||
"_meta": { | ||
"title": "KSamplerSelect" | ||
} | ||
}, | ||
"17": { | ||
"inputs": { | ||
"scheduler": "simple", | ||
"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": 857914953840122 | ||
}, | ||
"class_type": "RandomNoise", | ||
"_meta": { | ||
"title": "RandomNoise" | ||
} | ||
}, | ||
"26": { | ||
"inputs": { | ||
"action": "crop to ratio", | ||
"smaller_side": 0, | ||
"larger_side": 0, | ||
"scale_factor": 0, | ||
"resize_mode": "reduce size only", | ||
"side_ratio": "4:3", | ||
"scale_factor": 2, | ||
"resize_mode": "any", | ||
"side_ratio": "1:1", | ||
"crop_pad_position": 0.5, | ||
"pad_feathering": 20 | ||
"pad_feathering": 20, | ||
"pixels": ["8", 0] | ||
}, | ||
"class_type": "ImageResize", | ||
"_meta": { | ||
"title": "Image Resize" | ||
} | ||
}, | ||
"27": { | ||
"inputs": { | ||
"images": ["8", 0] | ||
}, | ||
"class_type": "PreviewImage", | ||
"_meta": { | ||
"title": "Preview Image" | ||
} | ||
} | ||
} |