Skip to content

ZJUTSong/Digit-Recognition-MNIST-SVHN-PyTorch-CPP

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Digit-Recognition-MNIST-SVHN

Blog

The blog post on using VGG-Net on MNIST Dataset using PyTorch C++ API: https://krshrimali.github.io/PyTorch-C++-API/.

Implementing CNN for Digit Recognition (MNIST and SVHN dataset) using PyTorch C++ API

Branch - Version 1

1. Using MNIST dataset currently.
2. Installing PyTorch C++ API.
3. Training using PyTorch C++ API.

Note: There may be C10:errors either because of:

  1. Incorrect data path. Check your data directory of MNIST dataset.
  2. Make sure while using cmake: cmake -DCMAKE_PREFIX_PATH=/absolute_path_to_libtorch/ - it should be absolute path to libtorch.

Process

Note: Prefer using stable version of libtorch. This code doesn't use GPU, as I don't have the resources to test it right now.

  1. mkdir build
  2. cd build
  3. cmake: cmake -DCMAKE_PREFIX_PATH=/home/user/path/to/libtorch/ ..
  4. make
  5. ./example

About

Implementing CNN for Digit Recognition (MNIST and SVHN dataset) using PyTorch C++ API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 97.1%
  • CMake 2.9%