Skip to content

Commit

Permalink
Uncomment OpenCV 4.5.4 requirement in detect.py (#5305)
Browse files Browse the repository at this point in the history
  • Loading branch information
jebastin-nadar committed Oct 23, 2021
1 parent 79d8f1f commit e0c3f42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def run(weights=ROOT / 'yolov5s.pt', # model.pt path(s)
modelc.load_state_dict(torch.load('resnet50.pt', map_location=device)['model']).to(device).eval()
elif onnx:
if dnn:
# check_requirements(('opencv-python>=4.5.4',))
check_requirements(('opencv-python>=4.5.4',))
net = cv2.dnn.readNetFromONNX(w)
else:
check_requirements(('onnx', 'onnxruntime-gpu' if torch.has_cuda else 'onnxruntime'))
Expand Down

0 comments on commit e0c3f42

Please sign in to comment.