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.

Better Flux vram estimation.

comfyanonymous47da42d92838
diff --git a/comfy/model_base.py b/comfy/model_base.py
index 994b414cc..9989a4c2b 100644
--- a/comfy/model_base.py
+++ b/comfy/model_base.py
@@ -710,7 +710,7 @@ class Flux(BaseModel):
dtype = self.manual_cast_dtype
#TODO: this probably needs to be tweaked
area = input_shape[0] * input_shape[2] * input_shape[3]
- return (area * comfy.model_management.dtype_size(dtype) * 0.020) * (1024 * 1024)
+ return (area * comfy.model_management.dtype_size(dtype) * 0.026) * (1024 * 1024)
else:
area = input_shape[0] * input_shape[2] * input_shape[3]
return (area * 0.3) * (1024 * 1024)