Skip to content

Commit 85acef3

Browse files
authored
Pin tensorflow>=2.0.0,<=2.19.0 (#13648)
* Pin `tensorflow>=2.0.0,<=2.19.0` Signed-off-by: Glenn Jocher <[email protected]> * Update ci-testing.yml Signed-off-by: Glenn Jocher <[email protected]> * Update ci-testing.yml Signed-off-by: Glenn Jocher <[email protected]> --------- Signed-off-by: Glenn Jocher <[email protected]>
1 parent 7071317 commit 85acef3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/ci-testing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- uses: astral-sh/setup-uv@v6
3434
- name: Install requirements
3535
run: |
36-
uv pip install --system -r requirements.txt coremltools openvino-dev tensorflow --extra-index-url https://download.pytorch.org/whl/cpu --index-strategy unsafe-best-match
36+
uv pip install --system -r requirements.txt coremltools openvino-dev "tensorflow<=2.19.0" --extra-index-url https://download.pytorch.org/whl/cpu --index-strategy unsafe-best-match
3737
yolo checks
3838
uv pip list
3939
- name: Benchmark DetectionModel

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export = [
9898
"onnx>=1.12.0", # ONNX export
9999
"coremltools>=7.0; platform_system != 'Windows'", # CoreML only supported on macOS and Linux
100100
"openvino-dev>=2023.0", # OpenVINO export
101-
"tensorflow>=2.0.0", # TF bug https://github.com/ultralytics/ultralytics/issues/5161
101+
"tensorflow>=2.0.0,<=2.19.0", # TF bug https://github.com/ultralytics/ultralytics/issues/5161
102102
"tensorflowjs>=3.9.0", # TF.js export, automatically installs tensorflow
103103
]
104104
# tensorflow>=2.4.1,<=2.13.1 # TF exports (-cpu, -aarch64, -macos)

0 commit comments

Comments
 (0)