Just a simple 8 layer CNN developed to work on CIFAR-10. The code is inspired by pytorch mnist tutorial, ie https://github.com/pytorch/examples/blob/master/mnist/main.py as well as work from CS598 D from UIUC, which is a Deep Learning course I am taking.
Just a fun little project to show case some basic concepts like max pooling, batch normalization, and drop out.
To get started on the project is very easy, just
git clone [email protected]:yumochi/CIFAR-10-CNN.git
To run the code you will need the following:
(Refer to https://www.python.org/downloads/)
# Python 3.x
pip3 install torch torchvision
# Python 2.x`
pip install torch torchvision
(Refer to https://pytorch.org/get-started/locally/ for more info.)
pip install torchvision
(Refer to https://pypi.org/project/torchvision/0.1.8/ )
pip install h5py
h5py was originally used to import image data, but the code is adopted to use Torchvision
Comment out code if not needed
python main.py
For a list of terminal commands for the argparser, refer to texts below or check in hw3.py for all parameters
x has to be an integer
python hw3.py --batch-size 16
x has to be an integer
python hw3.py --epochs 30
x has to be an float
python hw3.py --lr 0.0001
x has to be an integer
python hw3.py --mck 16
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Yumo Chi - Initial work - CIFAR-10-CNN
- Pytorch Developers
- UIUC CS598D's professor and tas.