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

CnnFeatureExtractor.py - line 13 #1

Open
albertomancino opened this issue Oct 14, 2021 · 0 comments
Open

CnnFeatureExtractor.py - line 13 #1

albertomancino opened this issue Oct 14, 2021 · 0 comments

Comments

@albertomancino
Copy link
Member

I suggest to replace
self.device = torch.device("cuda:" + str(self.gpu) if self.gpu != '-1' else "cpu")
with
self.device = torch.device("cuda:" + str(self.gpu) if self.gpu != -1 else "cpu")

self.cpu contains integer data that will always match the condition != '-1'.

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