Optimize TFJS export on ARM64 (#8946)
Co-authored-by: UltralyticsAssistant <web@ultralytics.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
82e8daef72
commit
368abb4cc8
2 changed files with 3 additions and 5 deletions
|
|
@ -886,6 +886,9 @@ class Exporter:
|
|||
def export_tfjs(self, prefix=colorstr("TensorFlow.js:")):
|
||||
"""YOLOv8 TensorFlow.js export."""
|
||||
check_requirements("tensorflowjs")
|
||||
if ARM64:
|
||||
# Fix error: `np.object` was a deprecated alias for the builtin `object` when exporting to TF.js on ARM64
|
||||
check_requirements("numpy==1.23.5")
|
||||
import tensorflow as tf
|
||||
import tensorflowjs as tfjs # noqa
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue