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

Method preprocess

efficientdet/efficientdet.cpp:149–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149void EfficientDet::preprocess(const std::vector<cv::Mat>& imgsBatch)
150{
151 resizeDevice(m_param.batch_size, m_input_src_device, m_param.src_w, m_param.src_h,
152 m_input_resize_device, m_param.dst_w, m_param.dst_h, 114, m_dst2src);
153 bgr2rgbDevice(m_param.batch_size, m_input_resize_device, m_param.dst_w, m_param.dst_h,
154 m_input_rgb_device, m_param.dst_w, m_param.dst_h);
155}
156
157bool EfficientDet::infer()
158{

Callers 2

DetectFunction · 0.45
taskFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected