caffe web demo 搭建
来源:互联网 发布:股票投资 知乎 编辑:程序博客网 时间:2024/05/16 18:30
Web Demo
需要的条件
demo 需要Python支持和一些依赖,确保已经安装依赖,运行: pip install -r examples/web_demo/requirements.txt
, 并确定已经编译了Python Caffe并且包含在PYTHONPATH
中(seeinstallation instructions).
确保已经下载了 Reference CaffeNet Model 和 the ImageNet Auxiliary Data:
./scripts/download_model_binary.py models/bvlc_reference_caffenet./data/ilsvrc12/get_ilsvrc_aux.sh
NOTE: 如果运行有问题,请尝试重新下载auxiliary files.
运行
执行 python examples/web_demo/app.py
将会启动demo服务, 本机访问地址http://0.0.0.0:5000
.可以开启web server的debug模式 , 或者改变端口号:
% python examples/web_demo/app.py -hUsage: app.py [options]Options: -h, --help show this help message and exit -d, --debug enable debug mode -p PORT, --port=PORT which port to serve content on
“maximally accurate” 结果如何产生?
In a nutshell: ImageNet predictions are made at the leaf nodes, but the organization of the project allows leaf nodes to be united via more general parent nodes, with ‘entity’ at the very top.To give “maximally accurate” results, we “back off” from maximally specific predictions to maintain a high accuracy.The bet_file
that is loaded in the demo provides the graph structure and names of all relevant ImageNet nodes as well as measures of information gain between them.Please see the “Hedging your bets” paper fromCVPR 2012 for further information.
界面展示
问题和解决
1 问题
Traceback (most recent call last):
File "./scripts/download_model_binary.py", line 5, in <module>
import yaml
ImportError: No module named yaml
解决:sudo apt-get install python-yaml
2 问题
python examples/web_demo/app.py
Traceback (most recent call last):
File "examples/web_demo/app.py", line 6, in <module>
import flask
ImportError: No module named flask
解决:sudo apt-get install python-flask
3 问题
Traceback (most recent call last):
File "examples/web_demo/app.py", line 9, in <module>
import tornado.wsgi
ImportError: No module named tornado.wsgi
解决:sudo apt-get install python-tornado
4 问题
Traceback (most recent call last):
File "examples/web_demo/app.py", line 12, in <module>
import pandas as pd
ImportError: No module named pandas
解决:sudo apt-get install python-pandas
5 问题
Traceback (most recent call last):
File "examples/web_demo/app.py", line 18, in <module>
import caffe
ImportError: No module named caffe
解决:
pls import caffe in $CAFFE/python or add the path to sys.path
- caffe web demo 搭建
- caffe web demo 搭建
- Caffe testing picture demo
- caffe示例实现之7Flask web服务器上的图像分类demo
- Caffe-faster-rcnn demo测试
- py-faster-rcnn(running the demo): ubuntu14.04+caffe+cuda7.5+cudnn5.1.3+python2.7环境搭建记录
- Caffe-环境搭建
- Caffe下环境搭建
- ubuntu 搭建caffe
- 搭建caffe问题总结
- 1.caffe搭建
- caffe环境搭建笔记
- 深度学习caffe搭建
- 搭建Caffe环境
- Ubuntu caffe 搭建
- win10+cpu+caffe搭建
- MacOS搭建Caffe
- caffe环境搭建
- (笔记)Spring实战_事务管理(4)_声明式事务
- 原理图(2)--电源电路
- ssm配置问题
- Qt在Windows下的三种编程环境搭建
- 用python爬虫方式:刷文章阅读量
- caffe web demo 搭建
- 求N个数的最小公倍数
- Linux下的文件操作命令(文件显示命令
- 增加学习正反馈的4大方法
- HDU 1829 A Bug's Life【种类并查集】
- 微机原理--第三章(3)传送指令(2)
- 算法入门(1)——分治算法(Divide and Conquer)
- Excel学习笔记(2)——公式,运算符,引用方式,名称
- 框架入门 实战篇 (下)留言板功能实现