This fork aims to reproduce the results mentioned in the paper in 2023 from the pespective of a software developer
Developer environment:
- Windows 10/11
- Visual Studio 2022 17.5.1
- anaconda(any version should be ok)
- cuda SDK 11.8
The repository is inherited from [maskrcnn-benchmark](https://github.com/facebookresearch/maskrcnn-benchmark, which is completely outdated, and stopped to update since 4 years ago. Therefore we need to first get the closest pytorch installation that will make maskrcnn-benchmark build.
- conda create -n pytorch-1.0
- conda activate pytorch-1.0
- conda install python=3.7
- install pytorch 1.0 with whl
pip install https://download.pytorch.org/whl/cu100/torch-1.0.0-cp37-cp37m-win_amd64.whl
verify that the installation is sucessfulpython -c "import torch;print(torch.version)"
- install torchvision
pip install https://download.pytorch.org/whl/torchvision-0.2.0-py2.py3-none-any.whl
- now start to build the cpp and cu files
- go to source code root dir
python -c "import torch;from torch.utils.cpp_extension import CUDA_HOME;print (CUDA_HOME)"
it is going to look for CUDA_PATH environment variable in the system, if it is not found, it outputsC:/Program Files/NVIDIA GPU Computing Toolkit/CUDA\v10.2
. pytorch 1.0 is likely built with cuda 10.2. But in my system it showsC:/Program Files/NVIDIA GPU Computing Toolkit/CUDA\v11.8
- run
"C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Auxiliary\Build\vcvars64.bat"
so that cl.exe can be found in the path - build the cpp and cu extensions by running
python setup.py build_ext
,and
- install this module,
python setup.py install
- (hack)Now there should be an new folder
build
created in the root dir. For some reason thealign
folder under$(STR-TDSL_RootDir)/maskrcnn_benchmark/modeling/one_stage_head
is not copied. Therefore on my computer i have to do the following manual copying to$(AnacondaRootDir)\envs\pytorch-1.0\Lib\site-packages\maskrcnn_benchmark-0.1-py3.7-win-amd64.egg\maskrcnn_benchmark\modeling\one_stage_head