Skip to content

Kaggle cats v. dogs binary classifier using convolutional neural networks in PyTorch.

Notifications You must be signed in to change notification settings

ragibarnab/cvd-binary-classifier-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cvd-binary-classifier-demo

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.

Usage

  1. Install torch, torchvision, opencv-python
  2. Download the model state dict here.
  3. 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()

Results

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.

Graphs

alt text alt text

About

Kaggle cats v. dogs binary classifier using convolutional neural networks in PyTorch.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages