GithubHelp home page GithubHelp logo

deep-learning-intro's Introduction

Software instalation and previous steps

Linux machines (ubuntu)

You need to install pip3 on your system

sudo apt install python3-pip

Instal virtualenv

pip3 install virtualenv

Create environment

virtualenv path_to_virtual_envs_location/environment_name

activate virtuelenv (if needed)

source path_to_virtual_envs_location/environment_name/bin/activate

install dependences

pip3 install -r requirements.txt In case you have cuda installed and configured, just replace tensorflow package with tensorflow-gpu:

pip3 install -r requirements_gpu.txt

Jupyter kernel generation

After having sourced the environment:

ipython kernel install --user --name=environment_name

Windows machines

First of all, it is required to have a python v 3.6.8 with 64 bits. It can be obtained from here. Probably another pthon versions would work, but 3.8+ has proven to have an issue with pip and tensorflow.

This version includes pip, so it is not necessary to install it.

Scripts enabling

By default, Powershell does not enable you to execute scripts. So, It is necessary t enable them.

This command will do, according to this thread

Set-ExecutionPolicy -ExecutionPolicy Unrestricted-Scope CurrentUser

Environment creation and activation

It is recommended to run everything on an environment

pip install virtualenv

Create virtualenv

virtualenv path_to_virtual_envs_location/environment_name

Activate virtualenv

This is why we enabled the script execution for the current user. If we are using cmd, just run this command

./path_to_virtual_envs_location/environment_name/Scripts/activate.bat If we are using powershell,

./path_to_virtual_envs_location/environment_name/Scripts/activate.ps1

Install requirements

Now we are sourcing our created environment. Just install the requirements:

pip install -r requirements_windows.txt

Notebook installation

Although it should be contained on the requirements, it is a complete different requirement than on ubuntu. So, it is needed to run this line: pip install notebook

Torch

If you want also to install torch, you need to run this line (only for cpu)

pip install torch==1.3.1+cpu torchvision==0.4.2+cpu -f https://download.pytorch.org/whl/torch_stable.html

Jupyter kernel generation

After having sourced the environment:

ipython kernel install --user --name=environment_name

deep-learning-intro's People

Contributors

fermaat avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.