An officical implementation of TransCrowd: Weakly-Supervised Crowd Counting with Transformer. To the best of our knowledge, this is the ﬁrst work to adopt a pure Transformer for crowd counting research. We observe that the proposed TransCrowd can eﬀectively extract the semantic crowd information by using the self-attention mechanism of Transformer.
python >=3.6 pytorch >=1.5 opencv-python >=4.0 scipy >=1.4.0 h5py >=2.10 pillow >=7.0.0 imageio >=1.18
The code is coming soon.