Method
__init__
(self, checkpoint, detector_checkpoint=None, device="cuda", **kwargs)
Source from the content-addressed store, hash-verified
| 336 | |
| 337 | class Pose2d: |
| 338 | def __init__(self, checkpoint, detector_checkpoint=None, device="cuda", **kwargs): |
| 339 | if detector_checkpoint is not None: |
| 340 | self.detector = Yolo(detector_checkpoint, device) |
| 341 | else: |
| 342 | self.detector = None |
| 343 | |
| 344 | self.model = ViTPose(checkpoint, device) |
| 345 | self.device = device |
| 346 | |
| 347 | def load_images(self, inputs): |
| 348 | """ |
Callers
nothing calls this directly
Tested by
no test coverage detected