Giter VIP home page Giter VIP logo

tensorflow_in_practice's Introduction

Tensorflow In Practice Specialization

This repository contains the work and other tools for working through Cousera's Tensorflow in Practice Specialization.

There is multiple ways to work with this repo:

  1. Using Google Colabs tool, an awesome free tool provided by Google to do Research & Development with notebooks.

  2. Docker containers :) as I love using docker containers for almost everything I work with. I've created a set of tools you could use for your own projects apart from this one.

Docker Container Setup

If you have:

  • GPU
  • Ubuntu / Debian Linux Distribution

./scripts/install-docker-nvidia.sh

You should see an output like this if everything went well :) A table

TODO: Add picture of output here

Install docker container

docker build -f scripts/Dockerfile -t tf_practice_gpu .

If you have:

  • CPU
  • Ubuntu / Debian Linux Distribution

docker build -f scripts/Dockerfile-cpu -t tf_practice_cpu .

Docker build arguments:

  • -f path_to_dockerfile, pass the path to your dockerfile
  • -t tag, will set a tag to your image, in our case, tf_practice_gpu to be able to run the container that is only for gpu.

Starting your docker container

When I started building docker containers for everything, the idea was to spin it up those with the data I wanted :)

In this case, you will be able to run your container mounting any folder in the volume named as: /data

For example, Imagine you are going through lesson 1 of the specialization and you have a folder named: l1_prog_paradigm, running your container should be as easy as executing the following steps:

# enter the folder 
cd l1_prog_paradigm

# Docker container run enabling GPUs :)
docker run --gpus all -it -p 8888:8888 -v $PWD:/data tf_practice_gpu

Docker run arguments:

  • --gpus all, enable all the gpus available
  • -it, run the container as interactive mode
  • -p 8888:8888, expose the ports to run jupyter from the browser
  • -v $PWD:/data, mount your current directory ($PWD), into /data volume

Starting your jupyter notebook

Boom ๐Ÿ’ฅ , now you can start running jupyter locally.

Go to http://localhost:8888

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.