yolov4-tiny-pytorch  by bubbliiiing

PyTorch code for YOLOv4-tiny object detection

created 5 years ago
818 stars

Top 44.3% on sourcepulse

GitHubView on GitHub
Project Summary

This repository provides a PyTorch implementation of the YOLOv4-tiny object detection model, designed for users who need to train custom detection models. It offers a streamlined approach to training, prediction, and evaluation, making it accessible for researchers and developers working with object detection tasks.

How It Works

The project implements the YOLOv4-tiny architecture in PyTorch, a lightweight variant of YOLOv4 optimized for speed and efficiency. It leverages standard PyTorch training loops and includes utilities for data annotation, model training, inference, and performance evaluation (mAP). The implementation supports various optimizers (Adam, SGD), learning rate schedulers (step, cos), and includes features like adaptive learning rate adjustment based on batch size and image cropping.

Quick Start & Requirements

  • Install: pip install -r requirements.txt (requires PyTorch 1.2.0)
  • Prerequisites: PyTorch 1.2.0, Python. GPU with CUDA is recommended for training.
  • Data: Requires VOC format datasets. Links to pre-packaged VOC datasets and pre-trained weights are provided via Baidu NetDisk.
  • Docs: Detailed instructions for training, prediction, and evaluation are available within the README.

Highlighted Details

  • Supports multi-GPU training.
  • Includes options for attention mechanisms (SE, CBAM, ECA).
  • Offers configurable learning rate schedules and optimizers.
  • Provides functionality for FPS testing and video prediction.

Maintenance & Community

The repository is part of a larger collection of YOLO implementations by the same author, indicating potential for cross-compatibility and shared development. No specific community channels (Discord, Slack) or active contributor information are listed.

Licensing & Compatibility

The repository does not explicitly state a license. The presence of links to other GitHub repositories suggests a focus on research and educational use. Commercial use would require clarification of licensing terms.

Limitations & Caveats

The project specifies a dependency on PyTorch 1.2.0, which is an older version and may pose compatibility issues with newer PyTorch features or other libraries. Data download links are via Baidu NetDisk, which may be inconvenient for some users. The README does not detail specific hardware requirements beyond the PyTorch version.

Health Check
Last commit

1 year ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
4 stars in the last 90 days

Explore Similar Projects

Starred by Stas Bekman Stas Bekman(Author of Machine Learning Engineering Open Book; Research Engineer at Snowflake).

fms-fsdp by foundation-model-stack

0.4%
258
Efficiently train foundation models with PyTorch
created 1 year ago
updated 1 week ago
Feedback? Help us improve.