Instructions to use gloryadeleru/CNN-Gender-Classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use gloryadeleru/CNN-Gender-Classifier with Keras:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://gloryadeleru/CNN-Gender-Classifier") - Notebooks
- Google Colab
- Kaggle
Commit ·
194bb2c
1
Parent(s): e0c2cbb
Add trained CNN gender classifier model
Browse filesFiles changed (2)
- README.mdAdded+66
- best_multi_output_model.h5Added+3
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566---
license: apache-2.0
tags:
\- tensorflow
\- keras
\- computer-vision
\- image-classification
\- gender-classification
\- age-estimation
framework: tensorflow
---
\# CNN Gender \& Age Classifier
This repository contains a trained \*\*CNN-based TensorFlow/Keras model\*\*.
\## Tasks
\- Gender classification (Male / Female)
\- Age range prediction from facial images
\## Model File
\- `best\_multi\_output\_model.h5`
\## How to Load the Model
```python
import tensorflow as tf
model = tf.keras.models.load\_model(
"best\_multi\_output\_model.h5",
compile=False
)
123version https://git-lfs.github.com/spec/v1oid sha256:fba24b8d803e78e4aa29ad7bb027f690d23ab842b0719edb3985fa9843406f94size 162089720README.mdAdded+66
best_multi_output_model.h5Added+3