Search This Blog

2/13/19

Use Command Line to start Caffe Container on QNAP NAS

Before Running

Before running the caffe container, use docker pull command or click the Pull Button to ensure the desired image is installed. Once the pull is complete, you can go to next step.
TagPull commandDescription
cpudocker pull bvlc/caffe:cpuCPU version
gpudocker pull bvlc/caffe:gpuGPU support 
(CUDA 8.0+ required)
inteldocker pull bvlc/caffe:intelOptimized for Intel CPU

Run Container with Options

  1. Select GPU. To run the container with GPU support, you must specify the GPU.
    1. NVIDIA GPU
      GPU=nvidia0 gpu-docker run -it --rm bvlc/caffe:gpu bash
    2. Intel CPU (launch Intel CPU optimized version caffe)
      docker run -it --rm bvlc/caffe:intel bash
    3. CPU
      docker run -it --rm bvlc/caffe:cpu bash
  2. Shared folder. For leverage the NAS’s advantage, you can use shared folder to store the training data set, or the data to be inference.
    1. Mount data folder in the volume 1 to the data folder in the container
      GPU=nvidia0 gpu-docker run -it -v /share/CACHEDEV1_DATA/data:/data --rm bvlc/caffe:gpu bash
    2. Mount videos folder in the volume 2 to the videos folder in the container
      GPU=nvidia0 gpu-docker run -it -v /share/CACHEDEV2_DATA/videos:/videos --rm bvlc/caffe:gpu bash


No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...