mrkeyoor.com_
Thu 17 Sept 03:56 UTC
AI Toolsevaluationupdated 17 Sept 2026

yolov5 review

YOLOv5 is a PyTorch codebase for object detection, instance segmentation, and image classification. It trains custom models, runs pretrained checkpoints, and exports them for several runtimes. Its maintainer now positions this repository for legacy projects and reproducibility, while directing new Ultralytics work to `ultralytics/ultralytics`.

Verdict

Our run of YOLOv5 installed 89 packages using 6,001 MB, then stopped test collection because libGL.so.1 was missing, so a fresh project should start with the main Ultralytics repository instead. Keep YOLOv5 for an existing model, a pinned checkpoint, or a reproduction that depends on its scripts. Budget the full ML environment and verify the exact export target before carrying it into production.

We ran it

Lab card: what happened when we ran yolov5
Install✓ · 66s89 packages · 6001 MB
Build✓ · 7s
Tests✗ · 32s5 passed · 0 failed · 2 errors of 7 (pytest)
Known vulns0(pip-audit)
Repo143 files~16,707 lines of source · 1.9 MB · 7 CI workflows · tests dir

Answers from our run

Does yolov5 build from source?

Dependencies installed in 66 seconds (89 packages), and the build succeeded in 7 seconds. We cloned commit 402e17d into a clean Debian container with 3 CPUs and no project-specific setup.

Do yolov5's tests pass?

Yes: 5 of 7 passed when we ran the project's own test command (pytest), with 2 collection errors. Some failures need services or credentials a bare container does not have.

Does yolov5 have known vulnerabilities in its dependencies?

pip-audit found none in the dependency tree at the time of our run.

Who should not use yolov5?

Fresh Ultralytics projects: maintainer issue 13796 says new models, features, documentation, and production workflows live in ultralytics/ultralytics.

What are the alternatives to yolov5?

