NAT is a hierarchical vision transformer based on Neighborhood Attention (NA).
Neighborhood Attention is a restricted self attention pattern in which each token's receptive field is limited to its nearest neighboring pixels.
NA is a sliding-window attention patterns, and as a result is highly flexible and maintains translational equivariance.
NA is implemented in PyTorch implementations through its extension,
NATTEN
.
Other than transformers, this model requires the
NATTEN
package.
If you're on Linux, you can refer to
shi-labs.com/natten
for instructions on installing with pre-compiled binaries (just select your torch build to get the correct wheel URL).
You can alternatively use
pip install natten
to compile on your device, which may take up to a few minutes.
Mac users only have the latter option (no pre-compiled binaries).
@article{hassani2022neighborhood,
title = {Neighborhood Attention Transformer},
author = {Ali Hassani and Steven Walton and Jiachen Li and Shen Li and Humphrey Shi},
year = 2022,
url = {https://arxiv.org/abs/2204.07143},
eprint = {2204.07143},
archiveprefix = {arXiv},
primaryclass = {cs.CV}
}
Runs of shi-labs nat-base-in1k-224 on huggingface.co
30
Total runs
0
24-hour runs
0
3-day runs
1
7-day runs
25
30-day runs
More Information About nat-base-in1k-224 huggingface.co Model
nat-base-in1k-224 huggingface.co is an AI model on huggingface.co that provides nat-base-in1k-224's model effect (), which can be used instantly with this shi-labs nat-base-in1k-224 model. huggingface.co supports a free trial of the nat-base-in1k-224 model, and also provides paid use of the nat-base-in1k-224. Support call nat-base-in1k-224 model through api, including Node.js, Python, http.
nat-base-in1k-224 huggingface.co is an online trial and call api platform, which integrates nat-base-in1k-224's modeling effects, including api services, and provides a free online trial of nat-base-in1k-224, you can try nat-base-in1k-224 online for free by clicking the link below.
shi-labs nat-base-in1k-224 online free url in huggingface.co:
nat-base-in1k-224 is an open source model from GitHub that offers a free installation service, and any user can find nat-base-in1k-224 on GitHub to install. At the same time, huggingface.co provides the effect of nat-base-in1k-224 install, users can directly use nat-base-in1k-224 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.