Skip to content

Commit

Permalink
Importing torch on yolov5 webcam demo to fix cuDNN error
Browse files Browse the repository at this point in the history
  • Loading branch information
tsampazk committed Sep 25, 2023
1 parent 30817fe commit 5046ec9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

import cv2
import time
# Importing torch to avoid "RuntimeError: cuDNN error: CUDNN_STATUS_NOT_INITIALIZED" error
import torch # NOQA

from opendr.engine.data import Image
from opendr.perception.object_detection_2d import YOLOv5DetectorLearner
Expand Down

0 comments on commit 5046ec9

Please sign in to comment.