Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
raymon-tian opened this issue Aug 11, 2020 · 4 comments

Comments

@raymon-tian
Copy link

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
Copy link

I also gat this same message...

@raymon-tian
Copy link
Author

@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
Copy link

Wei-i commented Oct 1, 2020

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
Copy link

eeric commented Nov 20, 2020

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants