From 8a098be3058e7f541f55e27d04617e806925011c Mon Sep 17 00:00:00 2001 From: xiao-shaoning Date: Tue, 12 Aug 2025 16:21:38 +0800 Subject: [PATCH] fix CVE issues. --- ci/docker/ARM/Dockerfile | 16 ++++++++-------- ci/docker/X86/Dockerfile | 16 ++++++++-------- model_examples/BEVDepth/bevdepth.patch | 3 +-- model_examples/HPTR/HPTR.patch | 2 +- model_examples/MultiPath++/MultiPath++.patch | 5 ++--- 5 files changed, 20 insertions(+), 22 deletions(-) diff --git a/ci/docker/ARM/Dockerfile b/ci/docker/ARM/Dockerfile index 1ef48915..2d95dfb0 100644 --- a/ci/docker/ARM/Dockerfile +++ b/ci/docker/ARM/Dockerfile @@ -15,23 +15,23 @@ RUN mkdir /root/.pip \ && echo "timeout=120" >> /root/.pip/pip.conf RUN pip3.7 install pyyaml \ - && pip3.7 install numpy==1.21.3 \ - && pip3.7 install protobuf==3.19.6 \ + && pip3.7 install numpy==1.23 \ + && pip3.7 install protobuf==4.25.8 \ && pip3.7 install decorator sympy scipy attrs cloudpickle psutil synr==0.5.0 tornado RUN pip3.8 install pyyaml \ - && pip3.8 install numpy==1.21.3 \ - && pip3.8 install protobuf==3.19.6 \ + && pip3.8 install numpy==1.23 \ + && pip3.8 install protobuf==4.25.8 \ && pip3.8 install decorator sympy scipy attrs cloudpickle psutil synr==0.5.0 tornado RUN pip3.9 install pyyaml \ - && pip3.9 install numpy==1.21.3 \ - && pip3.9 install protobuf==3.19.6 \ + && pip3.9 install numpy==1.23 \ + && pip3.9 install protobuf==4.25.8 \ && pip3.9 install decorator sympy scipy attrs cloudpickle psutil synr==0.5.0 tornado RUN pip3.10 install pyyaml \ - && pip3.10 install numpy==1.21.3 \ - && pip3.10 install protobuf==3.19.6 \ + && pip3.10 install numpy==1.23 \ + && pip3.10 install protobuf==4.25.8 \ && pip3.10 install decorator sympy scipy attrs cloudpickle psutil synr==0.5.0 tornado RUN yum install -y java-1.8.0-openjdk wget blas blas-devel lapack lapack-devel ninja-build python2 diff --git a/ci/docker/X86/Dockerfile b/ci/docker/X86/Dockerfile index e854c214..4b2fcbb3 100644 --- a/ci/docker/X86/Dockerfile +++ b/ci/docker/X86/Dockerfile @@ -19,23 +19,23 @@ RUN mkdir /root/.pip \ && echo "timeout=120" >> /root/.pip/pip.conf RUN pip3.7 install pyyaml \ - && pip3.7 install numpy==1.21.3 \ - && pip3.7 install protobuf==3.19.6 \ + && pip3.7 install numpy==1.23 \ + && pip3.7 install protobuf==4.25.8 \ && pip3.7 install decorator sympy scipy attrs cloudpickle psutil synr==0.5.0 tornado RUN pip3.8 install pyyaml \ - && pip3.8 install numpy==1.21.3 \ - && pip3.8 install protobuf==3.19.6 \ + && pip3.8 install numpy==1.23 \ + && pip3.8 install protobuf==4.25.8 \ && pip3.8 install decorator sympy scipy attrs cloudpickle psutil synr==0.5.0 tornado RUN pip3.9 install pyyaml \ - && pip3.9 install numpy==1.21.3 \ - && pip3.9 install protobuf==3.19.6 \ + && pip3.9 install numpy==1.23 \ + && pip3.9 install protobuf==4.25.8 \ && pip3.9 install decorator sympy scipy attrs cloudpickle psutil synr==0.5.0 tornado RUN pip3.10 install pyyaml \ - && pip3.10 install numpy==1.21.3 \ - && pip3.10 install protobuf==3.19.6 \ + && pip3.10 install numpy==1.23 \ + && pip3.10 install protobuf==4.25.8 \ && pip3.10 install decorator sympy scipy attrs cloudpickle psutil synr==0.5.0 tornado RUN yum install -y java-1.8.0-openjdk wget blas blas-devel lapack lapack-devel diff --git a/model_examples/BEVDepth/bevdepth.patch b/model_examples/BEVDepth/bevdepth.patch index aae1eb52..27fddbca 100644 --- a/model_examples/BEVDepth/bevdepth.patch +++ b/model_examples/BEVDepth/bevdepth.patch @@ -545,7 +545,7 @@ diff --git a/requirements.txt b/requirements.txt index 26546cd..92222b1 100644 --- a/requirements.txt +++ b/requirements.txt -@@ -1,12 +1,14 @@ +@@ -1,12 +1,13 @@ -numba -numpy +numba==0.58.1 @@ -564,7 +564,6 @@ index 26546cd..92222b1 100644 +torchvision==0.12.0 +mmdet==2.28.0 +mmsegmentation==0.30.0 -+protobuf==3.20.1 diff --git a/scripts/gen_depth_gt.py b/scripts/gen_depth_gt.py new file mode 100644 index 0000000..2fe66da diff --git a/model_examples/HPTR/HPTR.patch b/model_examples/HPTR/HPTR.patch index 3289932e..fab390fd 100644 --- a/model_examples/HPTR/HPTR.patch +++ b/model_examples/HPTR/HPTR.patch @@ -178,7 +178,7 @@ index 0000000..07a5449 +matplotlib==3.5.3 +absl-py==1.4.0 +google-auth==2.15.0 -+pillow==9.2.0 ++pillow==10.0.0 +hydra-core==1.1.1 +pytorch-lightning==1.5.10 +torch==2.1.0 diff --git a/model_examples/MultiPath++/MultiPath++.patch b/model_examples/MultiPath++/MultiPath++.patch index 66c360d6..7af38267 100644 --- a/model_examples/MultiPath++/MultiPath++.patch +++ b/model_examples/MultiPath++/MultiPath++.patch @@ -499,13 +499,12 @@ new file mode 100644 index 0000000..3c7427a --- /dev/null +++ b/requirements.txt -@@ -0,0 +1,17 @@ +@@ -0,0 +1,16 @@ +numpy==1.23.2 +tensorflow-cpu-aws==2.11.0 +torch==2.1.0 +torchvision==0.16.0 -+torch_npu==2.1.0.post8 -+protobuf==3.19.6 ++protobuf==4.25.0 +tqdm +decorator +sympy -- Gitee