1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-02 23:14:49 +08:00

Better Flux vram estimation.

This commit is contained in:
comfyanonymous
2024-08-02 17:02:35 -04:00
parent 17bbd83176
commit 47da42d928

View File

@@ -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)