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

Patch yolo object cpu conversion #37

Merged
merged 4 commits into from
Jun 7, 2024

Conversation

philipqueen
Copy link
Collaborator

The YOLO tracker is defaulting to CUDA when available, which is throwing an error when trying to convert the results tensor to a numpy array. This is easily fixed with a .cpu() call on the tensor before the conversion, which is simply skipped when running on cpu per the documentation.

This allows us to continue letting users with CUDA setup to get the benefits of their GPU

@philipqueen philipqueen merged commit 79d7a11 into main Jun 7, 2024
@philipqueen philipqueen deleted the philip/patch_yolo_object_cpu_conversion branch June 7, 2024 17:41
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.

1 participant