How to use from the
Use from the
Scikit-learn library
from huggingface_hub import hf_hub_download
import joblib
model = joblib.load(
	hf_hub_download("Rob4343/FaceShapeAI", "sklearn_model.joblib")
)
# only load pickle files from sources you trust
# read more about it here https://skops.readthedocs.io/en/stable/persistence.html

Face Shape AI

FaceShapeAI predicts your face shape from a photo.

Try the app demo

Example

Run locally

  • python demo.py your_photo.jpg

FaceShapeAI analyzes your photo to detect a face and extract a dense set of facial landmarks (eyes, nose, mouth, jawline, and more). It then lightly normalizes the geometry—correcting small head tilt and scaling the landmarks for consistency across images. Finally, it runs the trained model included in this repo to predict the most likely face shape and prints confidence scores for each class.

GitHub Repository

Downloads last month
-
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support