Skip to content

Commit 8098584

Browse files
ensure type correct
Signed-off-by: Yiheng Wang <[email protected]>
1 parent 987c242 commit 8098584

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/vista3d/scripts/evaluator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def check_prompts_format(self, label_prompt, points, point_labels):
167167
if not np.all([(x < 255).item() for x in label_prompt]):
168168
raise ValueError("Current bundle only supports label prompt smaller than 255.")
169169
if points is None:
170-
supported_list = {i + 1 for i in range(132)} - {16, 18, 129, 130, 131}
170+
supported_list = list({i + 1 for i in range(132)} - {16, 18, 129, 130, 131})
171171
if not np.all([x in supported_list for x in label_prompt]):
172172
raise ValueError("Undefined label prompt detected. Provide point prompts for zero-shot.")
173173
else:

0 commit comments

Comments
 (0)