Downloads · 30 days
0
SanketSanky/adult_image_classifier
adult_image_classifier is a image classification model from SanketSanky. Use it when you need a label for an image. It is set up for keras. The card lists the license as mit.
This project contains a deep learning model to classify images as Adult or Non-Adult. ...
Downloads · 30 days
0
Access
Public
Updated Jun 6, 2025
Repo size
—
Likes
0
Public
Click a slice to open those files.
.md2.2 KB · 59%
From the Hugging Face model README
This project contains a deep learning model to classify images as Adult or Non-Adult. ...
This project contains a deep learning model to classify images as Adult or Non-Adult.
Install dependencies with:
pip install tensorflow numpy pillow
adult_image_classifier.h5) from the Hugging Face link below.test_images).python predict_images.py
The model is hosted on Hugging Face Hub and can be downloaded or loaded directly from:
Adult Image Classifier on Hugging Face
wget:wget https://huggingface.co/SanketSanky/adult_image_classifier/resolve/main/adult_image_classifier.h5
import os
from tensorflow.keras.models import load_model
import requests
model_url = "https://huggingface.co/SanketSanky/adult_image_classifier/resolve/main/adult_image_classifier.h5"
model_path = "adult_image_classifier.h5"
if not os.path.exists(model_path):
r = requests.get(model_url)
with open(model_path, "wb") as f:
f.write(r.content)
model = load_model(model_path)
predict_images.py: Loads the model and predicts images in a folder.adult_image_classifier.h5: Pre-trained model file.A.jpg: Non-Adult
nude_man2.jpg: Adult
test2.jpeg: Adult
...
MIT License
Sanket tikahnde AI-ML Engineer