|
@@ -119,21 +119,23 @@ void ClassifierModelImpl::preprocess(int ibatch, const tensor::Image &image, aff
|
|
|
checkRuntime(cudaStreamSynchronize(stream_));
|
|
|
}
|
|
|
|
|
|
-virtual Result ClassifierModelImpl::forward(const tensor::Image &image, void *stream)
|
|
|
+Result ClassifierModelImpl::forward(const tensor::Image &image, void *stream)
|
|
|
{
|
|
|
return std::monostate{};
|
|
|
}
|
|
|
-virtual Result ClassifierModelImpl::forward(const tensor::Image &image, int slice_width, int slice_height, float overlap_width_ratio, float overlap_height_ratio, void *stream)
|
|
|
+
|
|
|
+Result ClassifierModelImpl::forward(const tensor::Image &image, int slice_width, int slice_height, float overlap_width_ratio, float overlap_height_ratio, void *stream)
|
|
|
{
|
|
|
return std::monostate{};
|
|
|
}
|
|
|
-virtual Result ClassifierModelImpl::forward(const tensor::Image &image, data::BoxArray& boxes, void *stream)
|
|
|
+
|
|
|
+Result ClassifierModelImpl::forward(const tensor::Image &image, data::BoxArray& boxes, void *stream)
|
|
|
{
|
|
|
std::lock_guard<std::mutex> lock(mutex_);
|
|
|
std::vector<data::Box*> classfier_boxes_ptr;
|
|
|
for (auto& box : boxes)
|
|
|
{
|
|
|
- if (std::find(box.label, class_names_.begin(), class_names_.end()) != class_names_.end())
|
|
|
+ if (std::find(class_names_.begin(), class_names_.end(), box.label) != class_names_.end())
|
|
|
{
|
|
|
classfier_boxes_ptr.push_back(&box);
|
|
|
}
|