# mobilevit-pytorch **Repository Path**: shall1996/mobilevit-pytorch ## Basic Information - **Project Name**: mobilevit-pytorch - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-11-04 - **Last Updated**: 2024-11-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # MobileViT ## Overview This is a PyTorch implementation of MobileViT specified in ["MobileViT: Light-weight, General-purpose, and Mobile-friendly Vision Transformer"](https://arxiv.org/abs/2110.02178), arXiv 2021. ![img](https://user-images.githubusercontent.com/67839539/136470152-2573529e-1a24-4494-821d-70eb4647a51d.png) 👉 Check out [CoAtNet](https://github.com/chinhsuanwu/coatnet-pytorch) if you are interested in other **Convolution + Transformer** models. ## Usage ```python import torch from mobilevit import mobilevit_xxs img = torch.randn(1, 3, 256, 256) vit = mobilevit_xxs() out = vit(img) ``` ## Citation ```bibtex @article{mehta2021mobilevit, title={MobileViT: Light-weight, General-purpose, and Mobile-friendly Vision Transformer}, author={Mehta, Sachin and Rastegari, Mohammad}, journal={arXiv preprint arXiv:2110.02178}, year={2021} } ``` ## Credits Code adapted from [MobileNetV2](https://github.com/tonylins/pytorch-mobilenet-v2) and [ViT](https://github.com/lucidrains/vit-pytorch).