nateraw / vit-base-patch16-224-cifar10

huggingface.co
Total runs: 2.5K
24-hour runs: 64
7-day runs: 8
30-day runs: 592
Model's Last Updated: January 28 2022
image-classification

Introduction of vit-base-patch16-224-cifar10

Model Details of vit-base-patch16-224-cifar10

Vision Transformer Fine Tuned on CIFAR10

Vision Transformer (ViT) model pre-trained on ImageNet-21k (14 million images, 21,843 classes) and fine-tuned on CIFAR10 at resolution 224x224.

Check out the code at my my Github repo .

Usage
from transformers import ViTFeatureExtractor, ViTForImageClassification
from PIL import Image
import requests

url = 'https://www.cs.toronto.edu/~kriz/cifar-10-sample/dog10.png'
image = Image.open(requests.get(url, stream=True).raw)
feature_extractor = ViTFeatureExtractor.from_pretrained('nateraw/vit-base-patch16-224-cifar10')
model = ViTForImageClassification.from_pretrained('nateraw/vit-base-patch16-224-cifar10')
inputs = feature_extractor(images=image, return_tensors="pt")
outputs = model(**inputs)
preds = outputs.logits.argmax(dim=1)

classes = [
    'airplane', 'automobile', 'bird', 'cat', 'deer', 'dog', 'frog', 'horse', 'ship', 'truck'
]
classes[preds[0]]
Model description

The Vision Transformer (ViT) is a transformer encoder model (BERT-like) pretrained on a large collection of images in a supervised fashion, namely ImageNet-21k, at a resolution of 224x224 pixels. Images are presented to the model as a sequence of fixed-size patches (resolution 16x16), which are linearly embedded. One also adds a [CLS] token to the beginning of a sequence to use it for classification tasks. One also adds absolute position embeddings before feeding the sequence to the layers of the Transformer encoder. Note that this model does not provide any fine-tuned heads, as these were zero'd by Google researchers. However, the model does include the pre-trained pooler, which can be used for downstream tasks (such as image classification).

By pre-training the model, it learns an inner representation of images that can then be used to extract features useful for downstream tasks: if you have a dataset of labeled images for instance, you can train a standard classifier by placing a linear layer on top of the pre-trained encoder. One typically places a linear layer on top of the [CLS] token, as the last hidden state of this token can be seen as a representation of an entire image.

Runs of nateraw vit-base-patch16-224-cifar10 on huggingface.co

2.5K
Total runs
64
24-hour runs
70
3-day runs
8
7-day runs
592
30-day runs

More Information About vit-base-patch16-224-cifar10 huggingface.co Model

More vit-base-patch16-224-cifar10 license Visit here:

https://choosealicense.com/licenses/apache-2.0

vit-base-patch16-224-cifar10 huggingface.co

vit-base-patch16-224-cifar10 huggingface.co is an AI model on huggingface.co that provides vit-base-patch16-224-cifar10's model effect (), which can be used instantly with this nateraw vit-base-patch16-224-cifar10 model. huggingface.co supports a free trial of the vit-base-patch16-224-cifar10 model, and also provides paid use of the vit-base-patch16-224-cifar10. Support call vit-base-patch16-224-cifar10 model through api, including Node.js, Python, http.

vit-base-patch16-224-cifar10 huggingface.co Url

https://huggingface.co/nateraw/vit-base-patch16-224-cifar10

nateraw vit-base-patch16-224-cifar10 online free

vit-base-patch16-224-cifar10 huggingface.co is an online trial and call api platform, which integrates vit-base-patch16-224-cifar10's modeling effects, including api services, and provides a free online trial of vit-base-patch16-224-cifar10, you can try vit-base-patch16-224-cifar10 online for free by clicking the link below.

nateraw vit-base-patch16-224-cifar10 online free url in huggingface.co:

https://huggingface.co/nateraw/vit-base-patch16-224-cifar10

vit-base-patch16-224-cifar10 install

vit-base-patch16-224-cifar10 is an open source model from GitHub that offers a free installation service, and any user can find vit-base-patch16-224-cifar10 on GitHub to install. At the same time, huggingface.co provides the effect of vit-base-patch16-224-cifar10 install, users can directly use vit-base-patch16-224-cifar10 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

vit-base-patch16-224-cifar10 install url in huggingface.co:

https://huggingface.co/nateraw/vit-base-patch16-224-cifar10

Url of vit-base-patch16-224-cifar10

vit-base-patch16-224-cifar10 huggingface.co Url

Provider of vit-base-patch16-224-cifar10 huggingface.co

nateraw
ORGANIZATIONS

Other API from nateraw

huggingface.co

Total runs: 2.8K
Run Growth: -5.5K
Growth Rate: -200.25%
Updated:May 18 2022
huggingface.co

A large, stereo MusicGen that acts as a useful tool for music producers

Total runs: 459
Run Growth: -224
Growth Rate: -48.80%
Updated:May 04 2024
huggingface.co

Total runs: 341
Run Growth: -1.3K
Growth Rate: -375.07%
Updated:December 07 2022
huggingface.co

Total runs: 11
Run Growth: 2
Growth Rate: 18.18%
Updated:November 10 2021
huggingface.co

Total runs: 9
Run Growth: 4
Growth Rate: 44.44%
Updated:September 19 2021
huggingface.co

Total runs: 8
Run Growth: -1
Growth Rate: -14.29%
Updated:July 01 2021
huggingface.co

Total runs: 8
Run Growth: 5
Growth Rate: 62.50%
Updated:August 15 2021
huggingface.co

Total runs: 8
Run Growth: 2
Growth Rate: 25.00%
Updated:April 16 2021
huggingface.co

Total runs: 8
Run Growth: -12
Growth Rate: -150.00%
Updated:May 16 2023
huggingface.co

Total runs: 6
Run Growth: 3
Growth Rate: 50.00%
Updated:June 29 2021
huggingface.co

Total runs: 6
Run Growth: 2
Growth Rate: 33.33%
Updated:June 30 2021
huggingface.co

Total runs: 6
Run Growth: 1
Growth Rate: 16.67%
Updated:March 30 2024
huggingface.co

Total runs: 5
Run Growth: 2
Growth Rate: 40.00%
Updated:April 13 2021
huggingface.co

Total runs: 5
Run Growth: -5
Growth Rate: -100.00%
Updated:July 08 2022
huggingface.co

Total runs: 5
Run Growth: 0
Growth Rate: 0.00%
Updated:April 13 2021
huggingface.co

Total runs: 4
Run Growth: -1
Growth Rate: -25.00%
Updated:April 13 2021
huggingface.co

Total runs: 4
Run Growth: -4
Growth Rate: -100.00%
Updated:July 06 2021
huggingface.co

Total runs: 4
Run Growth: 4
Growth Rate: 100.00%
Updated:July 25 2022
huggingface.co

Total runs: 3
Run Growth: 0
Growth Rate: 0.00%
Updated:April 13 2021