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

Feature Request: Option to run on CPU #8

Open
jraufeisen opened this issue Nov 21, 2023 · 0 comments
Open

Feature Request: Option to run on CPU #8

jraufeisen opened this issue Nov 21, 2023 · 0 comments

Comments

@jraufeisen
Copy link

Thanks for this awesome implementation of CAMERAS!
I was experimenting with it on a non-GPU machine first and found that by default this library assumes that CUDA is installed. But with a few tweaks it's possible to run it on CPU only.

Could we add functionality for that?

An intuitive implementation could be to check inside the constructor of CAMERAS(<model>, ...) which device the given model lives in. Then all existing calls to .cuda() can be replaced with .to(<device>).

What do you think?

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

1 participant