Skip to content

Commit 6d8c637

Browse files
authored
Merge branch 'dev_1.21.0' into main
2 parents e98fa82 + 4f21e6b commit 6d8c637

File tree

208 files changed

+3066
-14346
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

208 files changed

+3066
-14346
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ If applicable, add screenshots to help explain your problem.
2424
- OS
2525
- Python version
2626
- ART version or commit number
27-
- TensorFlow / Keras / PyTorch / MXNet version
27+
- TensorFlow / Keras / PyTorch version

.github/actions/deepspeech-v3/Dockerfile

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

44
# Set to install things in non-interactive mode
55
ENV DEBIAN_FRONTEND noninteractive
@@ -11,7 +11,6 @@ RUN apt-get update \
1111
libx11-xcb1 \
1212
git \
1313
gcc \
14-
mono-mcs \
1514
libavcodec-extra \
1615
ffmpeg \
1716
curl \
@@ -25,10 +24,12 @@ RUN apt-get update \
2524
&& rm -r /var/lib/apt/lists/*
2625

2726
# Install necessary libraries for deepspeech v3
28-
RUN pip install --ignore-installed PyYAML torch==2.1.1 tensorflow==2.14.1 torchaudio==2.1.1 pytorch-lightning==2.1.2 scikit-learn==1.3.2
27+
RUN pip install --ignore-installed torch==2.1.2 torchaudio==2.1.2 --index-url https://download.pytorch.org/whl/cpu
28+
RUN pip install --ignore-installed --no-deps pytorch-lightning==2.1.2
29+
RUN pip install --ignore-installed PyYAML tensorflow==2.14.1 scikit-learn==1.3.2
2930
RUN pip install --no-build-isolation fairscale==0.4.13
3031

31-
RUN git clone https://github.com/SeanNaren/deepspeech.pytorch.git && cd deepspeech.pytorch && sed -i '/^sklearn/d' requirements.txt && pip install -r requirements.txt && pip install -e .
32+
RUN git clone https://github.com/SeanNaren/deepspeech.pytorch.git && cd deepspeech.pytorch && sed -i '/^sklearn/d;/^torch/d;/^torchaudio/d' requirements.txt && pip install -r requirements.txt && pip install -e .
3233

3334
RUN pip install numba==0.56.4 pytest-cov==4.1.0 pydub==0.25.1
3435

.github/actions/espresso/Dockerfile

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# Get base image
2-
FROM python:3.7.17-slim-bookworm
3-
4-
# Set to install things in non-interactive mode
5-
ENV DEBIAN_FRONTEND noninteractive
2+
FROM python:3.10.17-slim-bookworm
63

74
# Install system wide software
85
RUN apt-get update \
96
&& apt-get install -y \
107
build-essential \
8+
gfortran \
9+
libblas-dev \
10+
liblapack-dev \
11+
libatlas-base-dev \
1112
libgl1-mesa-glx \
1213
libx11-xcb1 \
1314
git \
1415
gcc \
15-
mono-mcs \
1616
libavcodec-extra \
1717
ffmpeg \
1818
curl \
@@ -24,7 +24,10 @@ RUN apt-get update \
2424
&& rm -r /var/lib/apt/lists/*
2525

2626
# Install necessary libraries for espresso
27-
RUN pip install torch==1.6.0 torchaudio==0.6.0 pytest-cov~=4.1.0 scipy==1.2 scikit-learn==0.24 protobuf==3.20 kaldiio==2.18.0 tensorflow==2.9
27+
RUN pip install --upgrade pip setuptools wheel
28+
RUN pip install --ignore-installed torch==1.11.0 torchaudio==0.11.0 --index-url https://download.pytorch.org/whl/cpu
29+
RUN pip install numpy==1.21.6 scipy==1.9.3
30+
RUN pip install pytest-cov~=4.1.0 scikit-learn==1.6.1 protobuf==3.20 kaldiio==2.18.0 tensorflow==2.9
2831
RUN pip install --no-build-isolation fairscale==0.3.6
2932

3033
RUN git clone https://github.com/beat-buesser/espresso

.github/actions/goturn/Dockerfile

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

44
ENV MONO_TLS_PROVIDER=legacy
55

@@ -11,7 +11,6 @@ RUN apt-get update \
1111
libx11-xcb1 \
1212
git \
1313
gcc \
14-
mono-mcs \
1514
libavcodec-extra \
1615
ffmpeg \
1716
curl \
@@ -26,12 +25,14 @@ RUN apt-get update \
2625
&& rm -r /var/lib/apt/lists/*
2726

2827
# Install necessary libraries for goturn
29-
RUN pip install torch==1.9.1 torchvision==0.10.1 tensorflow==2.9 scikit-learn==0.24 pytest~=6.2.5 pytest-cov~=4.1.0
28+
RUN pip install --ignore-installed torch==1.11.0 torchaudio==0.11.0 torchvision==0.12.0 --index-url https://download.pytorch.org/whl/cpu
29+
RUN pip install --ignore-installed --no-deps pytorch_lightning==0.7.1 torch_lr_finder==0.2.1 torchsummary==1.5.1
30+
RUN pip install tensorflow==2.9 scikit-learn==1.6.1 pytest~=6.2.5 pytest-cov~=4.1.0 matplotlib==3.9.4
3031

3132
RUN git clone https://github.com/nrupatunga/goturn-pytorch.git /tmp/goturn-pytorch
3233
#RUN cd /tmp/goturn-pytorch && pip install -r requirements.txt
33-
RUN pip install loguru==0.5.3 torchsummary==1.5.1 tqdm==4.62.3 pytorch_lightning==0.7.1 imutils==0.5.3 torch_lr_finder==0.2.1 numpy==1.21.6 Pillow==8.0.1 visdom==0.1.8.9 gdown==5.1.0
34-
RUN pip3 install opencv_python==4.9.0.80 --no-build-isolation
34+
RUN pip install loguru==0.5.3 tqdm==4.62.3 imutils==0.5.3 numpy==1.23.5 Pillow==8.0.1 visdom==0.1.8.9 gdown==5.1.0
35+
RUN pip install opencv_python==4.9.0.80 --no-build-isolation
3536

3637
ENV PYTHONPATH "${PYTHONPATH}:/tmp/goturn-pytorch/src"
3738
ENV PYTHONPATH "${PYTHONPATH}:/tmp/goturn-pytorch/src/scripts"

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

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/actions/tf-faster-rcnn/action.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

.github/actions/tf-faster-rcnn/run.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
1-
# Get base from a tensorflow image
2-
FROM tensorflow/tensorflow:2.13.0
3-
4-
ENV MONO_TLS_PROVIDER=legacy
5-
6-
# Set to install things in non-interactive mode
7-
ENV DEBIAN_FRONTEND noninteractive
1+
# Get base image
2+
FROM python:3.8.20-slim-bookworm
83

94
# Install system wide softwares
105
RUN apt-get update \
@@ -13,24 +8,28 @@ RUN apt-get update \
138
libx11-xcb1 \
149
git \
1510
gcc \
16-
mono-mcs \
1711
libavcodec-extra \
1812
ffmpeg \
1913
curl \
2014
libsndfile-dev \
2115
libsndfile1 \
2216
wget \
2317
unzip \
18+
software-properties-common \
19+
gnupg2 \
20+
lsb-release \
2421
&& apt-get clean all \
2522
&& rm -r /var/lib/apt/lists/*
2623

24+
RUN pip install --upgrade pip setuptools wheel
25+
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 numba==0.50 pytest-cov numpy==1.23.5
35+
RUN pip install numpy matplotlib 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

.github/actions/yolo/Dockerfile

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

44
# Install system wide software
55
RUN apt-get update \
@@ -8,7 +8,6 @@ RUN apt-get update \
88
libx11-xcb1 \
99
git \
1010
gcc \
11-
mono-mcs \
1211
cmake \
1312
libavcodec-extra \
1413
ffmpeg \
@@ -20,8 +19,11 @@ RUN apt-get update \
2019
&& apt-get clean all \
2120
&& rm -r /var/lib/apt/lists/*
2221

23-
RUN pip install pytorchyolo==1.8.0 tensorflow==2.14.1 scikit-learn==1.4.2 pytest-cov~=4.1.0 torch==1.12.1
22+
RUN pip install --ignore-installed torch==1.12.1 --index-url https://download.pytorch.org/whl/cpu
23+
RUN pip install pytorchyolo==1.8.0 tensorflow==2.14.1 scikit-learn==1.4.2 pytest-cov~=4.1.0
2424

2525
RUN cd /tmp/ && git clone https://github.com/eriklindernoren/PyTorch-YOLOv3.git && cd ./PyTorch-YOLOv3/weights && ./download_weights.sh
2626

27+
RUN mkdir /tmp/yolo_v8.3.0 && cd /tmp/yolo_v8.3.0 && wget https://github.com/ultralytics/assets/releases/download/v8.3.0/yolov8n.pt && wget https://github.com/ultralytics/assets/releases/download/v8.3.0/yolov10n.pt
28+
2729
CMD ["/bin/bash"]

.github/workflows/ci-huggingface.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ jobs:
5151
sudo apt-get update
5252
sudo apt-get -y -q install ffmpeg libavcodec-extra
5353
python -m pip install --upgrade pip setuptools wheel
54-
pip3 install -r requirements_test.txt
55-
pip install tensorflow==2.14.0
56-
pip install keras==2.14.0
54+
pip install -q -r <(sed '/^tensorflow/d;/^keras/d;/^torch/d;/^torchvision/d;/^torchaudio/d;/^transformers/d' requirements_test.txt)
55+
pip install tensorflow==2.18.1
56+
pip install keras==3.10.0
5757
pip install torch==${{ matrix.torch }} --index-url https://download.pytorch.org/whl/cpu
5858
pip install torchvision==${{ matrix.torchvision }} --index-url https://download.pytorch.org/whl/cpu
5959
pip install torchaudio==${{ matrix.torchaudio }} --index-url https://download.pytorch.org/whl/cpu

0 commit comments

Comments
 (0)