mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-25 15:55:18 +00:00
Better Flux vram estimation.
This commit is contained in:
parent
17bbd83176
commit
47da42d928
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user