ubuntu系统已安装完pytorch,python和opencv
github环境配置要求
Required packages are listed in requirements.txt.
Note that an old version of OpenCV (3.4.2) is needed since the code uses SIFT module of OpenCV.
The code is tested using Python-3.7.3 with pytorch 1.3.0.
Compile hard example mining functions
shell script
cd hard_mining
python setup.py build_ext --inplace
Compile extend utilities
shell script
cd utils/extend_utils
python build_extend_utils_cffi.py