# argusswift/YOLOv4-pytorch

This is a pytorch repository of YOLOv4, attentive YOLOv4 and mobilenet YOLOv4 with PASCAL VOC and COCO

Repository: https://github.com/argusswift/YOLOv4-pytorch
Canonical: https://ross.abutalabs.com/products/argusswift-yolov4-pytorch
Language: Python
License Family: other
Topics: yolov4, object-detection, pytorch, senet, cbam, mobilenetv2, mobilenetv3, attention
Last push: 2024-05-03T19:45:19+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 2236, "days_push": 852, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1676, forks 323 (observed 2026-08-28T04:05:20.607115+00:00)

## What it is
A PyTorch re-implementation of YOLOv4 object detection with variants including attentive YOLOv4 (SEnet, CBAM, CoordAttention) and MobileNetv2/v3 backbones. It supports training and evaluation on PASCAL VOC, COCO, and custom datasets.

## Use cases
- train a YOLOv4 object detector in PyTorch
- train YOLOv4 on a custom dataset
- compare attention modules like SEnet and CBAM in a detection backbone
- build a lightweight mobile-friendly detector with MobileNetv3 YOLOv4
- evaluate object detection mAP on PASCAL VOC or COCO
- experiment with focal loss, CIOU, mixup, and multi-scale training

## When to choose
- you want a readable, hackable PyTorch YOLOv4 codebase for research or learning
- you need attention-augmented or MobileNet backbone variants of YOLOv4
- you are training on PASCAL VOC, COCO, or small custom datasets

## When to avoid
- you need the latest YOLO versions (YOLOv7/v8/v10) or highest accuracy
- you need production-grade inference serving or long-term maintenance
- you require a permissively licensed project, since it uses the Anti-996 license

## Facets
- artifact type: library
- maturity: maintenance
- function: machine-learning, deep-learning, computer-vision, image-processing
- domain: computer-vision, deep-learning, machine-learning, image-processing
- platform: python, windows
- tags: yolov4, object-detection, pytorch, attention-mechanisms, mobilenet, pascal-voc, coco, model-training, linux, gpu

## Member repositories
- argusswift/YOLOv4-pytorch (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:20.607115+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:42:25.780772+00:00, confidence not recorded.
  - readme: https://github.com/argusswift/YOLOv4-pytorch (fetched 2026-08-28T04:05:20.607115+00:00, sha 1621f04d2e47)
- Data as of 2026-08-30T08:39:29.467469+00:00.
