WIN10 installation Digits

Source: Internet
Author: User
Tags install matplotlib

Python2

Download and install Python 2.7.11 64bit from Python ' s official site (https://www.python.org/ftp/python/2.7.11/ Python-2.7.11.amd64.msi). Please select Add Python Path during installation.

Download NumPy, SciPy, Matplotlib, Scikit-image, h5py from unofficial Windows Binaries for Python Extension Packages WEBPA GE at (http://www.lfd.uci.edu/~gohlke/pythonlibs/). Remember to download correct version (2.7) and Architecture (64-bit).

Additionally, download Gevent v1.0.2 at the same site. Run command Prompt (Cmd.exe) as Administrator, and issue the following commands.

python -m pip install cythonpython -m pip install numpy-1.11.0+mkl-cp27-cp27m-win_amd64.whlpython -m pip install scipy-0.17.0-cp27-none-win_amd64.whlpython -m pip install matplotlib-1.5.1-cp27-none-win_amd64.whlpython -m pip install scikit_image-0.12.3-cp27-cp27m-win_amd64.whlpython -m pip install h5py-2.6.0-cp27-cp27m-win_amd64.whl

If the installation process complains compiler not found, you need to install Microsoft Visual C + + compiler for Python 2.7 , downloaded at (https://www.microsoft.com/en-us/download/details.aspx?id=44266). We recommend installing it by

msiexec /i VCForPython27.msi ALLUSERS=1

After this compiler is installed, finish the above python-m pip install commands.

At this moment, does not install gevent yet. We need to install it after installing DIGITS.

CUDA 7.5

CUDA 7.5 can obtained at NVIDIA CUDA (https://developer.nvidia.com/cuda-downloads). Please select Windows 7 to download.

CuDNN 5.1

Download CuDNN 5.1 at NVIDIA website (https://developer.nvidia.com/cudnn). Please select CuDNN 5.1 for CUDA 7.5.

Caffe

Caffe can obtained at (https://github.com/bvlc/caffe/tree/windows). Note you need to the install Visual Studio to build Caffe. Before building it, enable Python support, CUDA and CuDNN by following instructions on the same page. Because we is using official CPython, please change the value of the Pythondir tag from C:\Miniconda2\ to C:\PYTHON27\ (assum E your CPython installation is the default C:\PYTHON27). After building it, configure your Python environment to include Pycaffe, which are described at (https://github.com/bvlc/ca Ffe/tree/windows#remark). Your Caffe.exe is inside Build\x64\release directory (if you made Release Build).

Graphviz

Graphviz is available at (www.graphviz.org/Download.php). Please note this site isn't always available online. The installation directory can not be contain space, so don ' t install it under the regular ' C:\Program Files (x86) ' Directory . Try something like ' C:\graphviz ' instead. When the installation directory contains space, Pydot could isn't launch the Dot.exe file, even it has no problem finding it . ADD the C:\graphviz\bin directory to your PATH.

Installing DIGITS

Clone DIGITS from github.com (https://github.com/nvidia/digits). From the command prompt (run as Administrator) and CD to DIGITS directory. Then type

python -m pip install -r requirements.txt

You could see the error about Pillow, like ValueError: jpeg is required unless explicitly disabled using --disable-jpeg, aborting If this happens, download Pillow Windows Installer (pillow-3.1.1.win-amd64-py2. 7.exe) at https://pypi.python.org/pypi/Pillow/3.1.1 and run the exectuables. After installing Pillow in the above, run

python -m pip install -r requirements.txt

Again.

After the above command, check if all required Python dependencies is met by comparing requirements.txt and output of the Following command.

python -m pip list

If gevent isn't v1.0.2, install it from the WHL file, downloaded previously from (Http://www.lfd.uci.edu/~gohlke/pythonli bs/).

python -m pip install gevent-1.0.2-cp27-none-win_amd64.whl

It should uninstall the gevent you had, and install Gevent 1.0.2.

Because ReadLine is not a available in Windows, you need to the install one additional Python package.

python -m pip install pyreadline
Running DIGITS

First, check if Caffe executable is included in your PATH environment variable. If not, add it.

set PATH=%PATH%;MY_CAFFE_ROOT\Build\x64\Release

Replace my_caffe_root with your local CAFFE directory.

Launch DIGITS devserver with the following command:

python -m digits

Point your browser to localhost:5000. You should is able to the see DIGITS.

Troubleshooting

No module named Wtforms

Pip Install Wtforms

Invalid version: ' Caffe_version '

windows/caffe/caffe.vcxproj<PostBuildEvent> <Command>"$ (scriptsdir) \fixgflagsnaming.cmd" "$ (OutDir)"$ (Configuration) </Command> </PostBuildEvent> + <ClCompile> + <preprocessordefinitions&gt ; ndebug;% ( Preprocessordefinitions); caffe_version=1.0.0-rc3</preprocessordefinitions> + </ClCompile> </ItemDefinitionGroup> <ite Mgroup> <clcompile include=".. \.. \tools\caffe.cpp"/>Windows/pycaffe/pycaffe.vcxproj<ItemDefinitionGroup> <ClCompile> <disablespecificwarnings>4003</disablespecificwarnings& Gt + <preprocessordefinitions condition="' $ (Configuration) |$ (Platform) ' = = ' release|x64 '">ndebug;% ( Preprocessordefinitions); caffe_version=1.0.0-rc3</preprocessordefinitions> </ClCompile> <PreBuildEvent> <comm And>"$ (scriptsdir) \pythonprebuild.cmd" "$ (SolutionDir)" "$ (protocdir)" "$ (OutDir)"</Command>

No module named Flask.ext.socketio

Pip Install Flask-socketio
Pip Install-i flask==0.10.1

No module named Lmdb

Pip Install Lmdb

Finally python-m digits start

Open Browser input: localhost:5000 can see

WIN10 installation Digits

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.