We lifted 3 functions out of this paper's own repositories and ran 2 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.
| Repository | Role | Ran |
|---|---|---|
| linhezheng19/CAT | canonical | 2 of 3 |
| Function | Status | Where it lives |
|---|---|---|
| partition | Ran | linhezheng19/CAT/src/cat.py code served (permissive licence) · get_code("a1a83893f9563bf8") |
| reverse | Ran | linhezheng19/CAT/src/cat.py code served (permissive licence) · get_code("d079ec76c4e5cb78") |
| build_model | Not yet run | linhezheng19/CAT/src/cat.py code served (permissive licence) · get_code("7551799a0ea77ef4") |
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
Since Transformer has found widespread use in NLP, the potential of Transformer in CV has been realized and has inspired many new approaches. However, the computation required for replacing word tokens with image patches for Transformer after the tokenization of the image is vast(e.g., ViT), which bottlenecks model training and inference. In this paper, we propose a new attention mechanism in Transformer termed Cross Attention, which alternates attention inner the image patch instead of the whole image to capture local information and apply attention between image patches which are divided from single-channel feature maps capture global information. Both operations have less computation than standard self-attention in Transformer. By alternately applying attention inner patch and between patches, we implement cross attention to maintain the performance with lower computational cost and build a hierarchical network called Cross Attention Transformer(CAT) for other vision tasks. Our base model achieves state-of-the-arts on ImageNet-1K, and improves the performance of other methods on COCO and ADE20K, illustrating that our network has the potential to serve as general backbones. The code and models are available at \url{https://github.com/linhezheng19/CAT}.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2106.05786")
get_code_for_paper("2106.05786")
have("2106.05786")
Connect an agent — have() is free.