Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Set clip vision model in eval mode so it works without inference mode.

comfyanonymous719fa0866fcd
diff --git a/comfy/clip_vision.py b/comfy/clip_vision.py
index ba8a3a8d5..85b017e0c 100644
--- a/comfy/clip_vision.py
+++ b/comfy/clip_vision.py
@@ -39,6 +39,7 @@ class ClipVisionModel():
self.dtype = torch.float16
self.model = comfy.clip_model.CLIPVisionModelProjection(config, self.dtype, offload_device, comfy.ops.disable_weight_init)
+ self.model.eval()
self.patcher = comfy.model_patcher.ModelPatcher(self.model, load_device=self.load_device, offload_device=offload_device)
def load_sd(self, sd):