MCPcopy Create free account
hub / github.com/ModelTC/LightX2V / __init__

Method __init__

tools/preprocess/pose2d.py:338–345  ·  view source on GitHub ↗
(self, checkpoint, detector_checkpoint=None, device="cuda", **kwargs)

Source from the content-addressed store, hash-verified

336
337class 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

Calls 2

YoloClass · 0.85
ViTPoseClass · 0.85

Tested by

no test coverage detected