Skip to content

Commit 0eb37ad

Browse files
authored
Remove check_requirements(('tensorflow>=2.4.1',)) (#5476)
`check_requirements()` is unreliable for large packages like torch and tensorflow that may have multiple installation routes (i.e. conda, pip, tensorflow-cpu, etc.)
1 parent 042f02f commit 0eb37ad

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

detect.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ def run(weights=ROOT / 'yolov5s.pt', # model.pt path(s)
9494
import onnxruntime
9595
session = onnxruntime.InferenceSession(w, None)
9696
else: # TensorFlow models
97-
check_requirements(('tensorflow>=2.4.1',))
9897
import tensorflow as tf
9998
if pb: # https://www.tensorflow.org/guide/migrate#a_graphpb_or_graphpbtxt
10099
def wrap_frozen_graph(gd, inputs, outputs):

0 commit comments

Comments
 (0)