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

  • Log In
  • Sign Up

diffusionai
/
gender-detection

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

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

  • Libraries
  • Transformers

    How to use diffusionai/gender-detection with Transformers:

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