Computer Vision Toolbox Model for Vision Transformer Network

Implementation of several variants of the vision transformer (ViT) model.
1.4K Downloads
Updated 15 Oct 2025
The Vision Transformer (ViT) model is a pretrained transformer model for image classification. It is also used as a backbone for other computer vision tasks such as object detection. The support package consists of three variants of the ViT model:
  • Base-16 model
  • Small-16 model
  • Tiny-16 model
Here, “base”, “small” and “tiny” represent the model architecture and size, and 16 represents the patch size hyper-parameter. Each variant has been pretrained on ImageNet data set with input resolution of 384 and is stored as a .MAT file.
MATLAB Release Compatibility
Created with R2023b
Compatible with R2023b to R2026a
Platform Compatibility
Windows macOS (Apple Silicon) macOS (Intel) Linux
Tags Add Tags