Skip to content

Commit

Permalink
[fix] Fix component not found issue by changing class YOLOV5Head to…
Browse files Browse the repository at this point in the history
… `class YOLOv5Head` (#1785)
  • Loading branch information
i-square authored Feb 23, 2023
1 parent 7b45556 commit 2a98db9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions csrc/mmdeploy/codebase/mmdet/yolo_head.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ std::array<float, 4> YOLOV3Head::yolo_decode(float box_x, float box_y, float box
return std::array<float, 4>{box_x, box_y, box_w, box_h};
}

std::array<float, 4> YOLOV5Head::yolo_decode(float box_x, float box_y, float box_w, float box_h,
std::array<float, 4> YOLOv5Head::yolo_decode(float box_x, float box_y, float box_w, float box_h,
float stride,
const std::vector<std::vector<float>>& anchor, int j,
int i, int a) const {
Expand All @@ -224,6 +224,6 @@ std::array<float, 4> YOLOV5Head::yolo_decode(float box_x, float box_y, float box
}

MMDEPLOY_REGISTER_CODEBASE_COMPONENT(MMDetection, YOLOV3Head);
MMDEPLOY_REGISTER_CODEBASE_COMPONENT(MMDetection, YOLOV5Head);
MMDEPLOY_REGISTER_CODEBASE_COMPONENT(MMDetection, YOLOv5Head);

} // namespace mmdeploy::mmdet
2 changes: 1 addition & 1 deletion csrc/mmdeploy/codebase/mmdet/yolo_head.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class YOLOV3Head : public YOLOHead {
int a) const override;
};

class YOLOV5Head : public YOLOHead {
class YOLOv5Head : public YOLOHead {
public:
using YOLOHead::YOLOHead;
std::array<float, 4> yolo_decode(float box_x, float box_y, float box_w, float box_h, float stride,
Expand Down

0 comments on commit 2a98db9

Please sign in to comment.