fix
This commit is contained in:
parent
6603efbe16
commit
2abc7b8375
@ -10,6 +10,7 @@ All the models are implemented in pytorch or mxnet first, and export a weights f
|
||||
|
||||
## News
|
||||
|
||||
- `7 Sep 2020`. Implement retinaface(mobilenet0.25), and got 333fps on GTX1080.
|
||||
- `28 Aug 2020`. [BaofengZan](https://github.com/BaofengZan) added a tutorial for compiling and running tensorrtx on windows.
|
||||
- `16 Aug 2020`. [upczww](https://github.com/upczww) added a python wrapper for yolov5.
|
||||
- `14 Aug 2020`. Update yolov5 to v3.0 release.
|
||||
|
||||
@ -100,7 +100,7 @@ float iou(float lbox[4], float rbox[4]) {
|
||||
return interBoxS / ((lbox[2] - lbox[0]) * (lbox[3] - lbox[1]) + (rbox[2] - rbox[0]) * (rbox[3] - rbox[1]) -interBoxS + 0.000001f);
|
||||
}
|
||||
|
||||
bool cmp(decodeplugin::Detection& a, decodeplugin::Detection& b) {
|
||||
bool cmp(const decodeplugin::Detection& a, const decodeplugin::Detection& b) {
|
||||
return a.class_confidence > b.class_confidence;
|
||||
}
|
||||
|
||||
|
||||
@ -98,7 +98,7 @@ float iou(float lbox[4], float rbox[4]) {
|
||||
return interBoxS / ((lbox[2] - lbox[0]) * (lbox[3] - lbox[1]) + (rbox[2] - rbox[0]) * (rbox[3] - rbox[1]) -interBoxS + 0.000001f);
|
||||
}
|
||||
|
||||
bool cmp(decodeplugin::Detection& a, decodeplugin::Detection& b) {
|
||||
bool cmp(const decodeplugin::Detection& a, const decodeplugin::Detection& b) {
|
||||
return a.class_confidence > b.class_confidence;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user