detectron2 windows build
pip install git+https://github.com/facebookresearch/fvcore
pip install cython; pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI
file1:
{your evn path}\Lib\site-packages\torch\include\torch\csrc\jit\argument_spec.h
example:
{C:\Miniconda3\envs\py36}\Lib\site-packages\torch\include\torch\csrc\jit\argument_spec.h(190)
static constexpr size_t DEPTH_LIMIT = 128;
change to -->
static const size_t DEPTH_LIMIT = 128;
file2:
{your evn path}\Lib\site-packages\torch\include\pybind11\cast.h
example:
{C:\Miniconda3\envs\py36}\Lib\site-packages\torch\include\pybind11\cast.h(1449)
explicit operator type&() { return *(this->value); }
change to -->
explicit operator type&() { return *((type*)this->value); }
After having the above dependencies, run:
conda activate {your env}
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
git clone https://github.com/conansherry/detectron2
cd detectron2
python setup.py build develop
Note: you may need to rebuild detectron2 after reinstalling a different build of PyTorch.
Detectron2 is Facebook AI Research’s next generation software system
that implements state-of-the-art object detection algorithms.
It is a ground-up rewrite of the previous version,
Detectron,
and it originates from maskrcnn-benchmark.
See our blog post
to see more demos and learn about detectron2.
See INSTALL.md.
See GETTING_STARTED.md,
or the Colab Notebook.
Learn more at our documentation.
And see projects/ for some projects that are built on top of detectron2.
We provide a large set of baseline results and trained models available for download in the Detectron2 Model Zoo.
Detectron2 is released under the Apache 2.0 license.
If you use Detectron2 in your research or wish to refer to the baseline results published in the Model Zoo, please use the following BibTeX entry.
@misc{wu2019detectron2,
author = {Yuxin Wu and Alexander Kirillov and Francisco Massa and
Wan-Yen Lo and Ross Girshick},
title = {Detectron2},
howpublished = {\url{https://github.com/facebookresearch/detectron2}},
year = {2019}
}