Différences entre les versions de « Deep Learning Tutorial 2019 installations »
m |
m |
||
Ligne 22 : | Ligne 22 : | ||
<div class="toccolours mw-collapsible" style="width:70%; margin-left:70px; overflow:auto;" > | <div class="toccolours mw-collapsible" style="width:70%; margin-left:70px; overflow:auto;" > | ||
<div class="mw-collapsible-content"> | <div class="mw-collapsible-content"> | ||
− | Follow the underlisted steps to install Anaconda distribution in Linux (Ubuntu): | + | <i>Follow the underlisted steps to install Anaconda distribution in Linux (Ubuntu):<i> |
# cd /tmp | # cd /tmp | ||
# curl -O https://repo.anaconda.com/archive/Anaconda3-2019.03-Linux-x86_64.sh | # curl -O https://repo.anaconda.com/archive/Anaconda3-2019.03-Linux-x86_64.sh | ||
Ligne 30 : | Ligne 30 : | ||
# conda list | # conda list | ||
− | <br> Follow the underlisted steps to install Anaconda distribution in Windows: | + | <br> <i>Follow the underlisted steps to install Anaconda distribution in Windows<i>: |
# coming soon ... | # coming soon ... | ||
</div></div> | </div></div> | ||
Ligne 37 : | Ligne 37 : | ||
<div class="toccolours mw-collapsible" style="width:70%; margin-left:70px; overflow:auto;" > | <div class="toccolours mw-collapsible" style="width:70%; margin-left:70px; overflow:auto;" > | ||
<div class="mw-collapsible-content"> | <div class="mw-collapsible-content"> | ||
− | We will use the name `dsai` for thi purpose (if you choose a different name, | + | <i>We will use the name `dsai` for thi purpose (if you choose a different name, endeavour to be consistent</i>: |
# conda create --name dsai | # conda create --name dsai | ||
# source activate dsai | # source activate dsai | ||
Ligne 45 : | Ligne 45 : | ||
<div class="toccolours mw-collapsible" style="width:70%; margin-left:70px; overflow:auto;" > | <div class="toccolours mw-collapsible" style="width:70%; margin-left:70px; overflow:auto;" > | ||
<div class="mw-collapsible-content"> | <div class="mw-collapsible-content"> | ||
− | Install PyTorch and Tensorflow packages. Depending on your system, you can install either the cpu or gpu version | + | <i>Install PyTorch and Tensorflow packages. Depending on your system, you can install either the cpu or gpu version. Do not install both:</i> |
# conda install pytorch torchvision cpuonly -c pytorch # for cpu | # conda install pytorch torchvision cpuonly -c pytorch # for cpu | ||
− | |||
− | |||
− | |||
# conda install -c aaronzs tensorflow-gpu=1.10 | # conda install -c aaronzs tensorflow-gpu=1.10 | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Or; | Or; | ||
# conda install pytorch torchvision cudatoolkit=9.2 -c pytorch # for gpu with cuda 9.2 | # conda install pytorch torchvision cudatoolkit=9.2 -c pytorch # for gpu with cuda 9.2 | ||
# conda install -c aaronzs tensorflow-gpu=1.10 | # conda install -c aaronzs tensorflow-gpu=1.10 | ||
+ | <i>Install python libraries:</i> | ||
# conda install numpy matplotlib | # conda install numpy matplotlib | ||
+ | # pip install torchsummary | ||
# conda install -c anaconda scipy==1.1.0 | # conda install -c anaconda scipy==1.1.0 | ||
# conda install -c conda-forge opencv tqdm | # conda install -c conda-forge opencv tqdm | ||
− | |||
− | |||
− | |||
− | |||
+ | <i>For editor, install either jupyter notebook or jupyter lab:</i> | ||
+ | # conda install -c anaconda jupyter | ||
+ | # conda install -c conda-forge jupyterlab | ||
+ | <i> You may need to have other editors like notebook, sublime text, vscode, spyder, etc., if you wish.<i> | ||
</div></div> | </div></div> |
Version du 6 septembre 2019 à 11:57
Instructions
Participants needs to complete the 3 following instructions before the tutorial kick off date:
- Installations
- Download resources
- Configurations
Installations
There are 2 options:
- Using personal computer
- Using Google Colab (alternative)
Using personal computer
A. Download and install Anaconda
Follow the underlisted steps to install Anaconda distribution in Linux (Ubuntu):
- cd /tmp
- curl -O https://repo.anaconda.com/archive/Anaconda3-2019.03-Linux-x86_64.sh
- sha256sum Anaconda3-2019.03-Linux-x86_64.sh
- bash Anaconda3-2019.03-Linux-x86_64.sh
- source ~/.bashrc
- conda list
Follow the underlisted steps to install Anaconda distribution in Windows:
- coming soon ...
B. Create virtual environment
We will use the name `dsai` for thi purpose (if you choose a different name, endeavour to be consistent:
- conda create --name dsai
- source activate dsai
C. Install packages
Install PyTorch and Tensorflow packages. Depending on your system, you can install either the cpu or gpu version. Do not install both:
- conda install pytorch torchvision cpuonly -c pytorch # for cpu
- conda install -c aaronzs tensorflow-gpu=1.10
Or;
- conda install pytorch torchvision cudatoolkit=9.2 -c pytorch # for gpu with cuda 9.2
- conda install -c aaronzs tensorflow-gpu=1.10
Install python libraries:
- conda install numpy matplotlib
- pip install torchsummary
- conda install -c anaconda scipy==1.1.0
- conda install -c conda-forge opencv tqdm
For editor, install either jupyter notebook or jupyter lab:
- conda install -c anaconda jupyter
- conda install -c conda-forge jupyterlab
You may need to have other editors like notebook, sublime text, vscode, spyder, etc., if you wish.
Downloads
Configurations
- Installation guide
Open a terminal and type and execute the following commands:
Follow the following steps to install Anaconda distribution in Ubuntu:
- cd /tmp
- curl -O https://repo.anaconda.com/archive/Anaconda3-2019.03-Linux-x86_64.sh
- sha256sum Anaconda3-2019.03-Linux-x86_64.sh
- bash Anaconda3-2019.03-Linux-x86_64.sh
- source ~/.bashrc
- conda list
Follow the following steps to install:
- conda create --name dsai python=3
- conda activate dsai
Follow the following steps to install:
- conda install -c aaronzs tensorflow-gpu=1.10
- conda update conda
Follow the following steps to install:
- conda install -c anaconda jupyter
Follow the following steps to install:
- conda install -c anaconda opencv3
- conda install -c anaconda matplotlib
- conda install -c anaconda pillow
- conda install -c anaconda scikit-learn
- conda install -c anaconda scikit-image
- Tutorial dataset
Follow the following steps to install
Follow the following steps to install
- Git repository
- Reference materials
Follow the following steps to install
Follow the following steps to install
- Survey
- Exercises