Skip to content

Latest commit

 

History

History
73 lines (65 loc) · 2.2 KB

Installation_for_Vision.md

File metadata and controls

73 lines (65 loc) · 2.2 KB

Installation Guide

Author : Eunbin Seo
Date : 2020.02.04.

check the graphic card for driver

  1. graphic driver install refer: Link

Install Cuda

  1. Check driver version and select cuda version. (our driver version is 430, select cuda 10.1)
nvidia-smi
  1. Download Cuda 10.0 runfile Link

  2. Run the cuda 10.0 in cuda file. If not working, you make it executable. reference

  3. modify bashrc file

export PATH=$PATH:/usr/local/cuda-10.0/bin
export CUDADIR=/usr/local/cuda-10.0
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-10.0/lib64
  1. After modifying bashrc file, execute this command to verify the cuda version.
source ~/.bashrc
  1. cuda 9.0 download https://gist.github.com/andyweizhao/639e94b60c166f57964aafedeb465e90

Install Cudnn

  1. GOTO Link, and download cuDNN Runtime Library for Ubuntu18.04 (Deb)
  2. Execute the file! reference
sudo dpkg -i libcudnn7_7.6.4.38-1+cuda10.0_amd64.deb 

Make Virtual Environment

  1. make virtual environment
python3 -m venv ./(venv name)

we named virtual environment 'tensorflow' 2. activate the virtual environment

# source (virtual environment name)/bin/activate
source tensorflow/bin/activate 

check always that the venv

Install Tensorflow

first, check the version.

pip3 install tensorflow-gpu==(version)

Install Keras

first, check the version.

pip3 install keras==(version)

Install torch

refer: Link first, check the version.

pip3 install torch===1.2.0 torchvision===0.4.0 -f https://download.pytorch.org/whl/torch_stable.html

Install OpenCV

refer: Link

Install Ros, Ros2, ... and so on...