Ultralytics, Detectron2, MMDetection. Our run of YOLOv5 installed 89 packages using 6,001 MB, then stopped test collection because `libGL.

Setup2/566-second install used 6,001 MB; tests needed libGL.so.1
Docs5/5Detailed guides cover training, inference, export, and three tasks
Community4/558,021 stars, with new work directed to the main repository
Maturity4/5v7.0 is established, while new model work has moved elsewhere

Discussed on

  1. hnRoboflow and Ultralytics Partner to Streamline YOLOv5 MLOps5 points

Who it’s for

Teams maintaining a deployed YOLOv5 model or training pipeline.
Researchers reproducing results tied to YOLOv5 scripts and checkpoints.
PyTorch users who need the repository's detection, segmentation, or classification workflows.
Engineers prepared to test their chosen export format and deployment hardware.

Who it’s NOT for

Fresh Ultralytics projects: maintainer issue 13796 says new models, features, documentation, and production workflows live in ultralytics/ultralytics.
Closed-source commercial products that cannot meet AGPL-3.0 terms and will not obtain an Enterprise License.
Small containers where a 6,001 MB Python environment is unacceptable: that was the installed size in our sandbox.
Headless deployments that assume Python packages are sufficient: our tests could not import cv2 because the Debian image lacked libGL.so.1.

Setup reality

Our sandbox installed 89 Python packages in 66 seconds and used 6,001 MB. The build succeeded in 7 seconds. Tests ended with exit code 1 after 32 seconds: 5 passed, 0 failed, and 2 hit collection or setup errors out of 7. Pip-audit found 0 known vulnerabilities.

The README requires Python 3.8 or newer and PyTorch 1.8 or newer. Pretrained checkpoints, sample data, and some training datasets download on demand, so the quick starts need network access and more disk. Basic local use needs no hosted API credential.

A plain Python container was not enough for our test run. Importing OpenCV failed because libGL.so.1 was absent, stopping two test modules before their tests ran. The checkout had no Dockerfile, although the README links a published Docker image and hosted notebook options.

The maintainer reserves YOLOv5 for legacy work

The repository's latest release is v7.0, and maintainer issue 13796 says YOLOv5 remains available for legacy projects, reproducibility, and users who specifically need this codebase. The same notice sends new projects to ultralytics/ultralytics for newer models, features, fixes, and releases. That is the cleanest adoption rule. A working YOLOv5 model has a reason to stay. A new application should begin by comparing the current package.

Maintenance has not stopped. The repository was pushed on September 16, 2026, and an August change updated deprecated PyTorch AMP usage. Dependency bumps and documentation edits also continue. Those changes keep older projects working, and GitHub does not mark the repo as archived. The distinction matters because the latest tagged release is still v7.0 from November 22, 2022, while current model development happens elsewhere.

Three vision tasks remain available in v7.0

YOLOv5 v7.0 covers object detection, instance segmentation, and image classification. The repository includes separate training, validation, and prediction scripts, plus a PyTorch Hub entry point for pretrained or custom weights. Detection accepts local media, webcams, screens, directories, URL lists, and network streams. That range is useful when an older application already depends on the script layout or result objects.

Export is a large part of the appeal. The documentation covers ONNX, TensorRT, CoreML, TensorFlow Lite, OpenVINO, and other targets, while v7.0 introduced the segmentation workflow. Each target still needs its own acceptance run. A successful PyTorch prediction does not prove numerical agreement, operator support, or acceptable resource use after conversion, and our lab did not benchmark inference or export any model.

What happened when we ran it

We measured a 66-second install of 89 packages, with 6,001 MB used on disk. The build completed in 7 seconds. Pytest ran for 32 seconds and reported 5 passed, 0 failed, and 2 collection or setup errors out of 7. Pip-audit reported 0 known vulnerabilities in the installed Python packages.

The two errors occurred while pytest imported tests/test_flask_rest_api.py and tests/test_invariant_common.py. Importing cv2 raised ImportError: libGL.so.1: cannot open shared object file. The log does not show a failed assertion or another cause. Our measurement setup used commit 402e17d in an unprivileged Python 3.12 Debian container with 3 CPUs, 8 GB of RAM, and no secrets.

A 6,001 MB install changes what easy setup means

The 143-file checkout occupied only 1.9 MB and contained about 16,707 lines of source, but its installed environment reached 6,001 MB. That is a sharp difference on CI runners, edge devices, or small cloud disks. The repository build itself took 7 seconds, so source compilation was not the expensive part of our run. Dependencies and their runtime libraries deserve their own capacity check.

The README asks for Python 3.8 or newer and PyTorch 1.8 or newer. Model weights download automatically for common inference paths, and training examples can fetch datasets as well. No hosted credential is required for the core local path, but network access and cache placement matter. Our checkout had 7 CI workflow files and a tests directory, yet no Dockerfile. The project instead links a published container image, Colab, Kaggle, and other prepared environments.

AGPL-3.0 may settle the commercial decision

YOLOv5 uses AGPL-3.0, and the README offers a separate Enterprise License for commercial applications that want to avoid those open-source obligations. A company embedding the code or models into a closed product should have counsel evaluate the intended distribution and service architecture. The popularity of the repository does not soften the license terms. Decide that point before building a training pipeline around it.

Apache-2.0 alternatives such as Detectron2 and MMDetection may be easier for organizations with policies against AGPL code, though they do not preserve YOLOv5 APIs or checkpoints. The main ultralytics/ultralytics repository uses the same AGPL and enterprise-license approach. Moving there addresses the legacy issue. The licensing choice stays the same. For a proprietary product, model quality and developer familiarity come after permission to ship.

September 2026 activity maintains the compatibility branch

GitHub showed 58,021 stars and 31 open issues when fetched, with no open pull requests. The last push was September 16, 2026, one day before this review, but the latest release tag remained the 2022 v7.0 release. Recent commits include dependency updates, a PyTorch API migration, repository configuration, and links to newer YOLO generations. Those are useful maintenance signals without changing the maintainer's stated direction for new work.

YOLOv5 still makes sense when an existing dependency requires it. Keep it for a trained v5 checkpoint, a paper reproduction, or an application whose post-processing expects these result objects. For a blank repository, start with the main Ultralytics package and compare alternatives before writing integration code. If you do stay, reproduce the 5 passing tests after adding the required system library and test every export on its real device.

Alternatives

ProjectWhat it isPick it when
Ultralytics gh↗The current home for newer Ultralytics YOLO models and workflows.pick this instead for a new project, pose or oriented-box tasks, tracking, or the current unified CLI and Python API.
Detectron2An Apache-2.0 platform for detection, segmentation, and visual recognition research.pick this instead when research components and an Apache-2.0 codebase matter more than YOLOv5 checkpoint compatibility.
MMDetectionAn Apache-2.0 detection toolbox organized around configs and model families.pick this instead when you want to compare many detector families inside one research framework.

What people are saying

  1. [velocity-scout] ultralytics/yolov5

Sources

  1. YOLOv5 README
  2. Maintainer guidance for new Ultralytics projects
  3. YOLOv5 v7.0 release
  4. YOLOv5 license
  5. PyTorch AMP maintenance commit

More ai tools reviews

eve · MemOS · LongCat-Video · Concat · DLSS5-Feeder · Concat · the whole board →