Uncomment OpenCV 4.5.4 requirement in detect.py (#5305)

This commit is contained in:
Jebastin Nadar authored and GitHub committed 2021-10-23 13:40:34 +02:00
1 parent 79d8f1f678
commit e0c3f42de7
1 file changed
+1 -1
+1 -1
View File
@@ -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'))