The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Slightly better fix for #7687
comfyanonymous2c735c13b4fb
diff --git a/comfy/controlnet.py b/comfy/controlnet.pyindex ceb24c852..11483e21d 100644--- a/comfy/controlnet.py+++ b/comfy/controlnet.py@@ -736,6 +736,7 @@ def load_controlnet_state_dict(state_dict, model=None, model_options={}):return controldef load_controlnet(ckpt_path, model=None, model_options={}):+ model_options = model_options.copy()if "global_average_pooling" not in model_options:filename = os.path.splitext(ckpt_path)[0]if filename.endswith("_shuffle") or filename.endswith("_shuffle_fp16"): #TODO: smarter way of enabling global_average_pooling