mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-08-02 05:00:03 +08:00
Fix Flux2 reference image mem estimation.
This commit is contained in:
parent
90b3995ec8
commit
1547d4e1d3
@ -926,7 +926,7 @@ class Flux(BaseModel):
|
|||||||
out = {}
|
out = {}
|
||||||
ref_latents = kwargs.get("reference_latents", None)
|
ref_latents = kwargs.get("reference_latents", None)
|
||||||
if ref_latents is not None:
|
if ref_latents is not None:
|
||||||
out['ref_latents'] = list([1, 16, sum(map(lambda a: math.prod(a.size()), ref_latents)) // 16])
|
out['ref_latents'] = list([1, 16, sum(map(lambda a: math.prod(a.size()[2:]), ref_latents))])
|
||||||
return out
|
return out
|
||||||
|
|
||||||
class Flux2(Flux):
|
class Flux2(Flux):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user