Skip to content

Commit

Permalink
Merge branch 'main' into add_figs
Browse files Browse the repository at this point in the history
  • Loading branch information
holgerroth authored Oct 24, 2024
2 parents 13563c9 + 788bd21 commit b82fcf7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions m3/demo/experts/expert_monai_vista3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,12 @@ def run(
raise ValueError(f"Label group {arg_matches[0]} is not accepted by the VISTA-3D model.")

if arg_matches[0] != "everything":
vista3d_prompts = {"classes": list(label_groups[arg_matches[0]].keys())}
vista3d_prompts = [cls_idx for _, cls_idx in label_groups[arg_matches[0]].items()]

# Trigger the VISTA-3D model
input_dict = {"image": img_file}
if vista3d_prompts is not None:
input_dict["prompts"] = vista3d_prompts
input_dict["label_prompt"] = vista3d_prompts

sys.path = [self.bundle_root] + sys.path

Expand Down
File renamed without changes.

0 comments on commit b82fcf7

Please sign in to comment.