GPU Optimized AlexNet Implementation to train on ImageNet 2012 using Tensorflow 2.x
Tensorflow 2.x Implementation of the original AlexNet Paper
Paper Link
·
Architecture
·
Data Loader
·
Model Trainer
AlexNet is a Deep Learning Paper published in the year 2012 by Alex Krizhevsky (Hence, the name). It is one of the pioneer Deep Learning Publications which kick started the Deep Learning Research and proved its importance.
This implementation is a part of my learning where I take an attempt to implement Key Deep Learning Papers using Tensorflow or PyTorch.
The Original Literature Can be found here: AlexNet Paper
Paper Explained Here: ImageNet Classification with Deep Convolutional Neural Networks - YouTube
The final Trained Weights after automatic early stopping can be found here: Epoch 35, Categorical Accuracy 0.48
Nvidia GPU for Training is recommended, However, it can work with CPUs as well (Not Recommended, ImageNet is Huge. It will probably take over a year to Train)
Enough HDD/SSD space is required for the following:
An SSD is recommended and a Mechanical HDD should be avoided since it will slow down the data loader significantly.
ImageNet Download Link: Download ImageNet Dataset
ILSVRC2012_img_train.tar
- Size 137.7 GBILSVRC2012_img_val.tar
- Size 6.3 GBILSVRC2012_img_test.tar
- Size 12.7 GBDownload the dataset from the above link and put it in the folder like shown:
imagenet2012/
├── ILSVRC2012_img_test.tar
├── ILSVRC2012_img_train.tar
└── ILSVRC2012_img_val.tar
Create another folder and create the folders data
, download
& extracted
like shown:
imagenet/
├── data/
├── downloaded/
└── extracted/
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git push origin feature/AmazingFeature
)Distributed under the GNU AGPL V3 License. See LICENSE for more information.