The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Fix regression with inpaint model.
comfyanonymous9a7619b72de8
diff --git a/comfy/samplers.py b/comfy/samplers.pyindex 47f347787..0453c1f6f 100644--- a/comfy/samplers.py+++ b/comfy/samplers.py@@ -599,6 +599,9 @@ def sample(model, noise, positive, negative, cfg, device, sampler, sigmas, modelcalculate_start_end_timesteps(model, negative)calculate_start_end_timesteps(model, positive)+ if latent_image is not None:+ latent_image = model.process_latent_in(latent_image)+if hasattr(model, 'extra_conds'):positive = encode_model_conds(model.extra_conds, positive, noise, device, "positive", latent_image=latent_image, denoise_mask=denoise_mask)negative = encode_model_conds(model.extra_conds, negative, noise, device, "negative", latent_image=latent_image, denoise_mask=denoise_mask)@@ -614,10 +617,6 @@ def sample(model, noise, positive, negative, cfg, device, sampler, sigmas, modelapply_empty_x_to_equal_area(list(filter(lambda c: c.get('control_apply_to_uncond', False) == True, positive)), negative, 'control', lambda cond_cnets, x: cond_cnets[x])apply_empty_x_to_equal_area(positive, negative, 'gligen', lambda cond_cnets, x: cond_cnets[x])- if latent_image is not None:- latent_image = model.process_latent_in(latent_image)--extra_args = {"cond":positive, "uncond":negative, "cond_scale": cfg, "model_options": model_options, "seed":seed}samples = sampler.sample(model_wrap, sigmas, extra_args, callback, noise, latent_image, denoise_mask, disable_pbar)