The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
fix(caching): treat bytes as hashable (#10567)
EverNebula88df172790b8
diff --git a/comfy_execution/caching.py b/comfy_execution/caching.pyindex b498f43e7..e077f78b0 100644--- a/comfy_execution/caching.py+++ b/comfy_execution/caching.py@@ -53,7 +53,7 @@ class Unhashable:def to_hashable(obj):# So that we don't infinitely recurse since frozenset and tuples# are Sequences.- if isinstance(obj, (int, float, str, bool, type(None))):+ if isinstance(obj, (int, float, str, bool, bytes, type(None))):return objelif isinstance(obj, Mapping):return frozenset([(to_hashable(k), to_hashable(v)) for k, v in sorted(obj.items())])