Loading tutorials
segment_anything, opencv-python, and numpy packages, plus a downloaded SAM checkpoint.2 min readsegment_anything package installed. You also need a downloaded SAM checkpoint, such as sam_vit_b_01ec64.pth.1 min readsam_model_registry, call SamPredictor.set_image, and run predict with point and box prompts. You should also know NumPy array shapes.1 min read