Skip to content

marin0829/resources

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Resources for the AI4Good Summer School

Installation Guide

Requirements

Linux distributions, Windows 10 with Bash (Anniversary update) or recent Mac OS

Linux instructions

  1. If Conda is already installed, you can update it with

    conda update conda

  • Otherwise, download Miniconda for Linux with python 3.6

    wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh

  • Install Conda from the console bash:

    bash Miniconda3-latest-Linux-x86_64.sh

  1. Create conda environment

    conda create -n py36 python=3 jupyter matplotlib pandas py36 is the environment name

  2. Activate the virtual environment with

    source activate py36

    The last command must be run every time you open a new console to activate the Conda environment.

  3. Install Pytorch: The following command lines installs the CPU version of Pytorch.

    • Linux: conda install pytorch-cpu torchvision -c pytorch
    • Mac OS: conda install pytorch torchvision -c pytorch

    To install the GPU version of Pytorch run the following commands

    • Linux: conda install pytorch torchvision -c pytorch
    • Mac OS: conda install pytorch torchvision -c pytorch MacOS Binaries dont support CUDA, install from source if CUDA is needed

    If you have any other requirement, please follow the instructions from the Pytorch official page here

  4. Access a given directory and start jupyter cd name; jupyter notebook

  5. A window should open in your browser. If not, you can copy the URL that appears in the terminal into your browser to access the jupyter environment.

Instructions for Windows

  1. If Conda is already installed, you can update it with conda update conda

    Otherwise, download and install Miniconda for Windows with python 3.6 (exe installer)

  2. Follow the aforementioned Linux instructions from point 2

Instructions for Mac OS

  1. If Conda is already installed, you can update it with conda update conda

    Otherwise, download and install Miniconda for Mac OS with python 3.6 wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh

    Install Conda from the console bash: bash Miniconda3-latest-MacOSX-x86_64.sh

  2. Follow the aforementioned Linux instructions from point 2

Tutorials

Tutorial on Scientific computing with Numpy

Using Colab

Colab is an open research project from Google allowing you to work with an interface that is very similar to Jupyter, using Google's free computing resources.

Additional Resources

FAQ

  • Q. The command jupyter notebook opens a browser, but displays an connexion error to the Jupyter server.

    A. It is possible that the default port 8888 is unavailable. You can change the port manually with jupyter notebook --port 8080 --no-browser

  • Q. Once conda installed, the Bash console does not find the conda environment

    A. For the Conda installation, you must accept the automatic modification of the .bashrc file that contains the paths. If not done, you need to add export PATH="~/Miniconda3/bin :$PATH" in the file called ~/.bashrc.

About

Resources for the AI4Good Summer School

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published