The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Nodes can now patch the unet function.
comfyanonymous67be7eb81d59
diff --git a/comfy/samplers.py b/comfy/samplers.pyindex 50fda016d..9eee25a92 100644--- a/comfy/samplers.py+++ b/comfy/samplers.py@@ -248,7 +248,10 @@ def sampling_function(model_function, x, timestep, uncond, cond, cond_scale, conc['transformer_options'] = transformer_options- output = model_function(input_x, timestep_, **c).chunk(batch_chunks)+ if 'model_function_wrapper' in model_options:+ output = model_options['model_function_wrapper'](model_function, {"input": input_x, "timestep": timestep_, "c": c, "cond_or_uncond": cond_or_uncond}).chunk(batch_chunks)+ else:+ output = model_function(input_x, timestep_, **c).chunk(batch_chunks)del input_xmodel_management.throw_exception_if_processing_interrupted()