# YOLO_tensorflow
(Version 0.3, Last updated :2017.02.21)
### 1.Introduction
This is tensorflow implementation of the YOLO:Real-Time Object Detection
It can only do predictions using pretrained YOLO_small & YOLO_tiny network for now.
(+ YOLO_face detector from https://github.com/quanhua92/darknet )
I extracted weight values from darknet's (.weight) files.
My code does not support training. Use darknet for training.
Original code(C implementation) & paper : http://pjreddie.com/darknet/yolo/
### 2.Install
(1) Download code
(2) Download YOLO weight file from
YOLO_small : https://drive.google.com/file/d/0B2JbaJSrWLpza08yS2FSUnV2dlE/view?usp=sharing
YOLO_tiny : https://drive.google.com/file/d/0B2JbaJSrWLpza0FtQlc3ejhMTTA/view?usp=sharing
YOLO_face : https://drive.google.com/file/d/0B2JbaJSrWLpzMzR5eURGN2dMTk0/view?usp=sharing
(3) Put the 'YOLO_(version).ckpt' in the 'weight' folder of downloaded code
### 3.Usage
(1) direct usage with default settings (display on console, show output image, no output file writing)
python YOLO_(small or tiny)_tf.py -fromfile (input image filename)
(2) direct usage with custom settings
python YOLO_(small or tiny)_tf.py argvs
where argvs are
-fromfile (input image filename) : input image file
-disp_console (0 or 1) : whether display results on terminal or not
-imshow (0 or 1) : whether display result image or not
-tofile_img (output image filename) : output image file
-tofile_txt (output txt filename) : output text file (contains class, x, y, w, h, probability)
(3) import on other scripts
import YOLO_(small or tiny)_tf
yolo = YOLO_(small or tiny)_tf.YOLO_TF()
yolo.disp_console = (True or False, default = True)
yolo.imshow = (True or False, default = True)
yolo.tofile_img = (output image filename)
yolo.tofile_txt = (output txt filename)
yolo.filewrite_img = (True or False, default = False)
yolo.filewrite_txt = (True of False, default = False)
yolo.detect_from_file(filename)
yolo.detect_from_cvmat(cvmat)
### 4.Requirements
- Tensorflow
- Opencv2
### 5.Copyright
According to the LICENSE file of the original code,
- Me and original author hold no liability for any damages
- Do not use this on commercial!
### 6.Changelog
2016/02/15 : First upload!
2016/02/16 : Added YOLO_tiny, Fixed bug that ignores one of the boxes in grid when both boxes detected valid objects
2016/08/26 : Uploaded weight file converter! (darknet weight -> tensorflow ckpt)
2017/02/21 : Added YOLO_face (Thanks https://github.com/quanhua92/darknet)
徐浪老师
- 粉丝: 8526
- 资源: 1万+
最新资源
- YOLOv5 人脸口罩识别 免费提供数据集
- 手机垫圈涂布机step全套技术资料100%好用.zip
- Pem电解槽平行双流道非等温模型,包含阴极侧和阳极侧的流道,考虑电化学反应,阴阳极侧的流体流动与传质,固体和流体传热 多物理场耦合包括反应流、非等温流动、电化学热 稳态求解器采用全耦合方式,参数化
- 双轨散热翻板机sw18可编辑全套技术资料100%好用.zip
- 2025年工作日workday MySQL文件
- Matlab 电力系统各种故障波形仿真,单相接地故障,两相间短路,两相接地短路,三相短路
- html唯美表白网页源码/炫酷表白网页html代码【html表白代码动态网页】
- 文件自动分类整理工具按名称、目录、大小、日期、属性、内容或正则表达式分类.rar
- Azkaban的安装包以及需要的jar包全部
- Nice Ride MN 在双子城(明尼苏达州明尼阿波利斯市/圣保罗市)提供的历史数据
- 新建文件夹 (2).zip
- 双加强筋定位机构sw19全套技术资料100%好用.zip
- 基于matlab的手写体数字识别程序 万字文档 本链接包含代码和文档,可实现单个或多个手写体数字的识别,附带gui界面 程序还可以实现灰度化,二值化,去噪声等图像预处理,具体识别效果如下图 附赠详
- 双螺旋输送机(sw14可编辑+工程图)全套技术资料100%好用.zip
- 深度学习中全连接神经网络与卷积神经网络融合用于猫狗二分类任务(PyTorch实现)-含代码设计和报告
- fpga远程更新过程防止变成砖方案 xilinx 7系列 无需多余电路 将方案中的代码嵌入到远程更新程序中使用 不含远程更新方案及代码
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