YOLOv5 detectors you train, serve and export

YOLOv5 is the anchor-based real-time object detector from Ultralytics. In Supervisely it has its own train, serve and export apps, which suit teams that already run YOLOv5 in production and want to retrain it on new labels without changing their inference code.

The Train YOLOv5 dashboard with loss and metric charts and predicted boxes
Publisher
Ultralytics
Labels
  • Any shape, converted to bounding boxes
Apps
Train, Serve, Export

Apps in the Supervisely Ecosystem

Every model in Supervisely comes as a Supervisely App: a module from the Ecosystem that plugs into the platform and runs on your own GPU, with no code to install. A Serve App puts the model behind the labeling tools, and where the model can be trained, a Train App fits it to your labeled project. All Apps work on the same projects, so you add a model, update it or swap it for another without changing anything else.

Why teams still train YOLOv5

YOLOv5 is the PyTorch detector Ultralytics released before its unified package. It predicts boxes relative to anchors and comes in several sizes. Many deployed systems were built around its weights and output format, so retraining the same architecture on fresh data is often cheaper than moving the whole inference stack to a newer model.

Supervisely integrated YOLOv5 in March 2021 and merged the upstream model updates into the v5.0 release of the apps in May 2021, which also added train and validation splits by dataset or by tag.

Training dashboard

The Train YOLOv5 app runs from the context menu of an images project on any agent of your team with a GPU. The dashboard sets the train and validation split, the model size and the hyperparameters, then shows metrics, logs and visualizations while it trains.

YOLOv5 here is a detector only: the app turns every label into its bounding box before training. Polygons and masks still work as input, but the model learns their boxes, not their outlines.

Artifacts go to Team Files at /yolov5_train/<project name>/<task id>: the weights, charts and an open_app.lnk file. Open that link at any time to see the finished dashboard with its settings and metrics.

Serving and exporting the weights

Serve YOLOv5 deploys a COCO checkpoint from its list or your own .pt file, for example /yolov5_train/lemons_annotated/2577/weights/best.pt, on a GPU by device id or on the CPU. The served model takes an image by URL, local file or Supervisely ID and predicts on the full image, a region of interest or with a sliding window for large images.

Other apps then use it: Apply NN to Images Project pre-labels a project, Apply NN to Videos Project labels videos, and NN Image Labeling puts the model in the image labeling tool, where one button adds its detections with their confidences.

Export YOLOv5 weights converts trained weights to TorchScript and ONNX for runtimes without PyTorch.

Train YOLOv5 2.0 and Serve YOLOv5 2.0 are a second pair of apps built on the Ultralytics Python package instead of the original YOLOv5 repository. Their checkpoints are the updated YOLOv5u models, the version Ultralytics rebuilt with the anchor-free head of YOLOv8: n, s, m, l and x at 640 px and n6u to x6u at 1280 px, pretrained on COCO. Training is still detection only, with every label turned into its bounding box, and the dashboard adds a choice between fine-tuning and training from scratch, augmentation settings and hyperparameter templates saved to Team Files. Training needs a GPU; the serve app deploys COCO or custom checkpoints on a GPU or the CPU for NN Image Labeling and the apply apps, and a trained model also runs outside Supervisely with the notebook in the repository. For a new project, the Ultralytics YOLO app lists the same YOLOv5u checkpoints next to newer generations.

Getting a YOLOv5 dataset in and out

A dataset in YOLO .txt format imports straight into a project; the YOLO format page shows its layout, and YOLO to Supervisely JSON explains how normalized coordinates become pixels. To hand labels back to a YOLOv5 training script you run yourself, export Supervisely JSON to YOLO.

Moving on from YOLOv5

For a new project, start with the Ultralytics YOLO app instead. It includes YOLOv5u, the variant Ultralytics rebuilt with the anchor-free head of YOLOv8, next to YOLO11 and YOLO26, and it also trains segmentation and pose models. If anchor boxes and NMS are what you want to leave behind, look at RT-DETRv2.

Frequently asked questions.

Can I train YOLOv5 segmentation in Supervisely?

Not with the YOLOv5 apps: they train detectors and turn every label into a box. For segmentation masks, train the YOLOv8, YOLO11 or YOLO26 segmentation checkpoints in the Train YOLO v8 - 26 app.

YOLOv5 or YOLOv8: which should I train?

For a new project, a newer generation: the Ultralytics YOLO app trains YOLOv8 to YOLO26 and YOLOv5u, the YOLOv5 that Ultralytics rebuilt with the anchor-free head of YOLOv8, and it also trains segmentation and pose models. Keep the YOLOv5 apps when a deployed system is built around YOLOv5 weights and their output format.

Train and serve models on your own data.

Label a project in a free account, train a model on it from the browser and deploy it on your own GPU. Or book a demo to run Supervisely on your servers.