Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

Hammad712
/
vit-gender-classification

Image Classification
Transformers
Safetensors
vit
Model card Files Files and versions
xet
Community

Instructions to use Hammad712/vit-gender-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use Hammad712/vit-gender-classification with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("image-classification", model="Hammad712/vit-gender-classification")
    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("Hammad712/vit-gender-classification")
    model = AutoModelForImageClassification.from_pretrained("Hammad712/vit-gender-classification")
  • Notebooks
  • Google Colab
  • Kaggle
vit-gender-classification
343 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
Hammad712's picture
Hammad712
Initial commit
b8c33ad verified almost 2 years ago
  • .gitattributes
    1.52 kB
    initial commit almost 2 years ago
  • config.json
    615 Bytes
    Initial commit almost 2 years ago
  • model.safetensors
    343 MB
    xet
    Initial commit almost 2 years ago
  • preprocessor_config.json
    328 Bytes
    Initial commit almost 2 years ago