Skip to content

Commit 089c929

Browse files
authored
Merge branch 'main' into dev_1.17.0
2 parents 25f7ac0 + ea1fa92 commit 089c929

38 files changed

+130
-217
lines changed

.github/actions/deepspeech-v2/Dockerfile

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

.github/actions/deepspeech-v2/action.yml

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

.github/actions/deepspeech-v2/run.sh

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Get base from a pytorch image
2-
FROM pytorch/pytorch:1.6.0-cuda10.1-cudnn7-runtime
1+
pod# Get base from a pytorch image
2+
FROM pytorch/pytorch:2.1.1-cuda12.1-cudnn8-runtime
33

44
# Set to install things in non-interactive mode
55
ENV DEBIAN_FRONTEND noninteractive
@@ -17,26 +17,19 @@ RUN apt-get update \
1717
curl \
1818
libsndfile-dev \
1919
libsndfile1 \
20+
vim \
21+
curl \
2022
&& apt-get clean all \
2123
&& rm -r /var/lib/apt/lists/*
2224

23-
RUN /opt/conda/bin/conda install --yes \
24-
astropy \
25-
matplotlib \
26-
pandas \
27-
scikit-learn \
28-
scikit-image
29-
3025
# Install necessary libraries for deepspeech v3
31-
RUN pip install torch
32-
RUN pip install tensorflow
33-
RUN pip install torchaudio==0.6.0
34-
RUN pip install --no-build-isolation fairscale
26+
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 --no-build-isolation fairscale==0.4.13
3528

3629
RUN git clone https://github.com/SeanNaren/deepspeech.pytorch.git
37-
RUN cd deepspeech.pytorch && pip install -r requirements.txt
38-
RUN cd deepspeech.pytorch && pip install -e .
30+
RUN cd deepspeech.pytorch && sed -i '/^sklearn/d' requirements.txt && pip install -r requirements.txt && pip install -e .
31+
32+
RUN pip install numba==0.56.4 pytest-cov==4.1.0 pydub==0.25.1
33+
RUN pip list
3934

40-
RUN pip install numba==0.50.0
41-
RUN pip install pytest-cov
42-
RUN pip install pydub==0.25.1
35+
RUN mkdir -p /root/.art/data && cd /root/.art/data && curl -LJO "https://github.com/SeanNaren/deepspeech.pytorch/releases/download/V3.0/librispeech_pretrained_v3.ckpt"

.github/workflows/ci-deepspeech-v2.yml

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

.github/workflows/ci-deepspeech-v3.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ on:
2323

2424
jobs:
2525
test_deepspeech_v3_torch_1_10:
26-
name: PyTorchDeepSpeech v3 / PyTorch 1.10
26+
name: PyTorchDeepSpeech v3 / PyTorch 2.1.1
2727
runs-on: ubuntu-latest
28-
container: adversarialrobustnesstoolbox/art_testing_envs:deepspeech_v3_torch_1_10
28+
container: adversarialrobustnesstoolbox/art_testing_envs:deepspeech_v3_torch_2_1_1
2929
steps:
3030
- name: Checkout Repo
3131
uses: actions/checkout@v3

.github/workflows/ci-huggingface.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- name: Checkout Repo
4242
uses: actions/checkout@v3
4343
- name: Setup Python
44-
uses: actions/setup-python@v4
44+
uses: actions/setup-python@v5
4545
with:
4646
python-version: ${{ matrix.python }}
4747
- name: Install Dependencies

.github/workflows/ci-keras.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
- name: Checkout Repo
5353
uses: actions/checkout@v3
5454
- name: Setup Python
55-
uses: actions/setup-python@v4
55+
uses: actions/setup-python@v5
5656
with:
5757
python-version: ${{ matrix.python }}
5858
- name: Install Dependencies

.github/workflows/ci-legacy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- name: Checkout Repo
4545
uses: actions/checkout@v3
4646
- name: Setup Python
47-
uses: actions/setup-python@v4
47+
uses: actions/setup-python@v5
4848
with:
4949
python-version: ${{ matrix.python }}
5050
- name: Install Dependencies

.github/workflows/ci-lingvo.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- name: Checkout Repo
4242
uses: actions/checkout@v3
4343
- name: Setup Python
44-
uses: actions/setup-python@v4
44+
uses: actions/setup-python@v5
4545
with:
4646
python-version: ${{ matrix.python }}
4747
- name: Pre-install Lingvo ASR
@@ -50,7 +50,7 @@ jobs:
5050
sudo apt-get update
5151
sudo apt-get -y -q install ffmpeg libavcodec-extra
5252
python -m pip install --upgrade pip setuptools wheel
53-
pip install -q -r <(sed '/^scipy/d;/^matplotlib/d;/^pandas/d;/^statsmodels/d;/^numba/d;/^jax/d;/^h5py/d;/^Pillow/d;/^pytest/d;/^pytest-mock/d;/^torch/d;/^torchaudio/d;/^torchvision/d;/^xgboost/d;/^requests/d;/^tensorflow/d;/^keras/d;/^kornia/d;/^librosa/d;/^tqdm/d;/^timm/d' requirements_test.txt)
53+
pip install -q -r <(sed '/^scipy/d;/^matplotlib/d;/^pandas/d;/^statsmodels/d;/^numba/d;/^jax/d;/^h5py/d;/^Pillow/d;/^pytest/d;/^pytest-mock/d;/^torch/d;/^torchaudio/d;/^torchvision/d;/^xgboost/d;/^requests/d;/^tensorflow/d;/^keras/d;/^kornia/d;/^librosa/d;/^tqdm/d;/^timm/d;/^catboost/d' requirements_test.txt)
5454
pip install scipy==1.5.4
5555
pip install matplotlib==3.3.4
5656
pip install pandas==1.1.5
@@ -74,6 +74,7 @@ jobs:
7474
pip install kornia==0.6.8
7575
pip install librosa==0.9.2
7676
pip install tqdm==4.64.1
77+
pip install catboost==1.1.1
7778
pip list
7879
- name: Run ${{ matrix.name }} Tests
7980
run: pytest --cov-report=xml --cov=art --cov-append -q -vv tests/estimators/speech_recognition/test_tensorflow_lingvo.py --framework=${{ matrix.framework }} --durations=0

0 commit comments

Comments
 (0)