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.

Fix memory estimation bug with kontext. (#8709)

comfyanonymousc36be0ea09dd
diff --git a/comfy/model_base.py b/comfy/model_base.py
index fcdfde378..4392355ea 100644
--- a/comfy/model_base.py
+++ b/comfy/model_base.py
@@ -816,7 +816,7 @@ class PixArt(BaseModel):
class Flux(BaseModel):
def __init__(self, model_config, model_type=ModelType.FLUX, device=None, unet_model=comfy.ldm.flux.model.Flux):
super().__init__(model_config, model_type, device=device, unet_model=unet_model)
- self.memory_usage_factor_conds = ("kontext",)
+ self.memory_usage_factor_conds = ("ref_latents",)
def concat_cond(self, **kwargs):
try: