All models

HOI-Transformer

End-to-end transformer that predicts human, object and interaction as one set of queries.

Detection and tracking · 1,532 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 (100 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
41.7M
Operations
1,532
Framework
PyTorch
Recurrent
No
Published
CVPR 2021
Cited by
252 (as of 28 October 2026)
Authors
Cheng Zou, Bohan Wang, Yue Hu and others
License
Apache-2.0
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
m17261
Graph hash
e55e0a3bc7a0c458ea07a623726d14cf835c9c7e0326a6d9724dcddfa3510590
Skeleton hash
5bde954ff05cdbfc659bf5d9e3b4ee5de0b5ac7aedee269516c6cd779ff587f5
Architecture hash
65f3f6c33f24007cbde21fb21a2c0debf5cdebd1896694d6a2038466f0bd2c21
Diagram SHA-256
91f7e1f46ff32df69f5fda191d9ead1e7b73f2d382565b5d19bdfc5fc7cd9dec
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

HOI Transformer detects human object interactions, meaning a person, an object and the interaction between them, with one end-to-end network. Earlier approaches, as the paper describes them, either split the task into object detection followed by interaction classification or introduced a surrogate interaction problem. The authors instead treat HOI detection as set prediction, with bipartite matching between predictions and ground truth.

A CNN backbone extracts image features, a transformer encoder builds a global memory from them, and a decoder turns N learned positional embeddings, called HOI queries, into N output embeddings. Each output embedding is decoded into a quintuple: human class, interaction class, object class, human box and object box. Three one-layer MLP branches predict the confidences and two three-layer MLP branches predict the boxes. The paper's setup has 6 encoder layers, 6 decoder layers and 100 HOI queries, and starts from a COCO pre-trained DETR model.

The paper reports 26.61% AP on HICO-DET and 52.9% AProle on V-COCO. The code repository lists a Res50 model at 28.92/19.83/31.64 (Full/Rare/NonRare) on HICO-DET, 51.15 on V-COCO and 73.23 on HOI-A. The repository also notes that the method won a 2nd Place Award in the HOI Challenge of Person In Context in CVPR Workshop 2021.

Key idea. HOI Transformer predicts human-object interaction instances directly and in parallel with a transformer encoder-decoder, trained with a quintuple matching loss.

  • HOI Transformer
  • HOI-Transformer
  • HoiTransformer
  • HoiTR
  • human object interaction detection
  • HOI detection
  • end-to-end HOI
  • quintuple matching loss
  • HICO-DET
  • V-COCO

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

Cite the paper

@misc{zou2021endtoendhumanobjectinteraction,
      title={End-to-End Human Object Interaction Detection with HOI Transformer}, 
      author={Cheng Zou and Bohan Wang and Yue Hu and Junqi Liu and Qian Wu and Yu Zhao and Boxun Li and Chenguang Zhang and Chi Zhang and Yichen Wei and Jian Sun},
      year={2021},
      eprint={2103.04503},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2103.04503}, 
}