| 13 | } |
| 14 | |
| 15 | void DeepSort::init() { |
| 16 | objTracker = new tracker(maxCosineDist, maxBudget); |
| 17 | featureExtractor = new FeatureTensor(batchSize, imgShape, featureDim, gpuID, gLogger); |
| 18 | int ret = enginePath.find(".onnx"); |
| 19 | if (ret != -1) |
| 20 | featureExtractor->loadOnnx(enginePath); |
| 21 | else |
| 22 | featureExtractor->loadEngine(enginePath); |
| 23 | } |
| 24 | |
| 25 | DeepSort::~DeepSort() { |
| 26 | delete objTracker; |
nothing calls this directly
no test coverage detected