MCPcopy Create free account
hub / github.com/FeiYull/TensorRT-Alpha / setParameters

Function setParameters

efficientdet/app_efficientdet.cpp:5–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#include"efficientdet.h"
4
5void setParameters(utils::InitParameter& initParameters)
6{
7 initParameters.class_names = utils::dataSets::coco91;
8 initParameters.num_class = 91; // for coco91
9
10 initParameters.batch_size = 8;
11 // efficientdet d0
12 initParameters.dst_h = 512;
13 initParameters.dst_w = 512;
14
15 // efficientdet d1
16 /*initParameters.dst_h = 640;
17 initParameters.dst_w = 640;*/
18
19 // efficientdet d2
20 /*initParameters.dst_h = 768;
21 initParameters.dst_w = 768;*/
22
23 // efficientdet d3
24 /*initParameters.dst_h = 896;
25 initParameters.dst_w = 896;*/
26
27 // efficientdet d4 d5 d6 ...
28
29 initParameters.input_output_names = { "input", "num_detections", "detection_boxes", "detection_scores", "detection_classes", };
30 initParameters.conf_thresh = 0.45f;
31 initParameters.topK = 100; // be determined while exporting the onnx!
32 initParameters.save_path = "";
33}
34
35void task(EfficientDet& efficient_det, const utils::InitParameter& param, std::vector<cv::Mat>& imgsBatch, const int& delayTime, const int& batchi,
36 const bool& isShow, const bool& isSave)

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected