Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Commit

Permalink
Downgrade NumPy used by HRNet (cvat-ai#5574)
Browse files Browse the repository at this point in the history
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 cvat-ai#5571.
  • Loading branch information
rodrigoberriel authored and mikhail-treskin committed Jul 1, 2023
1 parent b4350b8 commit b8c8f34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
(<https://github.com/opencv/cvat/pull/5873>)
- Width and height in CVAT dataset format mask annotations (<https://github.com/opencv/cvat/pull/5905>)
- Empty list of export formats for a project without tasks (<https://github.com/opencv/cvat/pull/5899>)
- Downgrade NumPy used by HRNet because `np.int` is no longer available (<https://github.com/opencv/cvat/pull/5574>)

### Security
- TDB
Expand Down
2 changes: 1 addition & 1 deletion serverless/pytorch/saic-vul/hrnet/nuclio/function-gpu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b8c8f34

Please sign in to comment.