requirments
download libtorch (https://download.pytorch.org/libtorch/cu90/libtorch-shared-with-deps-latest.zip)
unzip libtorch, then put them under c++ dir
install cuda9.2
install cudnn7
opencv build with -D_GLIBCXX_USE_CXX11_ABI=0 (important)
How to use
mkdir build
cd build
cmake ..
make
run
./example-app ../mv2.pt test1.jpg test2.jpg
we will see the result
inputs:1
start...
id:0 conf:0.96528
id:4 conf:0.996588