Instructions to use KarimSayed/cat-breed-encoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use KarimSayed/cat-breed-encoder 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://KarimSayed/cat-breed-encoder") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files20 unmodified lines2122232425262715 unmodified lines4344454620 unmodified linesEfficientNetV2-L is a state-of-the-art image classification model that provides a good balance of speed and accuracy while achieving high performance on image recognition tasks.## Intended UseThis model is designed for the creation of embeddings of cat breeds in images.## How to UseYou can easily load this model and use it to classify cat images with the following code snippet:15 unmodified linesimg_array /= 255.0 # Normalize to [0, 1]# Predict the cat breedpredictions = model.predict(img_array)20 unmodified lines21222324252627282915 unmodified lines45464748495051525354555657585960616263646520 unmodified linesEfficientNetV2-L is a state-of-the-art image classification model that provides a good balance of speed and accuracy while achieving high performance on image recognition tasks.## Intended UseThis model is designed for the classification of cat breeds in images. It can be used for:- **Cat breed classification** in images of cats.- **Feature extraction** via embeddings, which can be used for further analysis, clustering, or as a feature for other machine learning tasks.## How to UseYou can easily load this model and use it to classify cat images with the following code snippet:15 unmodified linesimg_array /= 255.0 # Normalize to [0, 1]# Predict the cat breedpredictions = model.predict(img_array)# Predict the cat breedpredictions = model.predict(img_array)class_labels = ["Bengal", "Domestic Shorthair", "Maine Coon", "Ragdoll", "Siamese"]predicted_breed = class_labels[np.argmax(predictions)]predicted_breed = class_labels[np.argmax(predictions)]print(f"Predicted Cat Breed: {predicted_breed}")## Training DataThis model was trained on the **[Cats Breed Dataset](https://www.kaggle.com/datasets/yapwh1208/cats-breed-dataset)**, available on Kaggle.The dataset consists of labeled images for each breed, which were resized to 128x128 pixels for training. The images were also normalized to a [0, 1] range to match the input size required by EfficientNetV2-L. Data augmentation techniques such as random rotations, flips, and scaling were applied to increase model robustness and reduce overfitting.
README.md+21-2