Instructions to use CaptainHaaz/FERmodelCNN with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use CaptainHaaz/FERmodelCNN 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://CaptainHaaz/FERmodelCNN") - Notebooks
- Google Colab
- Kaggle
Download config.json from CaptainHaaz/FERmodelCNN: direct link, hf CLI and curl.
- Browser
- Download file 244 Bytes
-
https://huggingface.co/CaptainHaaz/FERmodelCNN/resolve/main/config.json
- Command line
-
hf download hf://CaptainHaaz/FERmodelCNN/config.json
-
curl -L -o config.json https://huggingface.co/CaptainHaaz/FERmodelCNN/resolve/main/config.json
244 Bytes
| {"architectures": ["CNN"], "id2label": {"0": "angry", "1": "disgust", "2": "fear", "3": "happy", "4": "neutral", "5": "sad", "6": "surprise"}, "label2id": {"angry": 0, "disgust": 1, "fear": 2, "happy": 3, "neutral": 4, "sad": 5, "surprise": 6}} |