Despite the rapid development of pedestrian detection algorithms, the balance between detection accuracy and efficiency is still far from being achieved due to edge GPUs (low computing power) limiting the parameters of the model. To address this issue, we propose the YOLOv4-TP-Tiny based on the YOLOv4 model, which mainly includes two modules, two-dimensional attention (TA) and pedestrian-based feature extraction (PFM). First, we integrate the TA mechanism into the backbone network, which increases the attention of the network to the visible area of pedestrians and improves the accuracy of pedestrian detection. Then, the PFM is used to replace the original spatial pyramid pooling (SPP) structure in the YOLOv4 to obtain the YOLOv4-TP algorithm, which can adapt to different sizes of people to obtain higher detection accuracy. To maintain detection speed, we replaced the normal convolution with a ghost network with a TA mechanism, resulting in more feature maps with fewer parameters. We constructed a one-way multi-scale feature fusion structure to replace the down-sampling process, thereby reducing network parameters to obtain the YOLOv4-TP-Tiny model. The experimental results show that the YOLOv4-TP-tiny has 58.3% AP and 31 FPS in the winder person pedestrian dataset. With the same hardware conditions and dataset, the AP of the YOLOv4-tiny is 55.9%, and the FPS is 29.
Object detection has shown noticeably rapid improvement, despite most existing methods still scrabbling in occluded object detection. In response to this problem, this paper proposes a method for occluded object detection called Ganster R-CNN, which is on a basis of improved Generative Adversarial Nets (IGAN) and Faster R-CNN to enhance the detection ability of occluded objects. IGAN combines the generator of Generative Adversarial Nets and the detector of Faster R-CNN. By considering the lack of diversity of information in the feature maps, we first integrated feature maps from the shallow layer to the deep layer using Feature Pyramid Network. Next, the generator can generate occluded fake samples, and the scale of the training samples and the proportion of occluded objects in the dataset are expanded. Thus, the precision rate of occluded objects can be improved. Thus, the adversarial learning strategy can improve the detection ability of Faster R-CNN detector. Experiments show that compared with Faster R-CNN, this method achieves an improvement of +10.3 AP on the MS COCO dataset, and the mean average precision of this method is improved by 4.31% on the VOC2007 dataset and 3.92% on the VOC2012 dataset. Compared with classically existing models on PASCAL VOC datasets and some Transformer based models on MS COCO dataset, this method improves the average precision value and the mean average precision value of occluded objects.