finds.dev← search

// the find

ayooshkathuria/pytorch-yolo-v3

★ 3,313 · Python · updated Jan 2024

A PyTorch implementation of the YOLO v3 object detection algorithm

A PyTorch reimplementation of YOLOv3 inference, written as companion code to a 5-part Paperspace tutorial series. It is primarily a teaching artifact — the author built it to explain the architecture, not to ship a production detector. If you want to understand how YOLO v3 works mechanically in PyTorch, this is a reasonable starting point.

The code is intentionally minimal — no training loop, no framework bloat, just the detection forward pass stripped down to what YOLOv3 actually needs. The accompanying tutorial series is thorough and walks through every architectural decision. The darknet weight-loading code is clean and well-commented, which is the hardest part to get right when porting from C. Multi-scale detection across the three YOLO heads is correctly implemented.

No training code — detection only, which means you cannot fine-tune on your own classes without switching repos entirely. Pinned to PyTorch 0.4 and Python 3.5; modern PyTorch has breaking changes in tensor operations and the `.data` access pattern used here. The author explicitly abandoned maintenance in the README. Video input is locked to .avi via OpenCV's VideoCapture, which is an unnecessary constraint. By any measure this is superseded by Ultralytics YOLOv5/v8, which has training, export, and active maintenance.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →