瀏覽代碼

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.)
modifyDataloader
Glenn Jocher GitHub 2 年之前
父節點
當前提交
0eb37ad8af
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 0 行新增1 行删除
  1. +0
    -1
      detect.py

+ 0
- 1
detect.py 查看文件

@@ -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):

Loading…
取消
儲存