aim-uofa / AdelaiDet

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

ImportError: adet/_C.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNK2at6Tensor6deviceEv #181

Closed raymon-tian closed 4 years ago

raymon-tian commented 4 years ago
python tools/train_net.py \
    --config-file configs/FCOS-Detection/R_50_1x.yaml \
    --eval-only \
    --num-gpus 2 \
    OUTPUT_DIR training_dir/fcos_R_50_1x \
    MODEL.WEIGHTS training_dir/fcos_R_50_1x/fcos_R_50_1x.pth

  File "/home/xxx/AdelaiDet/adet/layers/bezier_align.py", line 7, in <module>
    from adet import _C
ImportError: adet/_C.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNK2at6Tensor6deviceEv
gritYCDA commented 4 years ago

I also gat this same message...

raymon-tian commented 4 years ago

@gritYCDA the problem has been solved. Please build AdelaiDet with the checkout 9eb4831of the Detectron2.

git clone https://github.com/facebookresearch/detectron2.git
cd detectron2
git checkout -f 9eb4831
cd ..
python -m pip install -e detectron2
git clone https://github.com/aim-uofa/AdelaiDet.git
cd AdelaiDet
python setup.py build develop
Wei-i commented 3 years ago

thanks a lot!!!!!!

@gritYCDA the problem has been solved. Please build AdelaiDet with the checkout 9eb4831of the Detectron2.

git clone https://github.com/facebookresearch/detectron2.git
cd detectron2
git checkout -f 9eb4831
cd ..
python -m pip install -e detectron2
git clone https://github.com/aim-uofa/AdelaiDet.git
cd AdelaiDet
python setup.py build develop

Thanks a lot !! I use :git clone https://github.com/facebookresearch/detectron2.git -b 9eb4831 , but got error. So I still wanted to know why this commond can not work. I am looking forward to your reply!

eeric commented 3 years ago

@raymon-tian 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