카메라/카메라 테스트

[Depth camera] - Stereolabs ZED2i(Neural Depth mode 세팅방법)

dohyeon2 2022. 8. 23. 21:39

연구실에서 ZED camera로 neural depth mode setting을 하던 중 발생했던 에러를 정리하려한다. 

진행방법은 다음과 같다. 

 

os: window10 

gpu: RTX 2060 

 

1. gpu dependency에 맞는 cuda version 설치

나의 경우 cuda 11.7을 설치하였다.

 

2. cuda version에 맞는 cudnn을 설치하고, 설치가 완료되면 cudnn-11.6-windows10-x64-v8.3.2.어쩌고.zip 이라는 파일이 다운로드 되고 압축을 풀면 bin, include, lib 라는 폴더가 있을 것 이다. 다음과 같이  종류별로 CUDA Toolkit 디렉토리에 복사한다. 

cuda\bin에 있는 *.dll 파일을 아래 경로로 복사  (버전은 알아서 맞게 고쳐써라 11.0 > 10.2 )
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\bin 

cuda\include에 있는 *.h 파일을 아래 경로로 복사 
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\include 
cuda\lib\x64에 있는 *.lib 파일을 아래 경로로 복사 
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\lib\x64 
8. 시스템 환경변수에 다음이 자동으로 등록됩니다.  (윈도우에서 자동으로 해주니까 생략 ㄱㄱ)
Variable Name: CUDA_PATH 
Variable Value: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0

  3. 이렇게 진행한 뒤 ZED DepthViewer를 실행하고 neural mode optimization을 진행하면 

Could not locate zlibwapi.dll. Please make sure it is in your library path!

 

위와 같은 문제가 발생한다. 

 

4. 아래 경로에서 zlibwapi.dll 다운로드

https://docs.nvidia.com/deeplearning/cudnn/install-guide/index.html#install-zlib-windows 

 

Installation Guide :: NVIDIA Deep Learning cuDNN Documentation

About this task export QNX_HOST={flash_dir}/toolchains/qnx_toolchain/host/linux/x86_64 export QNX_TARGET={flash_dir}/toolchains/qnx_toolchain/target/qnx7 export HOST_COMPILER=$QNX_HOST/usr/bin/aarch64-unknown-nto-qnx7.1.0-g++ export CUDNN_LIB_PATH=/usr/lib

docs.nvidia.com

해당 zlib.dll 을 마우스 우클릭한 뒤 링크를 복사하고 주소창에 붙혀넣기하면 

아래 zip file이 다운로드된다.

zlibwapi.dll 파일을

C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\bin  

해당 경로에 복사한다.

 

그 뒤에 ZED DepthViewer를 실행한 뒤 Neural mode optimization을 진행하면 문제없이 설치된다!!