Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,56 @@
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
---
|
| 4 |
+
# 🐱 Cat vs Dog Image Classifier
|
| 5 |
+
|
| 6 |
+
A TensorFlow CNN model for binary image classification.
|
| 7 |
+
|
| 8 |
+
## Classes
|
| 9 |
+
|
| 10 |
+
- Cat
|
| 11 |
+
- Dog
|
| 12 |
+
|
| 13 |
+
## Architecture
|
| 14 |
+
|
| 15 |
+
- Conv2D
|
| 16 |
+
- MaxPooling2D
|
| 17 |
+
- Dense
|
| 18 |
+
- Dropout
|
| 19 |
+
|
| 20 |
+
## Input Size
|
| 21 |
+
|
| 22 |
+
150x150 RGB
|
| 23 |
+
|
| 24 |
+
## Accuracy
|
| 25 |
+
|
| 26 |
+
Validation Accuracy:
|
| 27 |
+
95%
|
| 28 |
+
|
| 29 |
+
## Installation
|
| 30 |
+
|
| 31 |
+
```bash
|
| 32 |
+
pip install tensorflow pillow numpy
|
| 33 |
+
```
|
| 34 |
+
|
| 35 |
+
## Download
|
| 36 |
+
|
| 37 |
+
```python
|
| 38 |
+
from huggingface_hub import hf_hub_download
|
| 39 |
+
|
| 40 |
+
model_path = hf_hub_download(
|
| 41 |
+
repo_id="PatelDhvanit/Cat-Dog-Classifier",
|
| 42 |
+
filename="cat_dog_model.h5"
|
| 43 |
+
)
|
| 44 |
+
```
|
| 45 |
+
|
| 46 |
+
## Prediction
|
| 47 |
+
|
| 48 |
+
```python
|
| 49 |
+
import tensorflow as tf
|
| 50 |
+
|
| 51 |
+
model=tf.keras.models.load_model(model_path)
|
| 52 |
+
```
|
| 53 |
+
|
| 54 |
+
## Author
|
| 55 |
+
|
| 56 |
+
Dhvanit Patel
|