This notebook uses image classification models from Torchvision that were originally trained using ImageNet and does transfer learning with the Food101 dataset, a flowers dataset, or a custom image dataset.
The notebook performs the following steps:
- Import dependencies and setup parameters
- Prepare the dataset
- Predict using the original model
- Transfer learning
- Visualize the model output
- Export the saved model
To run the notebook, follow the instructions to setup the PyTorch notebook environment.
Dataset citations:
@inproceedings{bossard14,
title = {Food-101 -- Mining Discriminative Components with Random Forests},
author = {Bossard, Lukas and Guillaumin, Matthieu and Van Gool, Luc},
booktitle = {European Conference on Computer Vision},
year = {2014}
}
@ONLINE {tfflowers,
author = "The TensorFlow Team",
title = "Flowers",
month = "jan",
year = "2019",
url = "http://download.tensorflow.org/example_images/flower_photos.tgz" }