I followed all instructions of INSTALLATION.md and I still I am getting
from detectron2 import _C
ImportError: libtorch_cpu.so: cannot open shared object file: No such file or directory
However, I am able to import detectron2 from any directory outside detectron2's root directory
I tried running -
python demo.py --config-file ../configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml
--input images.jpeg
--opts MODEL.WEIGHTS ../COCO-InstanceSegmentation/model_final_f10217.pkl
I expected sample output of detectron2 by runnning demo.py
sys.platform linux
Python 3.8.2 (default, Apr 27 2020, 15:53:34) [GCC 9.3.0]
numpy 1.18.4
detectron2 0.1.2 @/home/shiva/work/object_rotated/lib/python3.8/site-packages/detectron2
detectron2._C failed to import
DETECTRON2_ENV_MODULE
PyTorch 1.4.0+cu92 @/home/shiva/work/object_rotated/lib/python3.8/site-packages/torch
PyTorch debug build False
CUDA available True
GPU 0 GeForce 940MX
CUDA_HOME /usr
NVCC Cuda compilation tools, release 10.1, V10.1.243
Pillow 7.1.2
torchvision 0.5.0+cu92 @/home/shiva/work/object_rotated/lib/python3.8/site-packages/torchvision
torchvision arch flags sm_35, sm_50, sm_60, sm_70
fvcore 0.1.dev200505
cv2 4.2.0
PyTorch built with:
```
I tried common installation issues but my error was not resolved
However I am able to import detectron2 from any directory outside detectron2's root directory
It seems you're using a pre-built detectron2. As the installation instruction says:
Such installation has to be used with certain version of official PyTorch release. See releases for requirements.
Yours did not meet the requirements.
I tried it with Detectron2 v0.1 Release
As this release says PyTorch version 1.4 is required
Still getting same error
from detectron2 import _C
ImportError: libtorch_cpu.so: cannot open shared object file: No such file or directory
It seems you're using a pre-built detectron2. As the installation instruction says:
Such installation has to be used with certain version of official PyTorch release. See releases for requirements.
Yours did not meet the requirements.
"""
I tried it with Detectron2 v0.1 Release
As this release says PyTorch version 1.4 is required
Still getting same error
"""
from detectron2 import _C
ImportError: libtorch_cpu.so: cannot open shared object file: No such file or directory
Your log says you installed detectron2 0.1.2
Your log says you installed
detectron2 0.1.2
I tried again
Nevertheless I built detectron2 from source and issue was resolved
Thank You :)
This issue was resolved by using tag v0.1.1
I resolved this issue by updating pytroch from 1.4.0 to 1.5.0
This issue was resolved by using tag v0.1.1
@songruoning
hello.
Could u tell me how to use tag v0.1.1?
You can see branch, there is a branch named v0.1.1 pull that and use it.
On Thu, Jul 16, 2020 at 12:27 PM Ricelll notifications@github.com wrote:
This issue was resolved by using tag v0.1.1
@songruoning https://github.com/songruoning
hello.
Could u tell me how to use tag v0.1.1?—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/facebookresearch/detectron2/issues/1365#issuecomment-659199315,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJW4UPLLVUDJXCCGK5SAUK3R32QFXANCNFSM4MZ3TPCA
.