All models

Torchreid-OSNet-AIN-x1_0

OSNet with instance normalization layers placed by architecture search, for cross-dataset person re-ID.

Detection and tracking · 476 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (25 KB)

Open in a new tab

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

Parameters
2.7M
Operations
476
Framework
PyTorch
Recurrent
No
Published
IEEE TPAMI (arXiv 2019)
Cited by
347 (as of 23 October 2026)
Authors
Kaiyang Zhou, Yongxin Yang, Andrea Cavallaro, Tao Xiang
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m3129
Graph hash
cf00b22c764039445ced4299228b587a74db4b8683442f1c812e067380322979
Skeleton hash
acb6d51a755fe81cb8d8094cf1e7aacd03b446e90a762b3d94090bf2f45cd3be
Architecture hash
c2397f0d1c59b724ea08fdde76ab889af9e54b1fb42fe5a641258d78827f0ade
Diagram SHA-256
f8f32df97e31cf2b9abaf52a08f1e3b666014288b880a6572a8690623a417801
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

OSNet-AIN is the omni-scale network (OSNet) for person re-identification with instance normalization layers added through differentiable architecture search, so that its features carry over to datasets it was not trained on. The underlying OSNet block consists of multiple convolutional streams, each detecting features at a certain scale. A unified aggregation gate fuses the multi-scale features with channel-wise weights.

Instance normalization calibrates each sample using its own inner statistics, unlike batch normalization. Where these layers go is learned from data: the paper uses the Gumbel-Softmax to make the selection among candidate building blocks continuous, so the search can be optimized by gradient descent. The search was run four times with different random seeds, and the architecture with the best cross-domain performance was kept. Person matching uses the cosine distance between 512-D feature vectors taken from the last fully connected layer.

In the cross-dataset setting, the paper reports that the network beat most recent unsupervised domain adaptation methods of the time without using any target data. It also notes that instance normalization adds only a small number of parameters, so OSNet-AIN and OSNet are similar in complexity.

Key idea. The paper adds instance normalization layers to OSNet and uses differentiable architecture search to decide where to place them, improving cross-dataset person re-identification.

  • OSNet-AIN
  • omni-scale network
  • person re-identification
  • re-ID
  • cross-domain re-ID
  • domain generalization
  • instance normalization
  • Torchreid
  • osnet_ain_x1_0

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{zhou2021learninggeneralisableomniscalerepresentations,
      title={Learning Generalisable Omni-Scale Representations for Person Re-Identification}, 
      author={Kaiyang Zhou and Yongxin Yang and Andrea Cavallaro and Tao Xiang},
      year={2021},
      eprint={1910.06827},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/1910.06827}, 
}