Giter Site home page Giter Site logo

yolov3-caffe's Introduction

YOLOv3-caffe

usage:

python detect_one.py --image=images/dog-cycle-car.png

Acknowledgements

The major part is adapted from Ayoosh Kathuria's

amazing tutorial on YOLOv3 implementation in pytorch.

The weight files can be downloaded from YOLOv3-caffe. (ignore the prototxt file with interp layer, explanation below)

I also made a version where batchnorm computation is merged into convolution. The model can be downloaded from YOLOv3-caffe-mergebn

For people outside China, you can download from googledrive YOLOv3-caffe

Notes

A simplest YOLOv3 model in caffe for python3.

This is merely a practice project. Note that I implemented an interp layer in python for compatibility.

This is because interp layer is only viable in deeplab caffe, not in the official one.

Moreover, the behavior of interp layer in deeplab is different from torch.nn.UpsamplingBilinear2d,

in a sense that pytorch rescales (3,13,13) to (3,26,26) with a factor of 2, but deeplab caffe

rescales it to (3,25,25) with the same factor. This causes weird performance degradation.

To make the model dependent on C only, you need to customize the interp layer.

In deeplab version, note in interp_layer.cpp, you need to fix the logic (take an example):

height_out_ = height_in_eff_ + (height_in_eff_ - 1) * (zoom_factor - 1)

into

height_out_ = height_in_eff_ * zoom_factor

yolov3-caffe's People

Contributors

jasonlovescoding avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.