MCPcopy Create free account
hub / github.com/ImprintLab/Medical-SAM2 / forward

Method forward

sam2_train/modeling/sam2_base.py:195–199  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

193 return next(self.parameters()).device
194
195 def forward(self, *args, **kwargs):
196 raise NotImplementedError(
197 "Please use the corresponding methods in SAM2VideoPredictor for inference."
198 "See notebooks/video_predictor_example.ipynb for an example."
199 )
200
201 def _build_sam_heads(self):
202 """Build SAM-style prompt encoder and mask decoder."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected