2 Star 0 Fork 0

mirrors_wkentaro / yolo2-pytorch

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

YOLOv2 in PyTorch

This is a PyTorch implementation of YOLOv2. This project is mainly based on darkflow and darknet.

For details about YOLO and YOLOv2 please refer to their project page and the paper: YOLO9000: Better, Faster, Stronger by Joseph Redmon and Ali Farhadi.

I used a Cython extension for postprocessing and multiprocessing.Pool for image preprocessing. Testing an image in VOC2007 costs about 13~20ms.

TODO: Build the loss function for training.

Installation and demo

  1. Clone this repository

    git clone git@github.com:longcw/yolo2-pytorch.git
  2. Build the reorg layer (tf.extract_image_patches)

    cd yolo2-pytorch
    ./make.sh
  3. Download the trained model yolo-voc.weights.h5 and set the model path in demo.py

  4. Run demo python demo.py.

Evaluation

Follow this project (TFFRCNN) to download and prepare the training, validation, test data.

Since the program loading the data in yolo2-pytorch/data by default, you can set the data path as following.

cd yolo2-pytorch
mkdir data
cd data
ln -s $VOCdevkit VOCdevkit2007

Set the path of the trained_model in yolo2-pytorch/cfgs/config.py.

cd faster_rcnn_pytorch
mkdir output
python test.py

###Discuss I am confused about the difference between YOLO and RPN (region proposal network).

YOLO divides the image into a grid and predicts bounding boxes and probabilities for each cell in the grid. I think this is what RPN does, especially for YOLOv2 which uses a set of anchors for each cell.

One of the main difference between YOLO and RPN is the loss functions. YOLO limits predicted location coordinates in one of the cells during training and testing while RPN associates predicted ROIs with ground-truth boxes without any limitation. Is is enough to make a region proposal method become a detector? Or I have missed something important. Welcome to discuss with me.

空文件

简介

取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/mirrors_wkentaro/yolo2-pytorch.git
git@gitee.com:mirrors_wkentaro/yolo2-pytorch.git
mirrors_wkentaro
yolo2-pytorch
yolo2-pytorch
master

搜索帮助