From 0175868ae75e5ed99e74ddd519d18788f2fdef8b Mon Sep 17 00:00:00 2001 From: Linfeng Date: Fri, 10 May 2024 19:00:27 -0400 Subject: [PATCH] fix hash error - override hash func again --- predicators/structs.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/predicators/structs.py b/predicators/structs.py index f5363e9f3b..aa011b6f0f 100644 --- a/predicators/structs.py +++ b/predicators/structs.py @@ -331,6 +331,10 @@ class VLMPredicate(Predicate): # An optional prompt additionally provided for each VLM predicate prompt: Optional[str] = None + def __hash__(self) -> int: + """Have to add this to override the default hash method again.""" + return self._hash + def holds(self, state: State, objects: Sequence[Object]) -> bool: """Public method for getting predicate value.