Image Classification
Transformers
TensorBoard
Safetensors
PyTorch
vit
huggingpics
Eval Results (legacy)
# Load model directly
from transformers import AutoImageProcessor, AutoModelForImageClassification
processor = AutoImageProcessor.from_pretrained("sgdkn/gender-classification")
model = AutoModelForImageClassification.from_pretrained("sgdkn/gender-classification")Quick Links
sgdkn/gender-classification
Autogenerated by HuggingPics🤗🖼️
Create your own image classifier for anything by running the demo on Google Colab.
Report any issues with the demo at the github repo.
Example Images
child
female
male
- Downloads last month
- 5
Evaluation results
- Accuracyself-reported0.761



# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="sgdkn/gender-classification") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")