huggingface / huggingface/open-muse

Maxvit

Open
#63 0 comments 0 reactions 1 assignee Claimed by @isamu-isozaki View on GitHub
Dominant language
Python
Stars
359
Forks
30
PR merge metrics
No merged PRs in 30d

Description

Add in max vit from [here](https://arxiv.org/abs/2204.01697) for high res stage. Code implementation given in [timm](https://github.com/huggingface/pytorch-image-models/blob/main/timm/models/maxxvit.py) and [lucidrian](https://github.com/lucidrains/vit-pytorch/blob/main/vit_pytorch/max_vit.py).

The basic idea is to split self-attention into blocked attention(local) and grid attention(global) so as doing one

![maxvit](https://user-images.githubusercontent.com/23430101/235358169-702318e6-d20b-4076-9fec-ded42156371f.JPG)

As doing global attention is too expensive+doing just local under fits on the data

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.