Skip to content
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

fix pose demo and windows build #307

Merged
merged 1 commit into from
Apr 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion csrc/codebase/mmpose/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ include(${CMAKE_SOURCE_DIR}/cmake/MMDeploy.cmake)

file(GLOB_RECURSE SRCS ${CMAKE_CURRENT_SOURCE_DIR} "*.cpp")
mmdeploy_add_module(${PROJECT_NAME} "${SRCS}")
target_link_libraries(${PROJECT_NAME} PRIVATE mmdeploy_opencv_utils)
target_link_libraries(${PROJECT_NAME} PRIVATE
mmdeploy::transform mmdeploy_opencv_utils)
add_library(mmdeploy::mmpose ALIAS ${PROJECT_NAME})
2 changes: 2 additions & 0 deletions csrc/codebase/mmpose/mmpose.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#ifndef MMDEPLOY_MMPOSE_H
#define MMDEPLOY_MMPOSE_H

#include <array>

#include "codebase/common.h"
#include "core/device.h"
#include "core/module.h"
Expand Down
3 changes: 1 addition & 2 deletions demo/csrc/pose_detection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ int main(int argc, char *argv[]) {
mm_mat_t mat{img.data, img.rows, img.cols, 3, MM_BGR, MM_INT8};

mm_pose_detect_t *res{};
int *res_count{};
status = mmdeploy_pose_detector_apply(pose_estimator, &mat, 1, &res, &res_count);
status = mmdeploy_pose_detector_apply(pose_estimator, &mat, 1, &res);
if (status != MM_SUCCESS) {
fprintf(stderr, "failed to apply pose estimator, code: %d\n", (int)status);
return 1;
Expand Down