From e7dc11e612566efea552b354f000a75031de8e32 Mon Sep 17 00:00:00 2001 From: unecologeek Date: Sat, 23 Aug 2025 01:27:19 +0200 Subject: [PATCH] import numpy Float64DType to avoid Hunyuan Avatar to crash import numpy Float64DType to avoid Hunyuan Avatar to crash if your numpy version is < 2.0 --- comfy/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/comfy/utils.py b/comfy/utils.py index fab28cf08..406d4401a 100644 --- a/comfy/utils.py +++ b/comfy/utils.py @@ -41,7 +41,8 @@ if hasattr(torch.serialization, "add_safe_globals"): # TODO: this was added in from numpy.core.multiarray import scalar from numpy import dtype - from numpy.dtypes import Float64DType + import numpy as np + Float64DType = np.float64 from _codecs import encode torch.serialization.add_safe_globals([ModelCheckpoint, scalar, dtype, Float64DType, encode])