Skip to content

Commit

Permalink
Remove check_requirements(('tensorflow>=2.4.1',)) (ultralytics#5476)
Browse files Browse the repository at this point in the history
`check_requirements()` is unreliable for large packages like torch and tensorflow that may have multiple installation routes (i.e. conda, pip, tensorflow-cpu, etc.)
  • Loading branch information
glenn-jocher committed Nov 3, 2021
1 parent 1594d42 commit ee20ce8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ def run(weights=ROOT / 'yolov5s.pt', # model.pt path(s)
import onnxruntime
session = onnxruntime.InferenceSession(w, None)
else: # TensorFlow models
check_requirements(('tensorflow>=2.4.1',))
import tensorflow as tf
if pb: # https://www.tensorflow.org/guide/migrate#a_graphpb_or_graphpbtxt
def wrap_frozen_graph(gd, inputs, outputs):
Expand Down

0 comments on commit ee20ce8

Please sign in to comment.