Downloads · 30 days
0
makiisthebes/BERT-ImageClassifier
BERT-ImageClassifier is a image classification model from makiisthebes. Use it when you need a label for an image. The card lists the license as mit.
This model takes inputs from CIFAR10 dataset, convert them into patches embeddings, with positional information along with Class Token to Transformer, the first representation of last hidden state is used to input of…
Downloads · 30 days
0
Access
Public
Updated Feb 10, 2024
Repo size
38.6 MB
Likes
1
Public
Click a slice to open those files.
.pth38.6 MB · 99%
From the Hugging Face model README
This model takes inputs from CIFAR10 dataset, convert them into patches embeddings, with positional information along with Class Token to Transformer, the first representation of last hidden state is used to input of the MLP head which is a classifier.
A full complete architect has been given for your understanding, which shows the dimensions and different operations that occur. BERT model consists of multiple hidden layers (encoder blocks) which are used.

For greator understanding of how such transformer can be used instead of Convolutions or RNNs in order to classify images, by obtaining a useful representation similar to CNN convolutions and the feature maps produced by them alternative methods.
Classifying images based on CIFAR10 dataset Achieved model accuracy of 80%.
Run the model defined in the python script file.
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).