Loading tutorials
SamPredictor workflow from the earlier chapters (set_image, then predict). You should also know what an image embedding is and have a rough idea of how a mask decoder produces output. Here you will see why a single point can legitimately mean several things7 min readSamPredictor from the official segment_anything package. It assumes you know basic Python and NumPy, can load a PyTorch checkpoint, and know what the SAM image encoder, prompt encoder, and mask decoder do. Later chapters cover point and box prompting 5 min readSamPredictor. You should already know that set_image runs the heavy image encoder once and that predict runs only the prompt encoder and5 min readSamPredictor workflow from earlier chapters.6 min readSamPredictor with point and box prompts, and that you know SAM returns up to three candidate masks per prompt. Here you will use SamAutomaticMaskGenerator to produce masks for a whole image without a human supplying prompts. You will also learn how it fil5 min readSamAutomaticMaskGenerator. You should also be comfortable reading JSON and NumPy arrays. No training code appears here. The goal is to understand where the training data came from and wh6 min readSamPredictor with point and box prompts, that you know SAM's three parts (image encoder, prompt encoder, mask decoder), and that you have used SamAutomaticMaskGenerator. Here you will learn where SAM breaks, how to spot each failure, and what to change in your co7 min readSamPredictor. It also assumes you can run PyTorch code on a GPU. By the end you should be able to explain what SAM 2 adds to SAM, run a video propagation loop, and decide when the orig6 min read