-
Notifications
You must be signed in to change notification settings - Fork 456
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add model SCRFD support #68
Conversation
ziqi-jin
commented
Aug 3, 2022
•
edited
Loading
edited
- Face detection model SCRFD
- supply the decoding process when the exported ONNX file includes face key points or not
- add is_dynamic support for all yolo series
} | ||
|
||
void SCRFD::GeneratePoints() { | ||
if (center_points_is_update_ && !is_dynamic_input_) return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里也改成统一的风格吧
if (center_points_is_update_ && !is_dynamic_input_) {
return;
}
float* landmarks_ptr = | ||
static_cast<float*>(infer_result.at(f + 2 * fmc).Data()); | ||
// landmarks | ||
const float* kps_offsets = landmarks_ptr + i * 10; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这句也应该是用landmarks_per_face * 2来计算地址
const float* kps_offsets = landmarks_ptr + i * 10;
// 改成
const float* kps_offsets = landmarks_ptr + i *(landmarks_per_face * 2);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
确实
bool center_points_is_update_; | ||
|
||
// feature map count | ||
unsigned int fmc; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fmc 和 center_points都是私有的,都加一下下划线吧
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好的