Skip to content

Conversation

@glhr
Copy link

@glhr glhr commented Sep 26, 2020

The current demo implementation gives an AssertionError when no NVidia driver is found. I replaced .cuda() with .to(device=torch.device('cuda' if torch.cuda.is_available() else 'cpu')) so that the image and webcam demos can be run on CPU when no CUDA device is found.

@HanClinto
Copy link

Works great, thank you!!

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

Successfully merging this pull request may close these issues.

2 participants