Kaggle cats v. dogs binary classifier using convolutional neural networks in PyTorch. Dataset can be found in this Kaggle Link. The pre-trained model state dict can be downloaded here.
- Install torch, torchvision, opencv-python
- Download the model state dict here.
- Load the model state dict into a new instance of the model class from model.py.
model = ConvNet().to(device) # add 'cpu' if there is no gpu
model.load_state_dict(torch.load('path_to_state_dict'))
model.eval()
The classifier during training reached 99.0%+ accuracy with validation set. Not sure how it will perform with testing set, due to the testing set from Kaggle is lacking labels. Will output accuracy over the whole 25,000 training images later.

