MCPcopy
hub / github.com/yangchris11/samurai / reset_predictor

Method reset_predictor

sam2/sam2/sam2_image_predictor.py:459–466  ·  view source on GitHub ↗

Resets the image embeddings and other state variables.

(self)

Source from the content-addressed store, hash-verified

457 return self.model.device
458
459 def reset_predictor(self) -> None:
460 """
461 Resets the image embeddings and other state variables.
462 """
463 self._is_image_set = False
464 self._features = None
465 self._orig_hw = None
466 self._is_batch = False

Callers 3

set_imageMethod · 0.95
set_image_batchMethod · 0.95
_process_cropMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected