Skip to content

Commit

Permalink
Remove check_requirements('flatbuffers==1.12') (ultralytics#9514)
Browse files Browse the repository at this point in the history
* Remove `check_requirements('flatbuffers==1.12')`

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

* Update ci-testing.yml

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

* Update ci-testing.yml

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
  • Loading branch information
glenn-jocher authored Sep 20, 2022
1 parent f8b7463 commit e233c03
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions export.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,8 +534,6 @@ def run(
if coreml: # CoreML
f[4], _ = export_coreml(model, im, file, int8, half)
if any((saved_model, pb, tflite, edgetpu, tfjs)): # TensorFlow formats
if int8 or edgetpu: # TFLite --int8 bug https://github.com/ultralytics/yolov5/issues/5707
check_requirements('flatbuffers==1.12') # required before `import tensorflow`
assert not tflite or not tfjs, 'TFLite and TF.js models must be exported separately, please pass only one type.'
assert not isinstance(model, ClassificationModel), 'ClassificationModel export to TF formats not yet supported.'
f[5], s_model = export_saved_model(model.cpu(),
Expand Down

0 comments on commit e233c03

Please sign in to comment.