EfficientNet implementation from scratch for classifying images from the Oxford-IIIT Pet Dataset
efficientnet/
: Contains the model and utility functions.data/
: Data transformations.train.py
: Script for training the model.evaluate.py
: Script for evaluating the model.requirements.txt
: List of dependencies.efficientnet_pet_model.pth
: Pre-trained weights provided for your convenience.
To train the model, run:
python train.py
First download your desired image and save it in the main directory of project with the name example.jpg
Then run the evaluate.py
script to make predictions using the trained model:
python evaluate.py
Install the required dependencies using:
pip install -r requirements.txt
The dataset used for training is the Oxford-IIIT Pet Dataset.
This project is licensed under the MIT License. See the LICENSE
file for details.
- The EfficientNet model architecture is inspired by the original EfficientNet paper.
- To implement the architecture, this post on Medium has been used.