Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 1.28 KB

File metadata and controls

31 lines (20 loc) · 1.28 KB

Image classification with PyTorch

Convolutional neural networks for image classification using the Torch library

Binder CNN HD

Image

We construct two Convolutional Neural Networks (CNN) for image classification, using the PyTorch library.

The data used comes from the widely popular CIFAR-10 dataset which consists of 60000 32x32 color images in 10 classes, with 6000 images per class.

ConvolutionalNN_with_PyTorch.ipynb

The architecture of the networks are as follows:

Network 1:

The first CNN consists of:

  • Two convolutional layers of size 3 with padding.
  • ReLU activation and MaxPooling after each convolutional layer.
  • Finally, a fully-connected Linear layer.

Network 2:

The second CNN consists of:

  • Three convolutional layers of size 3 with padding.
  • ReLU activation, MaxPooling and batch normalization after each convolutional layer.
  • Three fully-connected Linear layers with ReLU activation.