-
Notifications
You must be signed in to change notification settings - Fork 290
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
[PaddlePaddle Hackathon 2] task 62 PP-TinyPose Demo #250
Conversation
在 Android 上实现实时的Pose关键点的检测功能 | ||
|
||
|
||
## 如何运行 Demo |
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.
这块内容辛苦补充下,并展示运行效果示意图
'dest': 'OpenCV' | ||
], | ||
[ | ||
'src' : 'https://paddlelite-demo.bj.bcebos.com/models/ultra_light_fast_generic_face_detector_1mb_640_for_cpu_v2_10_rc.tar.gz', |
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.
这些模型有使用吗?么有话,可以删除
${OpenCV_LIBS} | ||
GLESv2 | ||
EGL | ||
${log-lib}) |
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.
加个空行
# CMake builds them for you. Gradle automatically packages shared libraries with | ||
# your APK. | ||
|
||
set(PaddleLite_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../../../PaddleLite-2.11-rc") |
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.
建议目录名由PaddleLite-2.11-rc 改为PaddleLite
if (tensor_name == "image") { | ||
auto inputTensor = predictor_->GetInputByName(tensor_name); | ||
// Set the data of input image | ||
// auto inputTensor = predictor_->GetInput(0); |
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.
没有用的注释的语句辛苦删除
fontThickness); | ||
} | ||
|
||
// void Pipeline::Action_Process(cv::Mat *rgbaImage, |
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.
没有用的注释,辛苦删除下
VisualizeKptsResults(results, results_kpts, &rgbaImage, false); | ||
|
||
// Visualize the status(performance data) to the origin image | ||
// VisualizeStatus(readGLFBOTime, writeGLTextureTime, preprocessTime+preprocessTime_kpts, |
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.
同上
double postprocessTime, cv::Mat *rgbaImage, | ||
std::vector<RESULT_KEYPOINT> &results_kpts, | ||
std::vector<RESULT> &results); | ||
// void Action_Process(cv::Mat *rgbaImage, |
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.
同上
} | ||
|
||
void NHWC3ToNC3HW_bn(const float *src, float *dst, const float *mean, | ||
const float *std, int width, int height) { |
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.
这个函数可以和NHWC3ToNC3HW 合并,如果没有归一化处理,mean 是0,scale 是1 就行
(din - mean) / scale
*(dst_c1++) = *(src++); | ||
*(dst_c2++) = *(src++); | ||
} | ||
// for (; i < size; i++) { |
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.
无用的注释可以删除
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.
在shell 目录下,补充下shell demo(参考:https://github.com/PaddlePaddle/Paddle-Lite-Demo/tree/develop/object_detection/android/shell/cxx/ssd_mobilenetv1_detection),并加入ci 测试(在tools/ci_tools/android_ci_demo.sh)https://github.com/PaddlePaddle/Paddle-Lite-Demo/blob/develop/tools/ci_tools/android_demo_ci.sh#L71 处添加shell demo 单测
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.
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.
另外,readme 文档格式请参考已有的readme 文档,辛苦重新更新下
@chenjiaoAngel 感谢评审。后面会一一修改。 |
Automatically closed by Paddle-bot. |
No description provided.