This project utilizes transfer learning to classify images into categories using a pre-trained VGG16 model. Transfer learning allows us to leverage the features learned by the VGG16 model on the ImageNet dataset to improve classification performance on a new dataset.
data/
: Contains scripts for loading and preprocessing image data.model/
: Contains the transfer learning model definition.scripts/
: Contains scripts for training and evaluating the model.requirements.txt
: Lists the required Python packages.
OR
-
Clone the repository:
git clone https://github.com/coderooz/image_classification_transfer_learning.git cd image_classification_transfer_learning
-
Install dependencies:
pip install -r requirements.txt
-
Prepare your dataset: Place your image data in
data/train/
anddata/validation/
directories, with subdirectories for each class. -
Train the model:
python scripts/train_model.py
-
Evaluate the model:
python scripts/evaluate_model.py
The model's accuracy on the validation set will be printed after evaluation.
This project is licensed under the MIT License - see the LICENSE file for details.
- The VGG16 model is provided by TensorFlow.
- Ranit Saha - Coderooz