aim-uofa / AdelaiDet

AdelaiDet is an open source toolbox for multiple instance-level detection and recognition tasks.
https://git.io/AdelaiDet
Other
3.38k stars 650 forks source link

when I run test code : it gave me an error which liked below,what is wrong with me? #54

Closed AIFANLIN closed 4 years ago

AIFANLIN commented 4 years ago

[root@localhost AdelaiDet-master]# python demo/demo.py \

--config-file configs/FCOS-Detection/R_50_1x.yaml \ --input input1.jpg input2.jpg \ --opts MODEL.WEIGHTS fcos_R_50_1x.pth Traceback (most recent call last): File "demo/demo.py", line 10, in from detectron2.data.detection_utils import read_image File "/usr/local/anaconda3/envs/gpu/lib/python3.6/site-packages/detectron2/data/init.py", line 4, in from .build import ( File "/usr/local/anaconda3/envs/gpu/lib/python3.6/site-packages/detectron2/data/build.py", line 14, in from detectron2.structures import BoxMode File "/usr/local/anaconda3/envs/gpu/lib/python3.6/site-packages/detectron2/structures/init.py", line 2, in from .boxes import Boxes, BoxMode, pairwise_iou File "/usr/local/anaconda3/envs/gpu/lib/python3.6/site-packages/detectron2/structures/boxes.py", line 8, in from detectron2.layers import cat File "/usr/local/anaconda3/envs/gpu/lib/python3.6/site-packages/detectron2/layers/init.py", line 3, in from .deform_conv import DeformConv, ModulatedDeformConv File "/usr/local/anaconda3/envs/gpu/lib/python3.6/site-packages/detectron2/layers/deform_conv.py", line 10, in from detectron2 import _C ImportError: libcudart.so.10.0: cannot open shared object file: No such file or directory

stan-haochen commented 4 years ago

There's something wrong with your Detectron2 compilation.

https://github.com/facebookresearch/detectron2/issues/724

WeianMao commented 4 years ago

download the source code of detectron2, and rebuild it

eeric commented 3 years ago

@AIFANLIN Before installation,rm -rf build to clean the old build. script as following: python3 -m pip install 'git+https://github.com/facebookresearch/detectron2.git' from https://github.com/facebookresearch/detectron2/blob/master/INSTALL.md