How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("image-classification", model="rizvandwiki/gender-classification-2")
pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")
# Load model directly
from transformers import AutoImageProcessor, AutoModelForImageClassification

processor = AutoImageProcessor.from_pretrained("rizvandwiki/gender-classification-2")
model = AutoModelForImageClassification.from_pretrained("rizvandwiki/gender-classification-2")
Quick Links

gender-classification-2

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

female

female

male

male

Downloads last month
156,296
Safetensors
Model size
85.8M params
Tensor type
F32
Β·
Inference Providers NEW

Spaces using rizvandwiki/gender-classification-2 16

Evaluation results