Skip to content

A simple implementation using Tensorflow-2 of some of the main ideas in the YOLO-v2 model.

License

Notifications You must be signed in to change notification settings

FlorisHoogenboom/yolo-v2-tf-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yolo-v2-tf-2

This is a basic implementation of Yolo-v2 using Tensorflow 2 and eager execution. The purpose of this repository is not to provide the most performant model but rather to explore the ideas that underpin Yolo-v2 and subsequent versions.

Motivation

The goal of this implementation is not to be the most performant implementation of this algorith. Rather, it is inteded to provide a simple overview of the mechanics involved in implementing an object detector using anchor boxes. Even though Yolo might not be the most complex network out there, the implementation of the anchor layer and loss computation are not trival.

Usage

Clone this repository and in the root run pip install .. This should set you up and make the yolo package available to you. To see how to use the model please refer to this demo notebook.

When initialized the network is ofcourse untrained. Weights trained on Pascal VOC are available uppon request. WARNING: These weights are intended for illustrational purposes. If you want to run this for quality of detections, please use the original weights as available on the yolo project page.

Questions you'll probably have after browsing this repo

  • Why v2 and not v3?: Yolo-v2 is relatively more simple than yolo-v3 since it only has a single anchor/detector head. However, this implementation is done in such a way that one could easilly add multiple anchor heads in the yolo.model.Yolo implementation (see here)
  • Is this performance wise comparable to the original Yolo implementation: No. Don't use this if you care about quality. The goal of this repo is understanding.
  • Which backbones are available: Currently the darknet backbone is hardcoded. I am working on adding support for other backbones.

About

A simple implementation using Tensorflow-2 of some of the main ideas in the YOLO-v2 model.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published