Training a AlexNet in python and use the parameters of this model in C++
- python 3.7+
- pytorch
- matplotlib
- libtorch
- opencv
mkdir -p build && cd build
cmake -DCMAKE_PREFIX_PATH=/absolute/path/to/libtorch ..
make
./torch_inf ../traced_resnet_model.pt ./4.jpg