Git Product home page Git Product logo

deep-learning-docker's Introduction

Docker Environment

Features

  • Three docker images: Tensorflow, Keras, Caffe
  • Tensorflow object detection API
  • NVIDIA GPU
  • Display webcam video in docker container via opencv windows

Installation

Ubuntu 16.04

For developer environments

$ sudo ./install_docker_ce_ubuntu_amd64.sh  # Install docker-ce
$ sudo ./install_nvidia_docker_ubuntu_amd64.sh  # Install nvidia-docker
$ sudo mkdir /root/Data  # Our convention is to put training data here. This folder will be mounted to the docker container.

Create environment in Docker

Tensorflow

To build the clean Tensorflow 1.8 (GPU) environment

$ cd {PROJECT_ROOT}/framework/tensorflow/gpu
$ sudo make build   # Build tensorflow DockerFile

If you want to build the clean Tensorflow 1.8 (GPU) environment

$ sudo make build TF_VER=1.8.0

To run the clean Tensorflow (GPU) environment

$ cd {PROJECT_ROOT}/framework/tensorflow/gpu
$ sudo make x11 # or make x11 TF_VER=1.8.0

Keras with Tensorflow backend

To build the clean Keras (GPU) environment

$ cd {PROJECT_ROOT}/framework/keras/gpu
$ sudo make build   # Build keras docker file

To run the clean Keras (GPU) environment

$ cd {PROJECT_ROOT}/framework/keras/gpu
$ sudo make x11

Run the clean Keras (GPU) environment on the web (IPython notebook and TensorBoard)

$ cd {PROJECT_ROOT}/framework/keras/gpu
$ sudo make notebook

You will see the notebook and Tensorboard URL in the terminal

Caffe

To run the clean caffe environment

$ cd framework/caffe
$ sudo make bash

To Test is caffe environment correct. Let's train LeNet on MNIST

$ cd $CAFFE_ROOT
$ ./data/mnist/get_mnist.sh
$ ./examples/mnist/create_mnist.sh
$ ./examples/mnist/train_lenet.sh

If you see "Optimization Done" in the console like following. Congratulation!

I1129 03:51:48.452687    39 caffe.cpp:259] Optimization Done.

deep-learning-docker's People

Contributors

rocking5566 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.