Downloads ยท 30 days
50
7% of all-time downloads
anismizi/skin-type-classifier
skin-type-classifier is a image classification model from anismizi. Use it when you need a label for an image. The card lists the license as mit.
A deep learning model for classifying skin types into dry and oily categories using computer vision.
Downloads ยท 30 days
50
7% of all-time downloads
All-time downloads
720
Public
Repo size
189 MB
Likes
1
Public
Click a slice to open those files.
.bin94.4 MB ยท 100%
From the Hugging Face model README
A deep learning model for classifying skin types into dry and oily categories using computer vision.
This model is based on ResNet50 architecture and has been fine-tuned specifically for skin type classification. It can analyze facial skin images and determine whether the skin type is dry or oily with high accuracy.
from transformers import AutoModelForImageClassification, AutoImageProcessor
from PIL import Image
import torch
# Load model and processor
model = AutoModelForImageClassification.from_pretrained("your-username/skin-type-classifier")
processor = AutoImageProcessor.from_pretrained("your-username/skin-type-classifier")
# Load and process image
image = Image.open("path/to/skin/image.jpg")
inputs = processor(images=image, return_tensors="pt")
# Make prediction
with torch.no_grad():
outputs = model(**inputs)
predictions = torch.nn.functional.softmax(outputs.logits, dim=-1)
predicted_class = predictions.argmax().item()
# Get result
labels = ["dry", "oily"]
confidence = predictions[0][predicted_class].item()
print(f"Predicted skin type: {labels[predicted_class]} (confidence: {confidence:.2%})")
from transformers import pipeline
# Create classification pipeline
classifier = pipeline("image-classification", model="your-username/skin-type-classifier")
# Classify image
result = classifier("path/to/skin/image.jpg")
print(result)
This model is released under the MIT License. See LICENSE file for details.
If you use this model in your research, please cite:
@misc{skin-type-classifier-2025,
title={Skin Type Classification Model},
author={Your Name},
year={2025},
howpublished={\\url{https://huggingface.co/your-username/skin-type-classifier}},
}
For questions, issues, or collaboration opportunities, please reach out through the Hugging Face model page or GitHub repository.
Disclaimer: This model is for research and cosmetic purposes only. It should not be used for medical diagnosis or treatment decisions. Always consult healthcare professionals for medical concerns.