From b8c8f3473a23bd3a135d3ebb59c0fb0209f1d252 Mon Sep 17 00:00:00 2001 From: Rodrigo Berriel Date: Thu, 23 Mar 2023 16:26:36 -0300 Subject: [PATCH] Downgrade NumPy used by HRNet (#5574) HRNet uses `np.int` which throws an error for NumPy >= 1.24, because its deprecation was finally expired. This PR creates an additional step during HRNet function image build, downgrading NumPy for a version < 1.24. ### Motivation and context Closes #5571. --- CHANGELOG.md | 1 + serverless/pytorch/saic-vul/hrnet/nuclio/function-gpu.yaml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b84cc625c87..475384fe8ed9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 () - Width and height in CVAT dataset format mask annotations () - Empty list of export formats for a project without tasks () +- Downgrade NumPy used by HRNet because `np.int` is no longer available () ### Security - TDB diff --git a/serverless/pytorch/saic-vul/hrnet/nuclio/function-gpu.yaml b/serverless/pytorch/saic-vul/hrnet/nuclio/function-gpu.yaml index 939b472ffd94..eaddea7a655e 100644 --- a/serverless/pytorch/saic-vul/hrnet/nuclio/function-gpu.yaml +++ b/serverless/pytorch/saic-vul/hrnet/nuclio/function-gpu.yaml @@ -54,7 +54,7 @@ spec: - kind: RUN value: pip3 install setuptools - kind: RUN - value: pip3 install -r requirements.txt + value: pip3 install -r requirements.txt "numpy<1.24" # the NumPy version is not pinned and HRNet uses np.int which throws an error for NumPy >= 1.24 (PR#5574) - kind: RUN value: apt update && apt install -y libgl1-mesa-glx - kind: RUN