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

Method __init__

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

Source from the content-addressed store, hash-verified

304
305class ViTPose(SimpleOnnxInference):
306 def __init__(self, checkpoint, device="cuda", **kwargs):
307 super(ViTPose, self).__init__(checkpoint, device=device)
308
309 def forward(self, img, center, scale, **kwargs):
310 heatmaps = self.session.run([], {self.session.get_inputs()[0].name: img})[0]

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected