Skip to content

Commit

Permalink
fix mns of mnn-prj and README
Browse files Browse the repository at this point in the history
  • Loading branch information
ywlife committed Apr 28, 2020
1 parent c932596 commit b82ec0c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ CenterFace-small|4.4ms|5.7ms|7.3ms

### Discussion

Welcome to join in **QQ Group(912759877)** for more discussion, including but not limited to face detection, face anti-spoofing and so on.
Welcome to join in **QQ Group(229042802)** for more discussion, including but not limited to face detection, face anti-spoofing and so on.

### Author
- [ywlife](https://github.com/ywlife)
Expand Down
2 changes: 1 addition & 1 deletion prj-mnn/cpp/centerface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ int Centerface::Detect(const cv::Mat & img_src, std::vector<FaceInfo>* faces) {
}
std::sort(faces_tmp.begin(), faces_tmp.end(),
[](const FaceInfo& a, const FaceInfo& b) {
return a.score_ < b.score_;
return a.score_ > b.score_;
});
NMS(faces_tmp, faces, nmsThreshold_);
std::cout << "end detect." << std::endl;
Expand Down
9 changes: 7 additions & 2 deletions prj-tensorrt/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
### The Python version of CenterFace with TensorRT

## requirement
- TensorRT
- TensorRT 6.0.1+
- python 3.7
- opencv

## usage
* cd CenterFace/prj-tensorrt
* python demo.py
* python demo.py

- [Tutorials](https://zhuanlan.zhihu.com/p/106774468): https://zhuanlan.zhihu.com/p/106774468


0 comments on commit b82ec0c

Please sign in to comment.