Open II-Matto opened 6 years ago
FYI, there are some discussions on this problem in issue https://github.com/facebookresearch/Detectron/issues/454.
II-Matto did you manage to get it running somehow ?
by just moving all the files under modules/detectron into caffe2/operators I can now use detectron's operators within caffe2 in windows
Issue description
I am using Caffe2+Detectron in Windows. After successfully building Caffe2 (with CUDA, cuDNN, OpenCV), COCOAPI and Detectron modules, I ran the
tools/train_net.py
script in Detectron, trying to train Faster R-CNN on Pascal VOC. But the following errors appeared, reporting a Detectron operatorAffineChannel
not registered. With different configurations, similar errors for other Detectron operators happen.I have modified
import_detectron_ops()
indetectron/utils/c2.py
to use mycaffe2_detectron_ops_gpu.dll
path.I have added the following path with
sys.path.insert(0, path)
in the training script.I have added the following path to my
PATH
variable.pytorch/build/bin/Release
), which containscaffe2_detectron_ops_gpu.dll
The
import
commands seem to have all been successful. So I guess the environment setting should be OK.I used the dumpbin tool to examine my
caffe2_detectron_ops_gpu.dll
, which only has a size of ~5.5MB.With the
EXPORTS
option, the results are as follows:With the
SYMBOLS
option, the results are as follows:Does this mean the Detectron operators are actually not compiled? If so, what could possibly be the reason and how can I make them compile?
Code example
tools/train_net.py
in Detectron with proper arguments.System Info