mirror of
https://github.com/THU-MIG/yolov10.git
synced 2025-05-23 21:44:22 +08:00
Remove JAX constraints in Exporter (#8309)
This commit is contained in:
parent
d8b8b71866
commit
e4a62f99f7
2
.github/workflows/ci.yaml
vendored
2
.github/workflows/ci.yaml
vendored
@ -113,8 +113,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip wheel
|
python -m pip install --upgrade pip wheel
|
||||||
pip install -e ".[export]" "coverage[toml]" --extra-index-url https://download.pytorch.org/whl/cpu
|
pip install -e ".[export]" "coverage[toml]" --extra-index-url https://download.pytorch.org/whl/cpu
|
||||||
# Fix SavedModel issue "partially initialized module 'jax' has no attribute 'version' (most likely due to a circular import)" in https://github.com/google/jax/discussions/14036
|
|
||||||
# pip install -U 'jax!=0.4.15' 'jaxlib!=0.4.15'
|
|
||||||
yolo export format=tflite imgsz=32 || true
|
yolo export format=tflite imgsz=32 || true
|
||||||
- name: Check environment
|
- name: Check environment
|
||||||
run: |
|
run: |
|
||||||
|
@ -860,8 +860,7 @@ class Exporter:
|
|||||||
@try_export
|
@try_export
|
||||||
def export_tfjs(self, prefix=colorstr("TensorFlow.js:")):
|
def export_tfjs(self, prefix=colorstr("TensorFlow.js:")):
|
||||||
"""YOLOv8 TensorFlow.js export."""
|
"""YOLOv8 TensorFlow.js export."""
|
||||||
# JAX bug requiring install constraints in https://github.com/google/jax/issues/18978
|
check_requirements("tensorflowjs")
|
||||||
check_requirements(["jax<=0.4.21", "jaxlib<=0.4.21", "tensorflowjs"])
|
|
||||||
import tensorflow as tf
|
import tensorflow as tf
|
||||||
import tensorflowjs as tfjs # noqa
|
import tensorflowjs as tfjs # noqa
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user