GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — mxnet/docker at master · fixiecoding/mxnet

Expand file tree

/

docker

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

docker

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
cpu
cpu
 
 
cuda
cuda
 
 
README.md
README.md
 
 

README.md

Outline

Docker images for MXNET

Pre-built docker images are available at https://hub.docker.com/r/dmlc/mxnet/

How to use

  1. First pull the pre-built image

    docker pull dmlc/mxnet
  2. Then we can run the python shell in the docker

    docker run -ti dmlc/mxnet python

    For example

    $ docker run -ti dmlc/mxnet python
    Python 2.7.6 (default, Jun 22 2015, 17:58:13)
    [GCC 4.8.2] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import mxnet as mx
    import mxnet as mx
    >>> quit()
    quit()

    Note: One may get the error message libdc1394 error: Failed to initialize libdc1394, which is due to opencv and can be ignored.

  3. Train a model on MNIST to check everything works

    docker run dmlc/mxnet python /mxnet/example/image-classification/train_mnist.py
    

If the host machine has Nvidia CPUs, we can use dmlc/mxnet:gpu, which has both CUDA and CUDNN installed. To launch the docker, we need to install nvidia-docker first.

  1. Pull the image

    docker pull dmlc/mxnet:cuda
  2. Train MNIST on CPU 0

    nvidia-docker run dmlc/mxnet:cuda python /mxnet/example/image-classification/train_mnist.py --gpus 0

How to build

docker build -t dmlc/mxnet:cpu cpu
docker build -t dmlc/mxnet:cuda cuda
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.