-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1044 from Trusted-AI/dev_1.6.1
Update to ART 1.6.1
- Loading branch information
Showing
191 changed files
with
4,681 additions
and
1,819 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Get base from a pytorch image | ||
FROM pytorch/pytorch:1.5.1-cuda10.1-cudnn7-runtime | ||
|
||
# Set to install things in non-interactive mode | ||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
# Install system wide softwares | ||
RUN apt-get update \ | ||
&& apt-get install -y \ | ||
libgl1-mesa-glx \ | ||
libx11-xcb1 \ | ||
git \ | ||
gcc \ | ||
mono-mcs \ | ||
cmake \ | ||
libavcodec-extra \ | ||
ffmpeg \ | ||
curl \ | ||
&& apt-get clean all \ | ||
&& rm -r /var/lib/apt/lists/* | ||
|
||
RUN /opt/conda/bin/conda install --yes \ | ||
astropy \ | ||
matplotlib \ | ||
pandas \ | ||
scikit-learn \ | ||
scikit-image | ||
|
||
# Install necessary libraries for deepspeech v2 | ||
RUN pip install torch | ||
RUN pip install tensorflow | ||
RUN pip install torchaudio==0.5.1 | ||
|
||
RUN git clone https://github.com/SeanNaren/warp-ctc.git | ||
RUN cd warp-ctc && mkdir build && cd build && cmake .. && make | ||
RUN cd warp-ctc/pytorch_binding && python setup.py install | ||
|
||
RUN git clone https://github.com/SeanNaren/deepspeech.pytorch.git | ||
RUN cd deepspeech.pytorch && git checkout V2.1 | ||
RUN cd deepspeech.pytorch && pip install -r requirements.txt | ||
RUN cd deepspeech.pytorch && pip install -e . | ||
|
||
RUN pip install numba==0.50.0 | ||
RUN pip install pytest-cov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
name: 'Test DeepSpeech v2' | ||
description: 'Run tests for DeepSpeech v2' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- run: $GITHUB_ACTION_PATH/run.sh | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/sh -l | ||
|
||
exit_code=0 | ||
|
||
pytest --cov-report=xml --cov=art --cov-append -q -vv tests/estimators/speech_recognition/test_pytorch_deep_speech.py --framework=pytorch --skip_travis=True --durations=0 | ||
if [[ $? -ne 0 ]]; then exit_code=1; echo "Failed estimators/speech_recognition/test_pytorch_deep_speech tests"; fi | ||
pytest --cov-report=xml --cov=art --cov-append -q -vv tests/attacks/evasion/test_imperceptible_asr_pytorch.py --framework=pytorch --skip_travis=True --durations=0 | ||
if [[ $? -ne 0 ]]; then exit_code=1; echo "Failed attacks/evasion/test_imperceptible_asr_pytorch tests"; fi | ||
|
||
exit ${exit_code} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: CI PyTorchDeepSpeech v2 | ||
on: | ||
# Run on manual trigger | ||
workflow_dispatch: | ||
|
||
# Run on pull requests | ||
pull_request: | ||
paths-ignore: | ||
- '*.md' | ||
|
||
# Run when pushing to main or dev branches | ||
push: | ||
branches: | ||
- main | ||
- dev* | ||
|
||
# Run scheduled CI flow daily | ||
schedule: | ||
- cron: '0 8 * * 0' | ||
|
||
jobs: | ||
test_deepspeech_v2: | ||
name: PyTorchDeepSpeech v2 | ||
runs-on: ubuntu-latest | ||
container: minhitbk/art_testing_envs:deepspeech_v2 | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v2 | ||
- name: Run Test Action | ||
uses: ./.github/actions/deepspeech-v2 | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Continuous Integration | ||
name: CI Lingvo | ||
on: | ||
# Run on manual trigger | ||
workflow_dispatch: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: CI PyTorchFasterRCNN | ||
on: | ||
# Run on manual trigger | ||
workflow_dispatch: | ||
|
||
# Run on pull requests | ||
pull_request: | ||
paths-ignore: | ||
- '*.md' | ||
|
||
# Run when pushing to main or dev branches | ||
push: | ||
branches: | ||
- main | ||
- dev* | ||
|
||
# Run scheduled CI flow daily | ||
schedule: | ||
- cron: '0 8 * * 0' | ||
|
||
jobs: | ||
test_pytorch_fasterrcnn: | ||
name: PyTorchFasterRCNN | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v2 | ||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.7 | ||
- name: Install Dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get -y -q install ffmpeg libavcodec-extra | ||
python -m pip install --upgrade pip setuptools wheel | ||
pip3 install -q -r requirements.txt | ||
pip list | ||
- name: Pre-install torch | ||
run: | | ||
pip install torch==1.6.0+cpu -f https://download.pytorch.org/whl/torch_stable.html | ||
pip install torchvision==0.7.0+cpu -f https://download.pytorch.org/whl/torch_stable.html | ||
pip install torchaudio==0.6.0 -f https://download.pytorch.org/whl/torch_stable.html | ||
- name: Run Test Action | ||
run: pytest --cov-report=xml --cov=art --cov-append -q -vv tests/estimators/object_detection/test_pytorch_faster_rcnn.py --framework=pytorch --skip_travis=True --durations=0 | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.