Instructions to use SopanhaZinII/panha1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use SopanhaZinII/panha1 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://SopanhaZinII/panha1") - Notebooks
- Google Colab
- Kaggle
Facial Condition Analysis Model
Detects 5 skin conditions: Acne, Dry Skin, Oily Skin, Dark Spots, Wrinkles
Usage
import tensorflow as tf
from tensorflow.keras.models import load_model
model = load_model('finetuned_best.h5')
# Input: 224x224 RGB images
# Output: 5 predictions (percentages)
Model Details
- Framework: TensorFlow/Keras
- Input Size: 224x224x3
- Output: 5 sigmoid outputs
- Accuracy: ~88%