digists6.1.1安装

原文地址https://github.com/NVIDIA/DIGITS/blob/v6.1.1/docs/BuildDigits.md

Building DIGITS

The following instructions will walk you through building the latest version of DIGITS from source.These instructions are for installation on Ubuntu 14.04 and 16.04.

Alternatively, see this guide for setting up DIGITS and Caffe on Windows machines.

Other platforms are not officially supported, but users have successfully installed DIGITS on Ubuntu 12.04, CentOS, OSX, and possibly more.Since DIGITS itself is a pure Python project, installation is usually pretty trivial regardless of the platform.The difficulty comes from installing all the required dependencies for Caffe, Torch7 , Tensorflow, and configuring the builds.Doing so is your own adventure.

Prerequisites

注意:下面这些一定看清楚了,如果你的nvidia和cudn已经安装完毕,就不要用下面这段语句,如果没有安装上面两个,可以先去安装好在进行训练。要是采用下面的方法,必须按照自己机器型号与linux版本进行对应修改,否则会出现cuda 与显卡不匹配。如果出现了那就按照我上篇博客解决方案。https://blog.csdn.net/flowrush/article/details/80254301

You need an NVIDIA driver (details and instructions).

Run the following commands to get access to some package repositories:

# For Ubuntu 14.04
CUDA_REPO_PKG=http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_8.0.61-1_amd64.deb
ML_REPO_PKG=http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1404/x86_64/nvidia-machine-learning-repo-ubuntu1404_4.0-2_amd64.deb

# For Ubuntu 16.04
CUDA_REPO_PKG=http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_8.0.61-1_amd64.deb
ML_REPO_PKG=http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64/nvidia-machine-learning-repo-ubuntu1604_1.0.0-1_amd64.deb

# Install repo packages
wget "$CUDA_REPO_PKG" -O /tmp/cuda-repo.deb && sudo dpkg -i /tmp/cuda-repo.deb && rm -f /tmp/cuda-repo.deb
wget "$ML_REPO_PKG" -O /tmp/ml-repo.deb && sudo dpkg -i /tmp/ml-repo.deb && rm -f /tmp/ml-repo.deb

# Download new list of packages
sudo apt-get update

Dependencies

Install some dependencies with Deb packages:

sudo apt-get install --no-install-recommends git graphviz python-dev python-flask python-flaskext.wtf python-gevent python-h5py python-numpy python-pil python-pip python-scipy python-tk

Follow these instructions to build Caffe (required).

Follow these instructions to build Torch7 (suggested).

Follow these instructions to build Tensorflow (suggseted).

Download source

# example location - can be customized
DIGITS_ROOT=~/digits
git clone https://github.com/NVIDIA/DIGITS.git $DIGITS_ROOT

Throughout the docs, we'll refer to your install location as DIGITS_ROOT (~/digits in this case), though you don't need to actually set that environment variable.

Python packages

Several PyPI packages need to be installed:

sudo pip install -r $DIGITS_ROOT/requirements.txt

[Optional] Enable support for plug-ins

DIGITS needs to be installed to enable loading data and visualization plug-ins:

sudo pip install -e $DIGITS_ROOT

Starting the server

./digits-devserver

Starts a server at http://localhost:5000/.

$ ./digits-devserver --help
usage: __main__.py [-h] [-p PORT] [-d] [--version]

DIGITS development server

optional arguments:
  -h, --help            show this help message and exit
  -p PORT, --port PORT  Port to run app on (default 5000)
  -d, --debug           Run the application in debug mode (reloads when the
                        source changes and gives more detailed error messages)
  --version             Print the version number and exit

Getting started

Now that you're up and running, check out the Getting Started Guide.

Development

If you are interested in developing for DIGITS or work with its source code, check out the Development Setup Guide

Troubleshooting

Most configuration options should have appropriate defaults.Read this doc for information about how to set a custom configuration for your server.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值