GaitFormer
A transformer encoder that recognizes people and their attributes from sequences of walking skeletons.
Video · 162 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Video
- Parameters
- 2.2M
- Operations
- 162
- Framework
- PyTorch
- Recurrent
- No
- Published
- Sensors 22(18), 2022
- Cited by
- 21 (as of 27 October 2026)
- Authors
- Adrian Cosma, Emilian Radoi
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m17001
- Graph hash
- 9f0e108b04687a13ab7039c7315f1a50f6e24c823512f2cab499672f52914c0d
- Skeleton hash
- 07957b35c813f00f003db36d5ffbbfe083413612be05f044be272cb3b37b4537
- Architecture hash
- 4647000e8ca3600838756fed7efb6df8f64b7ee056b2964e6945131df3045a0b
- Diagram SHA-256
- cb0bf8d5d755815d243b35bb943d2b0f38f83f22f8543d79eef2289c10218a92
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
GaitFormer is a transformer model for gait recognition that operates on sequences of skeletons. The premise is that walking is a biometric that does not change significantly over short periods of time and can be regarded as unique to each person. Skeleton sequences encode only the movement of a person. Alongside identification, the paper explores identifying pedestrian attributes from movement patterns alone.
The architecture takes its inspiration from ViT, which processes images as a sequence of flattened patches. Each skeleton is flattened into a 54-dimensional vector and linearly projected into a 256-dimensional space, with a learnable positional embedding added to each projection. The projections pass through a transformer encoder and are average pooled into a 256-dimensional vector, which is used to estimate identity and, through a linear appearance head, 42 appearance attributes. An additional 128-dimension linear layer is used for training with a supervised contrastive objective. The paper used three model sizes, with 4, 8 and 12 encoder layers and 8 attention heads in each.
Pretraining uses DenseGait, a dataset proposed in the same paper that contains 217K anonymized tracklets annotated automatically with 42 appearance attributes. The paper reports that after multi-task pretraining on DenseGait, GaitFormer reaches 92.5% accuracy on CASIA-B and 85.33% on FVG without using any manually annotated data.
Key idea. The paper builds GaitFormer, a transformer over skeleton sequences for gait recognition, together with DenseGait, an automatically gathered dataset of 217k pose sequences with 42 appearance attributes.
- GaitFormer
- gait recognition
- skeleton-based gait recognition
- gait analysis
- pedestrian attribute identification
- person identification
- pose sequence
- DenseGait
- noisy multi-task learning
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{cosma2023gaitformerlearninggaitrepresentations,
title={GaitFormer: Learning Gait Representations with Noisy Multi-Task Learning},
author={Adrian Cosma and Emilian Radoi},
year={2023},
eprint={2310.19418},
archivePrefix={arXiv},
primaryClass={cs.CV},
doi={https://doi.org/10.3390/s22186803},
url={https://arxiv.org/abs/2310.19418},
}