You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Loading SiamMask module: feature_extractor ...
Exception thrown!
Cannot initialize CUDA without ATen_cuda library. PyTorch splits its backend into two shared libraries: a CPU library and a CUDA library; this error has occurred because you are trying to use some CUDA functionality, but the CUDA library has not been loaded by the dynamic linker for some reason. The CUDA library MUST be loaded, EVEN IF you don't directly use any symbols from the CUDA library! One common culprit is a lack of -Wl,--no-as-needed in your link arguments; many dynamic linkers will delete dynamic library dependencies if you don't depend on any of their symbols. You can check if this has occurred by using ldd on your binary to see if there is a dependency on *_cuda.so library. (initCUDA at /pytorch/aten/src/ATen/detail/CUDAHooksInterface.h:63)
frame #0: c10::Error::Error(c10::SourceLocation, std::string const&) + 0x33 (0x7f9ff4955193 in /home/chengye.cy/anaconda3/envs/py38/lib/python3.8/site-packages/torch/lib/libc10.so)
frame #1: <unknown function> + 0xadee36 (0x7f9ff5659e36 in /home/chengye.cy/anaconda3/envs/py38/lib/python3.8/site-packages/torch/lib/libtorch.so)
frame #2: void std::call_once<at::Context::lazyInitCUDA()::{lambda()#1}>(std::once_flag&, at::Context::lazyInitCUDA()::{lambda()#1}&&)::{lambda()#2}::_FUN() + 0x2c (0x7f9ff561f63c in /home/chengye.cy/anaconda3/envs/py38/lib/python3.8/site-packages/torch/lib/libtorch.so)
frame #3: <unknown function> + 0xe759 (0x7f9ff054f759 in /lib/x86_64-linux-gnu/libpthread.so.0)
frame #4: <unknown function> + 0xaa4b54 (0x7f9ff561fb54 in /home/chengye.cy/anaconda3/envs/py38/lib/python3.8/site-packages/torch/lib/libtorch.so)
frame #5: at::LegacyTypeDispatch::initForTensorTypeSet(c10::TensorTypeSet)::{lambda()#2}::operator()() const + 0x20 (0x55ff30451de2 in ./demo)
frame #6: void std::__invoke_impl<void, at::LegacyTypeDispatch::initForTensorTypeSet(c10::TensorTypeSet)::{lambda()#2}>(std::__invoke_other, at::LegacyTypeDispatch::initForTensorTypeSet(c10::TensorTypeSet)::{lambda()#2}&&) + 0x20 (0x55ff3047ebfa in ./demo)
frame #7: _ZSt8__invokeIZN2at18LegacyTypeDispatch20initForTensorTypeSetEN3c1013TensorTypeSetEEUlvE0_JEENSt9result_ofIFOT_DpOT0_EE4typeES7_SA_ + 0x26 (0x55ff3047538b in ./demo)
frame #8: void std::call_once<at::LegacyTypeDispatch::initForTensorTypeSet(c10::TensorTypeSet)::{lambda()#2}>(std::once_flag&, at::LegacyTypeDispatch::initForTensorTypeSet(c10::TensorTypeSet)::{lambda()#2}&&)::{lambda()#1}::operator()() const + 0x23 (0x55ff3046ae07 in ./demo)
frame #9: void std::call_once<at::LegacyTypeDispatch::initForTensorTypeSet(c10::TensorTypeSet)::{lambda()#2}>(std::once_flag&, at::LegacyTypeDispatch::initForTensorTypeSet(c10::TensorTypeSet)::{lambda()#2}&&)::{lambda()#2}::operator()() const + 0x1f (0x55ff3046ae37 in ./demo)
frame #10: void std::call_once<at::LegacyTypeDispatch::initForTensorTypeSet(c10::TensorTypeSet)::{lambda()#2}>(std::once_flag&, at::LegacyTypeDispatch::initForTensorTypeSet(c10::TensorTypeSet)::{lambda()#2}&&)::{lambda()#2}::_FUN() + 0xe (0x55ff3046ae48 in ./demo)
frame #11: <unknown function> + 0xe759 (0x7f9ff054f759 in /lib/x86_64-linux-gnu/libpthread.so.0)
frame #12: <unknown function> + 0xead262 (0x7f9ff5a28262 in /home/chengye.cy/anaconda3/envs/py38/lib/python3.8/site-packages/torch/lib/libtorch.so)
frame #13: <unknown function> + 0xead78a (0x7f9ff5a2878a in /home/chengye.cy/anaconda3/envs/py38/lib/python3.8/site-packages/torch/lib/libtorch.so)
frame #14: at::native::to(at::Tensor const&, c10::Device, c10::ScalarType, bool, bool, c10::optional<c10::MemoryFormat>) + 0x2a6 (0x7f9ff5a2a676 in /home/chengye.cy/anaconda3/envs/py38/lib/python3.8/site-packages/torch/lib/libtorch.so)
frame #15: <unknown function> + 0x11f3193 (0x7f9ff5d6e193 in /home/chengye.cy/anaconda3/envs/py38/lib/python3.8/site-packages/torch/lib/libtorch.so)
frame #16: <unknown function> + 0x2ed9352 (0x7f9ff7a54352 in /home/chengye.cy/anaconda3/envs/py38/lib/python3.8/site-packages/torch/lib/libtorch.so)
frame #17: <unknown function> + 0x123dbea (0x7f9ff5db8bea in /home/chengye.cy/anaconda3/envs/py38/lib/python3.8/site-packages/torch/lib/libtorch.so)
frame #18: at::Tensor::to(c10::Device, c10::ScalarType, bool, bool, c10::optional<c10::MemoryFormat>) const + 0x1fb (0x7f9ff566976b in /home/chengye.cy/anaconda3/envs/py38/lib/python3.8/site-packages/torch/lib/libtorch.so)
frame #19: <unknown function> + 0x3265a40 (0x7f9ff7de0a40 in /home/chengye.cy/anaconda3/envs/py38/lib/python3.8/site-packages/torch/lib/libtorch.so)
frame #20: <unknown function> + 0x3267bc0 (0x7f9ff7de2bc0 in /home/chengye.cy/anaconda3/envs/py38/lib/python3.8/site-packages/torch/lib/libtorch.so)
frame #21: <unknown function> + 0x3267fd3 (0x7f9ff7de2fd3 in /home/chengye.cy/anaconda3/envs/py38/lib/python3.8/site-packages/torch/lib/libtorch.so)
frame #22: <unknown function> + 0x3289173 (0x7f9ff7e04173 in /home/chengye.cy/anaconda3/envs/py38/lib/python3.8/site-packages/torch/lib/libtorch.so)
frame #23: <unknown function> + 0x328b766 (0x7f9ff7e06766 in /home/chengye.cy/anaconda3/envs/py38/lib/python3.8/site-packages/torch/lib/libtorch.so)
frame #24: torch::jit::load(std::unique_ptr<caffe2::serialize::ReadAdapterInterface, std::default_delete<caffe2::serialize::ReadAdapterInterface> >, c10::optional<c10::Device>, std::unordered_map<std::string, std::string, std::hash<std::string>, std::equal_to<std::string>, std::allocator<std::pair<std::string const, std::string> > >&) + 0x13b (0x7f9ff7e0719b in /home/chengye.cy/anaconda3/envs/py38/lib/python3.8/site-packages/torch/lib/libtorch.so)
frame #25: torch::jit::load(std::string const&, c10::optional<c10::Device>, std::unordered_map<std::string, std::string, std::hash<std::string>, std::equal_to<std::string>, std::allocator<std::pair<std::string const, std::string> > >&) + 0x69 (0x7f9ff7e07349 in /home/chengye.cy/anaconda3/envs/py38/lib/python3.8/site-packages/torch/lib/libtorch.so)
frame #26: SiamMask::SiamMask(std::string const&, c10::Device const&) + 0x3d8 (0x55ff3045d056 in ./demo)
frame #27: main + 0x2b5 (0x55ff304457e4 in ./demo)
frame #28: __libc_start_main + 0xf1 (0x7f9fef9252e1 in /lib/x86_64-linux-gnu/libc.so.6)
frame #29: _start + 0x2a (0x55ff30441b6a in ./demo)
The text was updated successfully, but these errors were encountered:
Thank you so much to show your project.But when i run this project on cpu ,it has following error:
I changed device to cpu
Error:
The text was updated successfully, but these errors were encountered: