Skip to content

Commit

Permalink
fixed YOLOX inference error for non-square shape (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
DefTruth committed Aug 1, 2021
1 parent 3a06dad commit ac23924
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ort/cv/yolox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ void YoloX::detect(const cv::Mat &mat, std::vector<types::Boxf> &detected_boxes,
}

// Issue: https://github.com/DefTruth/lite.ai/issues/9
// Important Note: this implementation slightly different with the
// official one in order to fix the inference error for non-square input shape.
// Important Note: this implementation of Anchor generation is slightly different
// with the official one in order to fix the inference error for non-square input shape.
// Official: https://github.com/Megvii-BaseDetection/YOLOX/blob/main/demo/ncnn/cpp/yolox.cpp
/** Official implementation. It assume that the input shape must be a square.
*
Expand Down

0 comments on commit ac23924

Please sign in to comment.