Skip to content

Commit 30a46d5

Browse files
committed
Fix dependencies
Signed-off-by: Beat Buesser <[email protected]>
1 parent a52ce9d commit 30a46d5

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.github/actions/tfv2-faster-rcnn/Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Get base image
2-
FROM python:3.10.17-slim-bookworm
2+
FROM python:3.8.20-slim-bookworm
33

44
# Install system wide softwares
55
RUN apt-get update \
@@ -22,15 +22,14 @@ RUN apt-get update \
2222
&& rm -r /var/lib/apt/lists/*
2323

2424
RUN pip install --upgrade pip setuptools wheel
25-
RUN pip install tensorflow==2.19.0
2625

2726
# Install necessary libraries for tensorflow faster rcnn
2827
RUN mkdir TensorFlow
2928
RUN cd TensorFlow && git clone https://github.com/tensorflow/models
3029
RUN cd TensorFlow && wget https://github.com/protocolbuffers/protobuf/releases/download/v3.17.3/protoc-3.17.3-linux-x86_64.zip
3130
RUN cd TensorFlow && unzip protoc-3.17.3-linux-x86_64.zip -d protobuf
3231
RUN cd TensorFlow/models/research && /TensorFlow/protobuf/bin/protoc object_detection/protos/*.proto --python_out=.
33-
RUN cd TensorFlow/models/research && cp object_detection/packages/tf2/setup.py .
32+
RUN cd TensorFlow/models/research && cp object_detection/packages/tf2/setup.py . && sed -i "/^'tensorflow_io',$/d; /^'keras',$/d" setup.py
3433
RUN cd TensorFlow/models/research && python -m pip install .
3534

36-
RUN pip install tqdm requests llvmlite numba==0.56.4 pytest-cov
35+
RUN pip install tqdm requests llvmlite numba==0.56.4 pytest-cov "pytest<8.0.0" "exceptiongroup<1.1.0" tensorflow==2.6.0 keras==2.6.0

art/evaluations/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
from art.evaluations.great_score.great_score import GreatScorePyTorch
2-
from art.evaluations.security_curve.security_curve import SecurityCurve
1+

0 commit comments

Comments
 (0)