Open1

detectron2 v0.6 の 共有ライブラリのビルドと抽出

PINTOPINTO
git clone https://github.com/facebookresearch/detectron2.git
cd detectron2
git checkout 2435b5fe0fac43f716e19fff61ab3c5d104f1473
python -m pip install -e .
sudo chmod 777 build/lib.linux-x86_64-cpython-38/detectron2/_C.cpython-38-x86_64-linux-gnu.so
sudo chown $USER build/lib.linux-x86_64-cpython-38/detectron2/_C.cpython-38-x86_64-linux-gnu.so
cp build/lib.linux-x86_64-cpython-38/detectron2/_C.cpython-38-x86_64-linux-gnu.so  {_Cをimportしたいモジュールと同じ階層}