MCPcopy Create free account
hub / github.com/FoundationVision/ByteTrack / __init__

Method __init__

deploy/ONNXRuntime/onnx_inference.py:75–80  ·  view source on GitHub ↗
(self, args)

Source from the content-addressed store, hash-verified

73
74class Predictor(object):
75 def __init__(self, args):
76 self.rgb_means = (0.485, 0.456, 0.406)
77 self.std = (0.229, 0.224, 0.225)
78 self.args = args
79 self.session = onnxruntime.InferenceSession(args.model)
80 self.input_shape = tuple(map(int, args.input_shape.split(',')))
81
82 def inference(self, ori_img, timer):
83 img_info = {"id": 0}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected