(self, *args, **kwargs)
| 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.""" |
nothing calls this directly
no outgoing calls
no test coverage detected