Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
yolov5_migraphx
Commits
fe46493f
Commit
fe46493f
authored
Jun 19, 2023
by
shizhm
Browse files
完善文档
parent
38a0aee1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Doc/Tutorial_Cpp.md
Doc/Tutorial_Cpp.md
+2
-2
No files found.
Doc/Tutorial_Cpp.md
View file @
fe46493f
...
...
@@ -131,7 +131,7 @@ YOLOV5的MIGraphX推理结果inferenceResults是一个std::vector< migraphx::arg
-
第二步根据confidenceThreshold阈值进行筛选,当满足第一步阈值anchor的最大置信度得分maxClassScore大于该阈值,则进一步获取当前anchor的坐标信息和预测物体类别信息,小于该阈值则不做处理。
```
ErrorCode DetectorYOLOV5::Detect(const cv::Mat &srcImage, std::vector<ResultOfDetection> &resultsOfDetection, bool dynamic)
ErrorCode DetectorYOLOV5::Detect(const cv::Mat &srcImage,
std::vector<std::size_t> &relInputShape,
std::vector<ResultOfDetection> &resultsOfDetection, bool dynamic)
{
...
...
...
@@ -187,7 +187,7 @@ ErrorCode DetectorYOLOV5::Detect(const cv::Mat &srcImage, std::vector<ResultOfDe
为了消除重叠锚框,输出最终的YOLOV5目标检测结果,执行非极大值抑制对筛选之后的anchor进行处理,最后保存检测结果到resultsOfDetection中。
```
ErrorCode DetectorYOLOV5::Detect(const cv::Mat &srcImage, std::vector<ResultOfDetection> &resultsOfDetection, bool dynamic)
ErrorCode DetectorYOLOV5::Detect(const cv::Mat &srcImage,
std::vector<std::size_t> &relInputShape,
std::vector<ResultOfDetection> &resultsOfDetection, bool dynamic)
{
...
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment