nateraw / vit-age-classifier

huggingface.co
Total runs: 236.0K
24-hour runs: 7.6K
7-day runs: 69.5K
30-day runs: 141.2K
Model's Last Updated: July 29 2024
image-classification

Introduction of vit-age-classifier

Model Details of vit-age-classifier

A vision transformer finetuned to classify the age of a given person's face.

import requests
from PIL import Image
from io import BytesIO

from transformers import ViTFeatureExtractor, ViTForImageClassification

# Get example image from official fairface repo + read it in as an image
r = requests.get('https://github.com/dchen236/FairFace/blob/master/detected_faces/race_Asian_face0.jpg?raw=true')
im = Image.open(BytesIO(r.content))

# Init model, transforms
model = ViTForImageClassification.from_pretrained('nateraw/vit-age-classifier')
transforms = ViTFeatureExtractor.from_pretrained('nateraw/vit-age-classifier')

# Transform our image and pass it through the model
inputs = transforms(im, return_tensors='pt')
output = model(**inputs)

# Predicted Class probabilities
proba = output.logits.softmax(1)

# Predicted Classes
preds = proba.argmax(1)

Runs of nateraw vit-age-classifier on huggingface.co

236.0K
Total runs
7.6K
24-hour runs
22.5K
3-day runs
69.5K
7-day runs
141.2K
30-day runs

More Information About vit-age-classifier huggingface.co Model

vit-age-classifier huggingface.co

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

vit-age-classifier huggingface.co Url

https://huggingface.co/nateraw/vit-age-classifier

nateraw vit-age-classifier online free

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

nateraw vit-age-classifier online free url in huggingface.co:

https://huggingface.co/nateraw/vit-age-classifier

vit-age-classifier install

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

vit-age-classifier install url in huggingface.co:

https://huggingface.co/nateraw/vit-age-classifier

Url of vit-age-classifier

vit-age-classifier huggingface.co Url

Provider of vit-age-classifier huggingface.co

nateraw
ORGANIZATIONS

Other API from nateraw

huggingface.co

Total runs: 3.0K
Run Growth: -4.3K
Growth Rate: -146.82%
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: 306
Run Growth: -1.3K
Growth Rate: -425.82%
Updated:December 07 2022
huggingface.co

Total runs: 11
Run Growth: 6
Growth Rate: 54.55%
Updated:September 19 2021
huggingface.co

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

Total runs: 10
Run Growth: 2
Growth Rate: 20.00%
Updated:July 01 2021
huggingface.co

Total runs: 10
Run Growth: 7
Growth Rate: 70.00%
Updated:August 15 2021
huggingface.co

Total runs: 9
Run Growth: -9
Growth Rate: -90.00%
Updated:May 16 2023
huggingface.co

Total runs: 8
Run Growth: 0
Growth Rate: 0.00%
Updated:July 06 2021
huggingface.co

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

Total runs: 8
Run Growth: 5
Growth Rate: 62.50%
Updated:June 29 2021
huggingface.co

Total runs: 8
Run Growth: 4
Growth Rate: 50.00%
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: 4
Growth Rate: 80.00%
Updated:July 25 2022
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: 3
Run Growth: 0
Growth Rate: 0.00%
Updated:April 13 2021