KUTuaNithid / phenorobot

0 stars 0 forks source link

Install Darknet #3

Open KUTuaNithid opened 3 years ago

KUTuaNithid commented 3 years ago
KUTuaNithid commented 3 years ago

Version Opencv: 3.4.0 (Needed by openvslam/ros) Cuda: 10.0 (Needed by GPU GTX 1650 Ti, Turing Arch 7.5) Cudnn: 7.6.5.32 ( To support Cuda 10.0)

KUTuaNithid commented 3 years ago

Step

  1. Install Cuda https://developer.nvidia.com/cuda-10.0-download-archive
  2. Install Cudnn
  3. Build Open CV with Cuda flag
    -D WITH_CUDNN=ON \
    -D OPENCV_DNN_CUDA=ON \
    -D CUDA_ARCH_BIN=7.5 \
  4. Build darknet with ros https://github.com/leggedrobotics/darknet_ros Don't forget to add -O3 -gencode arch=compute_75,code=sm_75 in darknet_ros/CMakeLists.txt.
KUTuaNithid commented 3 years ago

build command

catkin_make     -DBUILD_WITH_MARCH_NATIVE=ON     -DUSE_PANGOLIN_VIEWER=ON     -DUSE_SOCKET_PUBLISHER=OFF     -DUSE_STACK_TRACE_LOGGER=ON     -DBOW_FRAMEWORK=DBoW2 -DCMAKE_BUILD_TYPE=Release