Transfer Learning on Dogs vs Cats dataset using PyTorch C++ API
Implementation
mkdir build
cmake -DCMAKE_PREFIX_PATH=/absolute/path/to/libtorch ..
make
./example <path_to_scripting_model>
TODOs:
- Load dataset in the way suggested. Prevents OOM (lazily load a single image)
Test accuracy. And predictions samples.