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

No module named 'sampling cuda' #5

Open
GilesLuo opened this issue Jul 12, 2021 · 3 comments
Open

No module named 'sampling cuda' #5

GilesLuo opened this issue Jul 12, 2021 · 3 comments

Comments

@GilesLuo
Copy link

Hi!
I'm using UBUNTU20.04, anaconda, python 3.6.9, Torch==1.4.0, torchvision==0.4.0, CUDA_version=10.1.

After strictly following the installation instruction, I failed to import 'sampling_cuda'.
To avoid relative/absolute import mess, I directly cd to sampling/ and ran ./sampling.py while ended up getting the same error.
The same error occurred again on another machine that uses Ubuntu18.04 and vanilla python env (i.e. no conda).

Could you help me out of this?

Thanks!

@MSheng-Lee
Copy link

Hi!
I am faced with the same problem with you. Have you solved it now? And if you have solved this problem, how did you do?
Thanks!

@GilesLuo
Copy link
Author

Hi @acheng1115 ,
I have solved it by re-installing CUDA and reboot. Not sure which action actually resolves the issue. One possible reason why I got the 'no module named sampling_cuda' problem is that I use 'python setup.py build' instead of 'python setup.py install'. If you are still stuck after all the above procedures, maybe try to remove everything and start over again.

@MSheng-Lee
Copy link

Thank you for your help! I have also solved this problem by starting again!

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

2 participants