Table 2 Effect of transformer size on ShanghaiTech PartA dataset.

From: Application of improved transformer based on weakly supervised in crowd localization and crowd counting

Layers

N (queries number)

Params

Localization (σ = 8)

Pre (%)

Rec (%)

F1 (%)

3

500

33.1

70.1

71.1

71.2

6

500

43.2

74.9

73.6

74.3

12

500

62.2

71.2

71.6

72.1

6

300

43.1

74.5

73.2

74.1

6

500

43.2

74.9

73.6

74.3

6

700

43.3

74.3

73.2

73.9