Skip to content

Commit

Permalink
fix cmake bug,support rtmpose more keypoint (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZHEQIUSHUI authored Nov 29, 2023
1 parent dcfd22e commit 296dd5e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
21 changes: 17 additions & 4 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,32 @@
if(NOT BSP_MSP_DIR)
set(BSP_MSP_DIR ${CMAKE_SOURCE_DIR}/out)
endif()

message(STATUS "BSP_MSP_DIR = ${BSP_MSP_DIR}")

if(AXERA_TARGET_CHIP MATCHES "ax650")
set(OpenCV_DIR ${CMAKE_SOURCE_DIR}/3rdparty/opencv-aarch64-linux/lib/cmake/opencv4)
if(NOT OpenCV_DIR)
set(OpenCV_DIR ${CMAKE_SOURCE_DIR}/3rdparty/opencv-aarch64-linux/lib/cmake/opencv4)
endif()

add_definitions(-DAXERA_TARGET_CHIP_AX650)
elseif(AXERA_TARGET_CHIP MATCHES "ax620e")
set(OpenCV_DIR ${CMAKE_SOURCE_DIR}/3rdparty/opencv-aarch64-linux/lib/cmake/opencv4)
if(NOT OpenCV_DIR)
set(OpenCV_DIR ${CMAKE_SOURCE_DIR}/3rdparty/opencv-aarch64-linux/lib/cmake/opencv4)
endif()

add_definitions(-DAXERA_TARGET_CHIP_AX620E)
elseif(AXERA_TARGET_CHIP MATCHES "ax620a")
set(OpenCV_DIR ${CMAKE_SOURCE_DIR}/3rdparty/opencv-arm-linux/lib/cmake/opencv4)
if(NOT OpenCV_DIR)
set(OpenCV_DIR ${CMAKE_SOURCE_DIR}/3rdparty/opencv-arm-linux/lib/cmake/opencv4)
endif()

add_definitions(-DAXERA_TARGET_CHIP_AX620)
elseif(AXERA_TARGET_CHIP MATCHES "ax630a")
set(OpenCV_DIR ${CMAKE_SOURCE_DIR}/3rdparty/opencv-aarch64-linux/lib/cmake/opencv4)
if(NOT OpenCV_DIR)
set(OpenCV_DIR ${CMAKE_SOURCE_DIR}/3rdparty/opencv-aarch64-linux/lib/cmake/opencv4)
endif()

add_definitions(-DAXERA_TARGET_CHIP_AX630)
endif()

Expand Down
1 change: 1 addition & 0 deletions examples/ax620/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ if(AXERA_TARGET_CHIP MATCHES "ax620a") # ax620 support
axera_example(ax_yolov6s ax_yolov6s_steps.cc)
axera_example(ax_yolov8s ax_yolov8s_steps.cc)
axera_example(ax_yolov8s_seg ax_yolov8s_seg_steps.cc)
axera_example(ax_yolov8s_pose ax_yolov8s_pose_steps.cc)

# ******************************** MMYOLO model ********************************#
# axera_example (ax_mmyolov5s mmyolo/ax_mmyolov5s.cc)
Expand Down
2 changes: 1 addition & 1 deletion examples/ax650/ax_simcc_pose_steps.cc
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ namespace ax
*min_max_time.second,
*min_max_time.first);
fprintf(stdout, "--------------------------------------\n");
pose::draw_result(mat, ai_point_result, NUM_JOINTS, INPUT_W, INPUT_H);
pose::draw_result(mat, ai_point_result, ai_point_result.keypoints.size(), INPUT_W, INPUT_H);
cv::imwrite("./simcc_out.jpg", mat);
}

Expand Down

0 comments on commit 296dd5e

Please sign in to comment.