Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

TPH-YOLOv5: Improved YOLOv5 Based on Transformer Prediction Head for Object Detection on Drone-captured Scenarios

TPH-YOLOv5 adds transformer heads to YOLOv5 for drone-captured object detection

  • Problem Drone footage changes object scale with altitude, packs objects densely, and covers large confusing backgrounds. Detectors built for natural scene images handle these three effects poorly together.
  • Method TPH-YOLOv5 adds a fourth, high-resolution head for tiny objects. It replaces the prediction heads with transformer prediction heads and adds CBAM attention to YOLOv5x.
  • Results On the VisDrone2021 challenge test split, the ensemble reaches 39.18 AP. That is 1.81 above the previous best method, DPNetV3.

Why drone imagery is hard for a standard detector

Drone flights change altitude a great deal, so the same kind of object appears at very different pixel sizes across frames. Crowded scenes place objects close together, and they occlude one another, which makes each object harder to separate from its neighbours. Because each frame covers a wide area, geographic elements that look like targets enter the view and add confusion.

Most earlier detectors were designed for natural scene images, so these three effects arrive together in a setting they were not built for.

The study keeps YOLOv5 as the starting point because it is a one-stage detector that the authors judged notable and convenient, and it modifies that detector to address the three effects. The changes sit mainly in the head side of the network, while the backbone and neck follow the original design.

Extra head, transformer heads and CBAM

The network uses a CSPDarknet53 backbone and a PANet neck, and its heads cover four scales of objects, from tiny to large. The authors chose YOLOv5x over the smaller variants, because with Mosaic and MixUp it beat YOLOv5s, YOLOv5m and YOLOv5l by more than 1.5 in AP.

The added head reads a low-level feature map that has high resolution, so very small instances still leave a usable response. Adding this head raises computation and memory cost, which the authors accept for the gain on tiny objects.

Transformer encoder blocks replace some convolutional and CSP bottleneck blocks, and each block has a multi-head attention sub-layer followed by a fully connected sub-layer, with residual connections between sub-layers. The blocks sit in the head part and at the end of the backbone, where the feature maps are of low resolution, which keeps the attention cost lower.

When the input resolution is raised, some early transformer blocks can be dropped so that training stays feasible.

CBAM infers an attention map along the channel dimension and then along the spatial dimension, and multiplies the result with the input feature map. The authors use it so that the network focuses on target objects in images where a large covered area brings in confusing geographic elements.

The tiny-object head raises the YOLOv5x layer count from 607 to 719 and GFLOPs from 219.0 to 259.0. Adding transformer encoder blocks reduces the model to 705 layers and 237.3 GFLOPs, down from 719 layers and 259.0 GFLOPs.

Training data and optimization choices

Training combines photometric and geometric changes with multi-image methods, and the study uses a mix of MixUp, Mosaic and traditional augmentation. MixUp blends two samples and their labels with the same weights, while Mosaic stitches four images together so that the background around objects becomes more varied.

Because the VisDrone2021 training set is small, shared blocks are initialized from YOLOv5x weights, and the authors say this saves a lot of training time. Training runs for 65 epochs with the first 2 epochs as warm-up, using Adam at an initial learning rate of 3e-4 and a cosine schedule that brings the last epoch down to 0.12 of the initial rate.

At an input size of 1536, the authors count 622 of 342391 labels that are smaller than 3 pixels, and they treat these objects as hard to recognize. Covering those small objects with gray squares before training is reported to raise mAP by 0.2 under this input size.

Test-time augmentation, fusion and the classifier

At test time each image is rescaled to 1.3, 1, 0.83 and 0.67 times and also flipped horizontally, which gives six versions of each image. One passage describes the scaling as three sizes and another lists four factors, and both give a total of six images after flipping.

The predictions from the augmented versions of one model are fused with NMS, and the predictions of the five models are then fused with weighted boxes fusion. Weighted boxes fusion merges all candidate boxes into the final box instead of deleting some of them, and the authors state that it performs much better than NMS for their ensemble, without giving numbers.

Failure analysis shows that the model localizes objects well but classifies some categories poorly, especially tricycle and awning-tricycle. A ResNet18 classifier is trained on ground-truth crops resized to 64 by 64, and the authors report an AP improvement of 0.8% to 1.0% from it. The confusion matrix used for this analysis was made at an IoU threshold of 0.45 and a confidence threshold of 0.25.

The text does not spell out how classifier outputs are combined with the detector boxes.

Cumulative gains on testset-dev

On testset-dev, YOLOv5 reaches 28.88 mAP and 49.33 AP50. Adding the P2 head raises these to 31.03 mAP and 51.61 AP50, a gain of 2.15 mAP.

Adding transformer encoder blocks takes mAP to 32.84, an increase of 1.81, and AP50 to 53.87. The same step lowers the model to 705 layers and 237.3 GFLOPs, down from 719 layers and 259.0 GFLOPs.

CBAM brings mAP to 33.63, an increase of 0.79, and AP50 to 54.77. ms-testing brings mAP to 34.90 and AP50 to 56.40, and the self-trained classifier brings mAP to 35.74 and AP50 to 57.31.

Each row adds one component to the row above, so the numbers are cumulative steps and not isolated removals of single components. Each value is a single run in the table, and no spread across runs is given.

Challenge test split and leaderboard position

On the challenge test split the TPH-YOLOv5 ensemble reaches 39.18 AP, which is 1.81 above DPNetV3 at 37.37.

The server accepted a limited number of submissions, so only four models were scored separately on the challenge split, and the final ensemble uses five models. The entry ranks fifth on the VisDrone 2021 leaderboard, 0.25 below the first place at 39.43.

Table 1 also lists earlier entries such as RRNet at 29.13 mAP and SMPNet at 35.98 mAP, which come from different years and submissions. They serve as context and not as a controlled comparison with TPH-YOLOv5.

Per-category results and the five-model ensemble

Variant 5 uses the YOLOv5l backbone at input size 1536.

On testset-dev the five-model ensemble reaches 37.32 mAP overall, above the individual variants, whose overall mAP lies between 33.04 and 34.90. The ensemble also leads on car, at 68.94 mAP.

The ensemble does not lead in every category: on tricycle it scores 27.33 and on awning-tricycle 24.72.

Limitations

The 1536-pixel input size limits training to a batch size of 2. The added tiny-object head increases computation and memory cost, and the authors judge the cost worthwhile for the gain on small objects.

Classification of similar categories remains weak, and the self-trained classifier is the only step aimed at it.

The challenge results depend on a limited number of server submissions, and the ablation was run on testset-dev because the server could not be used for each component.

The label-cleaning gain of 0.2 is reported only at the 1536 input size.

Paper info

Authors
Xingkui Zhu, Shuchang Lyu, Xu Wang, Qi Zhao
Venue
arXiv · Preprint
First published
2021-8-26
Added
2026-11-12
Updated
2021-8-26
Version
v1
arXiv
2108.11539
Category
cs.CV · cs.AI
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Xingkui Zhu, Shuchang Lyu, Xu Wang, Qi Zhao (2021). TPH-YOLOv5: Improved YOLOv5 Based on Transformer Prediction Head for Object Detection on Drone-captured Scenarios. arXiv:2108.11539v1. https://arxiv.org/abs/2108.11539v1

BibTeX
@misc{zhu2021yolov5,
  title = {{TPH-YOLOv5: Improved YOLOv5 Based on Transformer Prediction Head for Object Detection on Drone-captured Scenarios}},
  author = {Xingkui Zhu and Shuchang Lyu and Xu Wang and Qi Zhao},
  year = {2021},
  eprint = {2108.11539},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2108.11539v1}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up