Simple Repository to transfer weights from PyTorch to mlpack.
Complete. Since, this was a different repository, I have created a bash file for testing.
python >= 3.x
mlpack
Armadillo >= 8.400.0
Boost (program_options, math_c99, unit_test_framework, serialization,
spirit) >= 1.58
CMake >= 3.3.2
ensmallen >= 2.10.0
For detailed use, create a python model add it to models folder and pass the model to weight_converter.py. Repeat for C++ side with weight_converter.cpp
For testing, use the following commands :
### Tests darknet model converted from PyTorch.
./run.sh
Expected Output : Accuracy : 0.7236842105
### Tests YOLO model.
./run.sh yolov1_tiny
Expected Output : IoU between prediction from PyTorch and mlpack is : 1.0