tasn icon indicating copy to clipboard operation
tasn copied to clipboard

ImportError att_grid_generator_cuda error

Open guofeng12sigma opened this issue 6 years ago • 8 comments

Hi authors, it's a nice work. I follow the instruction and correct setup the pytorch code. But when i import att_grid_generator_cuda, problem occurred. "ImportError: anaconda3/lib/python3.6/site-packages/att_grid_generator-0.0.0-py3.6-linux-x86_64.egg/att_grid_generator_cuda.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN3c1011CPUTensorIdEv" Can you help me fix this problem? Thanks.

guofeng12sigma avatar Oct 18 '19 02:10 guofeng12sigma

@guofeng12sigma Hi, how did you setup code correctly? what version of CUDA, pytorch, c++ compiler you use? I was stuck in setup_att.py... Thanks.

vb123er951 avatar Jun 12 '20 01:06 vb123er951

@guofeng12sigma @vb123er951 Hello, were you able to fix this issue? I am facing the same problem. @Heliang-Zheng it would be great if you can help with this issue. Thanks!

Aminkhormali avatar Oct 19 '20 00:10 Aminkhormali

Hi @Aminkhormali , have you try the corresponding version of pytorch and torchvision? I am using pytorch 1.0.0 and torchvision 0.2.1.

vb123er951 avatar Oct 21 '20 06:10 vb123er951

I was stuck here too, im tryna fix the cpp and cu code to fit pytorch 1.7, however, it didnt work (by replacing AT_CHECK with TORCH_CHECK), so it means that I have to use a lower version of pytorch?

haidog-yaqub avatar Nov 24 '20 05:11 haidog-yaqub

I was stuck here too, im tryna fix the cpp and cu code to fit pytorch 1.7, however, it didnt work (by replacing AT_CHECK with TORCH_CHECK), so it means that I have to use a lower version of pytorch?

i will be so glad if you can get me out

haidog-yaqub avatar Nov 24 '20 05:11 haidog-yaqub

Hi @haidog-yaqub , maybe this is an issue of the pytorch installation not being able to find/link to CUDA shared libraries, can your pytorch program use CUDA correctly?

vb123er951 avatar Nov 24 '20 07:11 vb123er951

Hi @haidog-yaqub , maybe this is an issue of the pytorch installation not being able to find/link to CUDA shared libraries, can your pytorch program use CUDA correctly?

it actually works, I think i just cant install the "setup_att.py" correctly. there are tons of issues, but after solving those bugs, I can't get .obj files anymore (c++ also works well ). maybe I could try it on linux, thanks!

haidog-yaqub avatar Nov 24 '20 09:11 haidog-yaqub

@vb123er951 @guofeng12sigma @haidog-yaqub @Aminkhormali Hi guys, I think I have figured out how to run the setup.py. You maybe interested to read that here #24

WindVChen avatar Nov 29 '21 13:11 WindVChen