Mindket

Gender-Classifier-Mini

Newversion 1 · updated

Overview

Sorts a photo into two classes, female or male, with a fine-tuned SigLIP 2 image model. Made for developers and researchers who want a small Python classifier for photo sets.

Gender-Classifier-Mini is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.

At a glance

You need
  • Python on Windows, macOS or Linux
  • The huggingface_hub package, to download the model files
  • The transformers, torch, pillow and gradio packages, to run the card's demo
Runs in
  • Python scripts and notebooks with the transformers library
  • A local Gradio page, as the card's demo script shows
  • Windows, macOS or Linux with Python installed
Start with
pip install -U huggingface_hub
hf download prithivMLmods/Gender-Classifier-Mini

Platform

WindowsOperating system
macOSOperating system
LinuxOperating system

About

What it is

Gender-Classifier-Mini looks at a photo and says whether it fits a female or a male class. It is a SigLIP 2 vision-language encoder adapted for two-class image classification, and you run it through the transformers library. On a 5,000 image test set, the card gives an accuracy of 0.9720.

Who it suits

It suits developers and researchers who want a small, ready two-class image labeler in Python, and teams that need to count how a photo set splits between the two classes.

IndustryWho uses itHow they use itExample
ResearchData analystsCheck how female and male images are spread across a datasetCounting each class in a folder of portraits
MarketingCampaign teamsGroup audience photos by predicted classSplitting a photo library into two sets
SoftwareDevelopersAdd a two-class image label to an appA small Gradio page that scores an uploaded photo
HealthcareImaging researchersRun gender-based analysis on medical imagesSorting scans into two groups before a study

You can skip it when you need more than two labels, or when the result affects a person's life, because a photo score is only an estimate.

Where to use it

  • Python scripts and notebooks with the transformers library
  • A local Gradio page, as the card's demo script shows
  • Windows, macOS or Linux with Python installed
Use caseWhoWhat they get back
Dataset balance checkResearchersA count of female and male images
Quick demo pageDevelopersA small page that returns two scores for an uploaded photo
Audience groupingMarketersPhotos tagged with a predicted class

How to set it up

  • Python on Windows, macOS or Linux
  • The huggingface_hub package, to download the model files
  • The transformers, torch, pillow and gradio packages, to run the card's demo
  1. Install the Hugging Face hub package.
  2. Download the model files to your computer.
  3. Install the libraries the card lists for running the model.
pip install -U huggingface_hub
hf download prithivMLmods/Gender-Classifier-Mini
!pip install -q transformers torch pillow gradio

How to use it

Day to day you load the model and its image processor by name, pass a photo through them, and read two scores, one for each class. These lines from the card do the loading.

from transformers import AutoImageProcessor
from transformers import SiglipForImageClassification
model_name = "prithivMLmods/Gender-Classifier-Mini"
model = SiglipForImageClassification.from_pretrained(model_name)
processor = AutoImageProcessor.from_pretrained(model_name)

The card also gives a longer script that wraps the model in a Gradio upload page.

ToolWhat it does
SiglipForImageClassificationLoads the model with its two-class output
AutoImageProcessorPrepares each photo for the model
gradioWraps the model in a page where you upload a photo

Example

You open the Gradio page from the card and upload one portrait. The page returns a score for Female ♀ and a score for Male ♂, each rounded to three decimals, and the two add up to about one.

For newcomers and experts

If you are new to this, start small. Download the files with the two commands above, run the card's demo script, and upload a single photo to see the two scores.

If you know the field, the model is a SigLIP 2 base encoder with a classification head, 92.9M parameters, about 372 MB in F32 and stored as Safetensors. It turns two logits into scores with a softmax. The trade-off is a fixed two-class label set, and the card does not describe the training data.

  1. A photo goes in
  2. The processor prepares the image
  3. The encoder reads it
  4. The head gives two logits
  5. A softmax turns them into scores

Good to know

Test scores for each class
Female precision0.9660 score
Male precision0.9785 score
Female recall0.9796 score
Male recall0.9641 score
  • Size: 92.9M parameters, about 372 MB in F32, or about 46 MB at 4-bit as an estimate
  • Two classes only: Female ♀ and Male ♂
  • License: apache-2.0
  • Cost to run: none named, it runs on your own computer
  • Data it reaches: the photos you pass in, and the model files you download from Hugging Face
  • Not for: labels beyond the two classes, since the card names no others

README and files

README

Gender-Classifier-Mini

Sorts a photo into two classes, female or male, with a fine-tuned SigLIP 2 image model. Made for developers and researchers who want a small Python classifier for photo sets.

Made by prithivMLmods on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.

About

What it is: Gender-Classifier-Mini looks at a photo and says whether it fits a female or a male class. It is a SigLIP 2 vision-language encoder adapted for two-class image classification, and you run it through the transformers library. On a 5,000 image test set, the card gives an accuracy of 0.9720.

Who it suits: It suits developers and researchers who want a small, ready two-class image labeler in Python, and teams that need to count how a photo set splits between the two classes.

Industry | Who uses it | How they use it | Example
Research | Data analysts | Check how female and male images are spread across a dataset | Counting each class in a folder of portraits
Marketing | Campaign teams | Group audience photos by predicted class | Splitting a photo library into two sets
Software | Developers | Add a two-class image label to an app | A small Gradio page that scores an uploaded photo
Healthcare | Imaging researchers | Run gender-based analysis on medical images | Sorting scans into two groups before a study

You can skip it when you need more than two labels, or when the result affects a person's life, because a photo score is only an estimate.

Where to use it:

  • Python scripts and notebooks with the transformers library
  • A local Gradio page, as the card's demo script shows
  • Windows, macOS or Linux with Python installed
Use case | Who | What they get back
Dataset balance check | Researchers | A count of female and male images
Quick demo page | Developers | A small page that returns two scores for an uploaded photo
Audience grouping | Marketers | Photos tagged with a predicted class

How to set it up:

  • Python on Windows, macOS or Linux
  • The huggingface_hub package, to download the model files
  • The transformers, torch, pillow and gradio packages, to run the card's demo
  1. Install the Hugging Face hub package.
  2. Download the model files to your computer.
  3. Install the libraries the card lists for running the model.
pip install -U huggingface_hub
hf download prithivMLmods/Gender-Classifier-Mini
!pip install -q transformers torch pillow gradio

How to use it: Day to day you load the model and its image processor by name, pass a photo through them, and read two scores, one for each class. These lines from the card do the loading.

from transformers import AutoImageProcessor
from transformers import SiglipForImageClassification
model_name = "prithivMLmods/Gender-Classifier-Mini"
model = SiglipForImageClassification.from_pretrained(model_name)
processor = AutoImageProcessor.from_pretrained(model_name)

The card also gives a longer script that wraps the model in a Gradio upload page.

Tool | What it does
SiglipForImageClassification | Loads the model with its two-class output
AutoImageProcessor | Prepares each photo for the model
gradio | Wraps the model in a page where you upload a photo

Example: You open the Gradio page from the card and upload one portrait. The page returns a score for Female ♀ and a score for Male ♂, each rounded to three decimals, and the two add up to about one.

For newcomers and experts: If you are new to this, start small. Download the files with the two commands above, run the card's demo script, and upload a single photo to see the two scores.

If you know the field, the model is a SigLIP 2 base encoder with a classification head, 92.9M parameters, about 372 MB in F32 and stored as Safetensors. It turns two logits into scores with a softmax. The trade-off is a fixed two-class label set, and the card does not describe the training data.

A photo goes in
The processor prepares the image
The encoder reads it
The head gives two logits
A softmax turns them into scores

Good to know:

Title: Test scores for each class
Female precision: 0.9660 score
Male precision: 0.9785 score
Female recall: 0.9796 score
Male recall: 0.9641 score
  • Size: 92.9M parameters, about 372 MB in F32, or about 46 MB at 4-bit as an estimate
  • Two classes only: Female ♀ and Male ♂
  • License: apache-2.0
  • Cost to run: none named, it runs on your own computer
  • Data it reaches: the photos you pass in, and the model files you download from Hugging Face
  • Not for: labels beyond the two classes, since the card names no others

On Hugging Face, 13 November 2026

  • Task: image classification
  • Library: transformers
  • Parameters: 92.9M
  • Weights: about 372 MB in F32; about 46 MB at 4-bit (estimate)
  • Formats: Safetensors
  • Downloads in the last 30 days: 6,810,513
  • Likes: 20
  • License: apache-2.0
  • Languages: en
  • Based on: google/siglip2-base-patch16-224
  • Quantized versions: 2
  • Tags: transformers, safetensors, siglip, image-classification, gender, male, female, siglip2

Links

Get the model

Download its files with Hugging Face's command line:

pip install -U huggingface_hub
hf download prithivMLmods/Gender-Classifier-Mini

Then follow the usage in its model card. Nothing in this kit runs by itself.

Files
README.md  5 KB

1 file, 5 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-13

Compare with similar

Listed Hugging Face models in the same category that share the most tags with this one.

ProductDownloads, last 30 daysLikesParametersLicenseLast change
Gender-Classifier-Mini This page6,810,5132092.9Mapache-2.0
pixai-tagger-v1.0Shares image-classification · transformers · safetensors36,625165486Mapache-2.0
AIRealNet-2Shares image-classification · transformers · safetensors49210195Mmit
Haruka-TaggerShares image-classification · safetensors010—apache-2.0
YOLO26Shares image-classification26,767264—agpl-3.0
all-MiniLM-L6-v2Shares transformers · safetensors174,740,1846,10422.7Mapache-2.0
Numbers as Mindket last read them, from 2026-11-12 to 2026-11-13.

Reviews

No ratings yet

Write a review

No reviews yet.

More from Mindket

See all from Mindket

DeepSeek-R1-GGUF

unsloth · Kit

GGUF copies of the 671B DeepSeek-R1 reasoning model, with 1.58-bit and 2-bit dynamic quants, for running it in llama.cpp on a local machine with enough memory.

New

Axion-1.0-35B-GGUF

prithivMLmods · Kit

Provides GGUF files of Axion-1.0-35B, a 35B mixture-of-experts model with about 3B active parameters aimed at scientific reasoning, information seeking and too…

New

HEART

Phips · Kit

Upscales low-resolution images with a super-resolution network that trains on one consumer GPU and exports to ONNX. For people who train or run image upscalers.

New

Similar in Developer

See all in Developer

Bonsai-27B-GGUF

lmstudio-community · Kit

A GGUF conversion of the 27B Bonsai model for LM Studio, with a 3.80 GB Q1_0 language file and a 0.93 GB BF16 vision projector. Tested for text, vision and par…

New

Runs DeepSeek-V4.1-Flash-1017 as a 2.9 bits-per-weight EXL3 quantization, a 196 GiB copy for people serving large models on their own hardware. Perplexity stay…

New

MusicGen Small

facebook · Kit

Generates short music clips from a text description or an audio prompt, in the small checkpoint of facebook's MusicGen. It suits developers and music hobbyists…

New