# YOLO in caffe
## Usage
* run "create_yolo_prototxt.py" to create .prototxt files
* run "create_yolo_caffemodel.py" to create .caffemodel files
* run "yolo_main.py" to call yolo in caffe
## Convert yolo's (.weight) files to caffemodel
* first, you need to download the pretrained yolo weight files (http://pjreddie.com/darknet/yolov1/) and .cfg files (https://github.com/pjreddie/darknet/tree/master/cfg/yolov1)
* run create_yolo_prototxt.py to create .prototxt files
* after that, run create_yolo_caffemodel.py to create the caffemodel from yolo's (.weight) files
* "python create_yolo_caffemodel.py -m train_val_prototxt.filename -w yoloweights_filename -o caffemodel_filename"
replace train_val_prototxt.filename with /your/path/to/yolo_train_val.prototxt (yolo_small, yolo_tiny),
yoloweights_filename with /your/path/to/yolo.weights (yolo-small, yolo-tiny), and caffemodel_filename with your output caffemodel name,
e.g.
"python create_yolo_caffemodel.py -m yolo_train_val.prototxt -w yolo.weights -o yolo.caffemodel"
## Main file usage
run yolo_main.py to do yolo object detection for the input image
* "python yolo_main.py -m model_filename -w weight_filename -i image_filename"
replace model_filename with /your/path/to/yolo_small_deploy.prototxt or yolo_tiny_deploy.prototxt,
weight_filename with /your/path/to/yolo_tiny.caffemodel or yolo_small.caffemodel and image_filename with the target image file
## Requirements
* Caffe, pycaffe
* Opencv2
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
yolo_基于caffe的yolo实现.zip (17个子文件)
yolo_基于caffe的yolo实现
create_yolo_caffemodel.py 4KB
create_yolo_prototxt.py 11KB
prototxt
yolo_tiny_train_val.prototxt 10KB
yolo_small_deploy.prototxt 8KB
yolo_train_val.prototxt 11KB
yolo_small_train_val.prototxt 12KB
yolo_deploy.prototxt 8KB
yolo_tiny_deploy.prototxt 5KB
images
person.jpg 111KB
horses.jpg 130KB
dog.jpg 160KB
eagle.jpg 139KB
cat-1.jpg 140KB
horses-1.jpg 60KB
cat.jpg 7KB
yolo_main.py 5KB
README.md 1KB
共 17 条
- 1
资源评论
极智视界
- 粉丝: 2w+
- 资源: 1351
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功