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 issue with not freeing enough memory when sampling.
comfyanonymousbe9c5e25bcfb
diff --git a/comfy/sample.py b/comfy/sample.pyindex 50e596749..d7292024e 100644--- a/comfy/sample.py+++ b/comfy/sample.py@@ -78,7 +78,7 @@ def sample(model, noise, steps, cfg, sampler_name, scheduler, positive, negativereal_model = Nonemodels = get_additional_models(positive, negative)- comfy.model_management.load_models_gpu([model] + models, comfy.model_management.batch_area_memory(noise.shape[2] * noise.shape[3]))+ comfy.model_management.load_models_gpu([model] + models, comfy.model_management.batch_area_memory(noise.shape[0] * noise.shape[2] * noise.shape[3]))real_model = model.modelnoise = noise.to(device)