Win10 安装 digits

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 webpage 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 cython
python -m pip install numpy-1.11.0+mkl-cp27-cp27m-win_amd64.whl
python -m pip install scipy-0.17.0-cp27-none-win_amd64.whl
python -m pip install matplotlib-1.5.1-cp27-none-win_amd64.whl
python -m pip install scikit_image-0.12.3-cp27-cp27m-win_amd64.whl
python -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 that compiler is installed, finish the above python -m pip install commands.

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

CUDA 7.5

CUDA 7.5 can be 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 be obtained at (https://github.com/bvlc/caffe/tree/windows). Note you need to install Visual Studio 2013 to build Caffe. Before building it, enable Python support, CUDA and CuDNN by following instructions on the same page. Because we are using Official CPython, please change the value of PythonDir tag from C:\Miniconda2\ to C:\PYTHON27\ (assume your CPython installation is the default C:\PYTHON27). After building it, configure your Python environment to include pycaffe, which is described at (https://github.com/bvlc/caffe/tree/windows#remark). Your caffe.exe will be inside Build\x64\Release directory (if you made release build).

Graphviz

Graphviz is available at (www.graphviz.org/Download.php). Please note this site is not always available online. The installation directory can not 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 not 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 may see 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 way, run

python -m pip install -r requirements.txt

again.

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

python -m pip list

If gevent is not v1.0.2, install it from the whl file, downloaded previously from (http://www.lfd.uci.edu/~gohlke/pythonlibs/).

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 available in Windows, you need to 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 be able to 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>NDEBUG;%(PreprocessorDefinitions);CAFFE_VERSION=1.0.0-rc3</PreprocessorDefinitions>
 +    </ClCompile>
    </ItemDefinitionGroup>
    <ItemGroup>
      <ClCompile Include="..\..\tools\caffe.cpp" />

 windows/pycaffe/pycaffe.vcxproj

   <ItemDefinitionGroup>
      <ClCompile>
        <DisableSpecificWarnings>4003</DisableSpecificWarnings>
 +      <PreprocessorDefinitions Condition="‘$(Configuration)|$(Platform)‘==‘Release|x64‘">NDEBUG;%(PreprocessorDefinitions);CAFFE_VERSION=1.0.0-rc3</PreprocessorDefinitions>
      </ClCompile>
      <PreBuildEvent>
        <Command>"$(ScriptsDir)\PythonPreBuild.cmd" "$(SolutionDir)" "$(ProtocDir)" "$(OutDir)"</Command>

No module named flask.ext.socketio

pip install flask-socketiopip install -I Flask==0.10.1

No module named lmdb

pip install lmdb

最后 python -m digits 启动

打开浏览器输入: localhost:5000就可以看到

时间: 2024-10-16 16:37:24

Win10 安装 digits的相关文章

win10安装net 3.5

win10安装.net 3.5 首先,win10安装.net 3.5,通过网络在线安装,由于下载原因等不能正确安装,因此可以选择使用光盘镜像安装. 1.解压光盘镜像文件 2.进入到解压文件夹,下面为进入后的文件截图. 进入 sources找到sxs文件夹. 3.执行安装命令 在cmd(管理员权限)下运行以下命令 Dism /online /enable-feature /featurename:NetFX3 /All /Source:D:\sources\sxs /LimitAccess 其中,

Win10安装framework3.5

.NET少不了framewrok,其版本也比较多,默认情况下win7及上版本没有安装framework3.5,但有些软件又需要它,比如arcgis软件在安装时会检测是否存在3.5,如果没有,将不会正常继续下去. 通常,在win7中安装framework3.5,是在程序与功能中更新window功能,比较快速,win10中也可以这样做,但速度太慢.这里分享一个网上查到的可行的解决方案: 1.准备并加载win10安装的镜像文件:(我把它加载后,盘符为J) 2.运行cmd(必须以管理身份运行,否则可能报

win10安装sqlserver2016准备

win10安装sql server2016需要注意: 一.下载jdk-8u121-windows-x64.exe这个安装,这个检测不通过会影响安装 二.把万维网服务的这个去掉,这个影响数据库实例的创建, 现在安装就一路畅通了,安装完,配置数据库实例,测试,ok 三.到官网下载,Microsoft SQL Server Management Studio 对数据库进行界面管理(sql2016默认没有这个插件) 个人出现的问题,欢迎交流学习

WIN10安装VS2013出现兼容性问题解决

在WIN10安装VS2013时,会提示“windows程序兼容模式已打开”,通过搜索引擎搜索的常见方案为: 1.使用命令行安装,进入vs_ultimate文件所在目录,输入:vs_ultimate /Uninstall,进入界面后选择修复.经实测此方法可以正常安装,但无法选择你需要安装的内容,会装上N多不需要的东西. 2.运行gpedit.msc , 打开本地组策略编辑器.计算机配置->管理模板->windows组件-> 应用程序兼容性,启用“关闭应用程序兼容性引擎”和“关闭程序兼容性助

win10 安装microsoft.net framework3.5

转载于:https://www.windows10.pro/win10-net-framework-3-5/ 之前手残不小心把microsoft.net framework3.5删了,结果导致Sql Server2014不能用了.而microsoft.net framework3.5删很方便,但是安装却会出现各种问题.网上找了好多方法都试过,始终安不上,今天把这个教程转载给大家,值得一试!我是安装上了. Win10离线安装.NET Framework 3.5的方法技巧(附离线安装包下载) 发表于

WIN7与WIN10 安装

---恢复内容开始--- 开始的操作系统是黑白屏的DOS,随着光标的一闪一闪并逐渐后移,一条条指令输入电脑,并执行相关指令完成任务.慢慢的,视窗操作系统最初是基于DOS的windows 9X内核WIN 95.WIN 98.WIN ME,直到WINDOWS NT技术的出现,产生了WIN 2000.WIN XP.WIN VISTA.WIN 7直到今天的WIN 10. 1.安装win7 由于WIN7之前的操作系统对UEFI支持不太好,主要是因为显卡驱动支持不好和CSM模块的兼容性问题,导致Window

Win10安装.net framework 4.0失败提示已是操作系统一部分如何解决

有位用户因为工作需求,所以想在win10系统电脑中安装microsoft .net framework 4.0.可是在安装过程中却失败了,还遇到提示"Microsoft.net framework 4已是此操作系统的一部分.不需要安装.net framework 4可再发行组件包.已在此计算机上安装相同或更高版本的.net framework 4".这该怎么办呢?下面小编就向大家分享具体解决方法. 原因是Win10系统默认已经集成.net framework 4.6 理论上是向下兼容的

WIN10安装与升级的方法

WIN10 已经出来有两天了,但是似乎很多人都在升级上遇到了各种问题:在这里将带你快速的上手WIN10. 通过两种方式:自带更新方式+U盘安装方式. 感受 WIN8的侧边栏这个卡掉个人认为没有那么便捷了. 另外WIN10由于进行了多设备同步适配,所以在其高分屏适配上比之WIN8要好的多. 在Mac视网膜电脑上,需要调到全分辨率然后设置200%的放大效果会比较OK. 磁盘占用有所优化,使用一段时间后没有发现磁盘100%的情况. 操作便捷性上还行,能接受,使用升级的方式所有软件都不用动只会更改电脑系

Win10安装office2013提示错误1406的解决方法

Win10已经发布了很长一段时间,也有遇到很多的问题.这不又有澳门金沙遇到了问题了,用户在安装office2013的时候,提示错误1406.怎么办?遇到这样的问题,我们应该怎么去解决它呢?下面就和大家说一下Win10安装office2013提示错误1406的解决方法. 具体方法如下: 1.在文件资源管理器的“快速访问”栏里输入regedit,打开注册表编辑器,到HKEY_CURRENT_USER\Software\Microsoft\Office\: 2.将注册表编辑器左栏的“office”及其