sorry @ptrblck  i think my question was wrong,
i tried to build Detectron2 from local clone in Ubuntu like this : Error when building Detectron2 from local clone in Ubuntu · Issue #2712 · facebookresearch/detectron2 · GitHub 1
now how do i do use_ninja=False there for detectron2?
please check this related solution on windows 10 : Build: Command '['ninja', '-v']' returned non-zero exit status 1. · Issue #2390 · facebookresearch/detectron2 · GitHub 3
they do something like this :
conda install pytorch==1.5.0 torchvision==0.6.0 cudatoolkit=10.2 -c pytorch
git clone https://github.com/facebookresearch/detectron2.git 1
“C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat”
set USE_NINJA=OFF
set DISTUTILS_USE_SDK=1
set USE_CUDA=ON
python -m pip install -e detectron2
how can i do similar work on linux/ubuntu