You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,7 @@ This is a repository of all the tutorials of [The Python Code](https://www.thepy
26
26
-[How to Detect Human Faces in Python using OpenCV](https://www.thepythoncode.com/article/detect-faces-opencv-python). ([code](machine-learning/face_detection))
27
27
-[Building a Speech Emotion Recognizer using Scikit-learn](https://www.thepythoncode.com/article/building-a-speech-emotion-recognizer-using-sklearn). ([code](machine-learning/speech-emotion-recognition))
28
28
-[How to Make an Image Classifier in Python using Keras](https://www.thepythoncode.com/article/image-classification-keras-python). ([code](machine-learning/image-classifier))
29
+
-[How to Use Transfer Learning for Image Classification using Keras in Python](https://www.thepythoncode.com/article/use-transfer-learning-for-image-flower-classification-keras-python). ([code](machine-learning/image-classifier-using-transfer-learning))
29
30
-[Top 8 Python Libraries For Data Scientists and Machine Learning Engineers](https://www.thepythoncode.com/article/top-python-libraries-for-data-scientists).
@@ -46,3 +47,4 @@ This is a repository of all the tutorials of [The Python Code](https://www.thepy
46
47
-[How to Extract Weather Data from Google in Python](https://www.thepythoncode.com/article/extract-weather-data-python). ([code](web-scraping/weather-extractor))
47
48
-[How to Download All Images from a Web Page in Python](https://www.thepythoncode.com/article/download-web-page-images-python). ([code](web-scraping/download-images))
48
49
50
+
For any feedback, please consider pulling requests.
# [How to Use Transfer Learning for Image Classification using Keras in Python](https://www.thepythoncode.com/article/use-transfer-learning-for-image-flower-classification-keras-python)
2
+
To run this:
3
+
-`pip3 install -r requirements.txt`
4
+
- To train the model (already trained and the optimal weights are in `results` folder):
5
+
```
6
+
python train.py
7
+
```
8
+
This will load the flower dataset, construct the `MobileNetV2` model with its weights and starts training.
9
+
- 86% accuracy was achieved on 5 classes of flowers which are `daisy`, `dandelion`, `roses`, `sunflowers` and `tulips`.
10
+
- To evaluate the model as well as visualizing different flowers and its corresponding predictions:
0 commit comments