(self, checkpoint, device="cuda", **kwargs)
| 304 | |
| 305 | class 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] |