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

Support for non CUDA machines #117

Closed
divyanshumehta opened this issue Oct 13, 2018 · 2 comments
Closed

Support for non CUDA machines #117

divyanshumehta opened this issue Oct 13, 2018 · 2 comments

Comments

@divyanshumehta
Copy link

Thanks in Advance. The work you people have done is awesome btw.

Well I read that the code development environment was with 2-8 graphics memory. But is there a way of just running the visualisation of a non CUDA device, so that i could use it for doing segmentation on client devices.

@hangzhaomit
Copy link
Collaborator

Yes you could take away .cuda() and .to(device) in the code, so that you just run on cpu.

@nefelipk
Copy link

nefelipk commented Mar 20, 2019

Hello,

When I do not change anything in test.py I get this error:
AttributeError: module 'torch._C' has no attribute '_cuda_setDevice'

When I comment the lines
76. torch.cuda.set_device(args.gpu) (or give as argument -1)
108. segmentation_module.cuda()
I get the error:
AssertionError: Torch not compiled with CUDA enabled

I also did not find .to(device) anywhere in the code.

Could you please share how you fix these problems and run on a non CUDA device?

Thank you very much in advance.

Edit: I commented lines 51, 58, 76, 108 (all lines containing "cuda" or "gpu") on test.py and it run. I did not change any other files, I hope the changes in this file are enough.

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

3 participants