Learn From
Install TensorFlow 2.0
sudo apt-get install screen sudo apt-get install libxmu-dev libxi-dev libglu1-mesa libglu1-mesa-dev sudo apt-get install libjpeg-dev libpng-dev libtiff-dev sudo apt-get install libavcodec-dev libavformat-dev libswscale-del libv4l-dev sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev sudo apt-get install libxvidcore-dev libx264-dev sudo apt-get install libopenblas-dev libatlas-base-dev liblapack-dev gfortran sudo apt-get install libhdf5-dev sudo apt-get install python3-dev python3-tk python-pil.imagetk sudo apt-get install libgtk-3-dev
Install CUDA 10.0
You may try to install the latest CUDA.cd ~ mkdir installers cd installers/ wget https://developer.nvidia.com/compute/cuda/10.0/Prod/local_installers/cuda_10.0.130_410.48_linux =========== = Summary = =========== Driver: Not Selected Toolkit: Installed in /usr/local/cuda-10.0 Samples: Installed in /home/sulfred Please make sure that - PATH includes /usr/local/cuda-10.0/bin - LD_LIBRARY_PATH includes /usr/local/cuda-10.0/lib64, or, add /usr/local/cuda-10.0/lib64 to /etc/ld.so.conf and run ldconfig as root To uninstall the CUDA Toolkit, run the uninstall script in /usr/local/cuda-10.0/bin Please see CUDA_Installation_Guide_Linux.pdf in /usr/local/cuda-10.0/doc/pdf for detailed information on setting up CUDA.
Add CUDA Path
vim ~/.bashrc # NVIDIA CUDA Toolkit export PATH=/usr/local/cuda-10.0/bin:$PATH export LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64:$LD_LIBRARY_PATH
Install cuDNN
Download from : download pageYou may download the latest cudnn. Here we are using cudnn-10.0, for example: cudnn-10.0-linux-x64-v7.4.2.24.tgz to ~/installers
cd ~/installers tar -zxf cudnn-10.0-linux-x64-v7.4.2.24.tgz cd cuda sudo cp -P lib64/* /usr/local/cuda/lib64/ sudo cp -P include/* /usr/local/cuda/include/
Prepare python virtual environment
# standard image processing pip install opencv-contrib-python pip install scikit-image pip install pillow pip install imutils # machine learning libraries pip install scikit-learn pip install matplotlib pip install pregressbar2 pip install beautifulsoup4 pip install pandas
沒有留言:
發佈留言