Set the image for the predictor.
(self, img)
| 894 | return updated_image_path |
| 895 | |
| 896 | def set_image(self, img) -> None: |
| 897 | """Set the image for the predictor.""" |
| 898 | with torch.cuda.amp.autocast(): |
| 899 | self.sam_predictor.set_image(img) |
| 900 | |
| 901 | def show_points(self, coords: np.ndarray, labels: np.ndarray, |
| 902 | image: np.ndarray) -> np.ndarray: |
no outgoing calls
no test coverage detected