ultralytics 8.0.172 faster LetterBox() and Classify Tune fix (#4766)

Co-authored-by: BardJun <70683507+jy1002@users.noreply.github.com>
This commit is contained in:
Glenn Jocher 2023-09-06 22:00:04 +02:00 committed by GitHub
parent 577d066fb2
commit 8fd9a1a048
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 68 additions and 26 deletions

View file

@ -214,7 +214,7 @@ def add_integration_callbacks(instance):
callbacks_list.extend([clear_cb, comet_cb, dvc_cb, mlflow_cb, neptune_cb, tune_cb, tb_cb, wb_cb])
# Load export callbacks (patch to avoid CoreML protobuf error)
if 'Exporter' in instance.__class__.__name__:
if 'Exporter' in instance.__class__.__name__ and instance.args.format in ('coreml', 'mlmodel'):
from .tensorboard import callbacks as tb_cb
callbacks_list.append(tb_cb)