KarimSayed commited on
Commit
aae64e0
·
verified ·
1 Parent(s): 435971c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +21 -2
README.md CHANGED
@@ -21,7 +21,9 @@ The model is trained to classify the following five cat breeds:
21
  EfficientNetV2-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.
22
 
23
  ## Intended Use
24
- This model is designed for the creation of embeddings of cat breeds in images.
 
 
25
 
26
  ## How to Use
27
  You can easily load this model and use it to classify cat images with the following code snippet:
@@ -43,4 +45,21 @@ img_array = np.expand_dims(img_array, axis=0) # Add batch dimension
43
  img_array /= 255.0 # Normalize to [0, 1]
44
 
45
  # Predict the cat breed
46
- predictions = model.predict(img_array)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  EfficientNetV2-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.
22
 
23
  ## Intended Use
24
+ This model is designed for the classification of cat breeds in images. It can be used for:
25
+ - **Cat breed classification** in images of cats.
26
+ - **Feature extraction** via embeddings, which can be used for further analysis, clustering, or as a feature for other machine learning tasks.
27
 
28
  ## How to Use
29
  You can easily load this model and use it to classify cat images with the following code snippet:
 
45
  img_array /= 255.0 # Normalize to [0, 1]
46
 
47
  # Predict the cat breed
48
+ predictions = model.predict(img_array)
49
+
50
+ # Predict the cat breed
51
+ predictions = model.predict(img_array)
52
+ class_labels = ["Bengal", "Domestic Shorthair", "Maine Coon", "Ragdoll", "Siamese"]
53
+ predicted_breed = class_labels[np.argmax(predictions)]
54
+
55
+
56
+ predicted_breed = class_labels[np.argmax(predictions)]
57
+
58
+ print(f"Predicted Cat Breed: {predicted_breed}")
59
+
60
+
61
+
62
+ ## Training Data
63
+
64
+ This model was trained on the **[Cats Breed Dataset](https://www.kaggle.com/datasets/yapwh1208/cats-breed-dataset)**, available on Kaggle.
65
+ 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.