PWC-Net
PWC-Net copied to clipboard
undefined symbol: state
When I ran "bash make_cuda.sh", it didn't raise any mistake, but when I ran "python test/test.py", it reported "correlation_package/_ext/corr/_corr.so: undefined symbol: state", I don't know how to solve it. I use Ubuntu16.04, cuda8.0 and pytorch 0.2
Please give me some suggestions. Thanks!
Can you try the installation script using Anaconda to set up the environment (copied from readme under PyTorch)?
setup environment
conda create -n pwcnet_test python=2.7 anaconda conda activate pwcnet_test
install pytorch and other dependencies
pip install http://download.pytorch.org/whl/cu80/torch-0.2.0.post3-cp27-cp27mu-manylinux1_x86_64.whl pip install torchvision visdom dominate opencv-python cffi
install external packages
cd external_packages/correlation-pytorch-master/ bash make_cuda.sh cd ../../
When I run "conda activate pwcnet_test", the error is "CommandNotFoundError: 'activate is not a conda command.", so I replace it by "source activate pwcnet_test". Then I just do as the installation script tells, and when I run "python script_pwc.py './data/frame_0010.png' './data/frame_0011.png' './tmp/frame_0010.flo'", it still reports that "ImportError: /home/zhang/anaconda2/envs/pwcnet_test/lib/python2.7/site-packages/correlation_package-0.1-py2.7-linux-x86_64.egg-tmp/correlation_package/_ext/corr/_corr.so: undefined symbol: state".
Can you try again by installing anaconda3 and follow the instructions of the readme in this repository?
On Thu, Dec 27, 2018 at 11:56 PM Andyzzz [email protected] wrote:
When I run "conda activate pwcnet_test", the error is "CommandNotFoundError: 'activate is not a conda command.", so I replace it by "source activate pwcnet_test". Then I just do as the installation script tells, and when I run "python script_pwc.py './data/frame_0010.png' './data/frame_0011.png' './tmp/frame_0010.flo'", it still reports that "ImportError: /home/zhang/anaconda2/envs/pwcnet_test/lib/python2.7/site-packages/correlation_package-0.1-py2.7-linux-x86_64.egg-tmp/correlation_package/_ext/corr/_corr.so: undefined symbol: state".
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/NVlabs/PWC-Net/issues/52#issuecomment-450290083, or mute the thread https://github.com/notifications/unsubscribe-auth/ABHwyfY_EsmrgJ-B1sQo-l8KryNyPIDmks5u9aSYgaJpZM4Y5Oxc .
Installing the post3 version instead of post2, i.e. http://download.pytorch.org/whl/cu80/torch-0.2.0.post3-cp27-cp27mu-manylinux1_x86_64.whl solved the problem for me.