Most existing studies on crowd analysis are limited to the level of counting,which cannot provide the exact location of individuals.This paper proposes a self-attention guidance based crowd localization and counting n...Most existing studies on crowd analysis are limited to the level of counting,which cannot provide the exact location of individuals.This paper proposes a self-attention guidance based crowd localization and counting network(SA-CLCN),which can simultaneously locate and count crowds.We take the form of object detection,using the original point annotations of crowd datasets as supervision to train the network.Ultimately,the center point coordinate of each head as well as the number of crowds are predicted.Specifically,to cope with the spatial and positional variations of the crowd,the proposed method introduces transformer to construct a globallocal feature extractor(GLFE)together with the convolutional structure.It establishes the near-to-far dependency between elements so that the global context and local detail features of the crowd image can be extracted simultaneously.Then,this paper designs a pyramid feature fusion module(PFFM)to fuse the global and local information from high level to low level to obtain a multiscale feature representation.In downstream tasks,this paper predicts candidate point offsets and confidence scores by a simple regression header and classification header.In addition,the Hungarian algorithm is used to match the predicted point set and the labelled point set to facilitate the calculation of losses.The proposed network avoids the errors or higher costs associated with using traditional density maps or bounding box annotations.Importantly,we have conducted extensive experiments on several crowd datasets,and the proposed method has produced competitive results in both counting and localization.展开更多
基金supported by National Natural Science Foundation of China(No.62072394)Natural Science Foundation of Hebei Province,China(No.F2021203019)Hebei Key Laboratory Project,China(No.202250701010046).
文摘Most existing studies on crowd analysis are limited to the level of counting,which cannot provide the exact location of individuals.This paper proposes a self-attention guidance based crowd localization and counting network(SA-CLCN),which can simultaneously locate and count crowds.We take the form of object detection,using the original point annotations of crowd datasets as supervision to train the network.Ultimately,the center point coordinate of each head as well as the number of crowds are predicted.Specifically,to cope with the spatial and positional variations of the crowd,the proposed method introduces transformer to construct a globallocal feature extractor(GLFE)together with the convolutional structure.It establishes the near-to-far dependency between elements so that the global context and local detail features of the crowd image can be extracted simultaneously.Then,this paper designs a pyramid feature fusion module(PFFM)to fuse the global and local information from high level to low level to obtain a multiscale feature representation.In downstream tasks,this paper predicts candidate point offsets and confidence scores by a simple regression header and classification header.In addition,the Hungarian algorithm is used to match the predicted point set and the labelled point set to facilitate the calculation of losses.The proposed network avoids the errors or higher costs associated with using traditional density maps or bounding box annotations.Importantly,we have conducted extensive experiments on several crowd datasets,and the proposed method has produced competitive results in both counting and localization.