-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This release includes v1.0 components from TRI internal DGP: - Protos - DatasetClass (Synchronized, Frame) - CLI with visualizer
- Loading branch information
1 parent
ff7da7a
commit 6ff13df
Showing
93 changed files
with
9,785 additions
and
4,326 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,38 @@ | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# Distribution / packaging | ||
.Python | ||
env/ | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
|
||
# macOS files | ||
.DS_Store | ||
|
||
# dotenv | ||
.env | ||
|
||
# virtualenv | ||
.venv | ||
venv/ | ||
ENV/ | ||
|
||
# IDE | ||
.idea/ | ||
\.vscode/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Build and publish a Docker image | ||
|
||
on: | ||
push: | ||
branches: ['master', 'release'] | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: ${{ github.repository }} | ||
|
||
jobs: | ||
build-and-push-image: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Log in to the Container registry | ||
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 | ||
with: | ||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | ||
|
||
- name: Build and push Docker image | ||
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc | ||
with: | ||
context: . | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,22 @@ | ||
FROM pytorch/pytorch:1.4-cuda10.1-cudnn7-devel | ||
FROM nvidia/cuda:11.1-devel-ubuntu18.04 | ||
|
||
ARG python=3.6 | ||
ENV PYTORCH_VERSION=1.8.1+cu111 | ||
ENV TORCHVISION_VERSION=0.9.1+cu111 | ||
|
||
ENV LC_ALL=C.UTF-8 | ||
ENV LANG=C.UTF-8 | ||
|
||
ENV PYTHON_VERSION=${python} | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
# Set default shell to /bin/bash | ||
SHELL ["/bin/bash", "-cu"] | ||
|
||
RUN apt-get update && apt-get install -y --allow-downgrades --allow-change-held-packages --no-install-recommends \ | ||
build-essential \ | ||
ca-certificates \ | ||
curl \ | ||
libgl1-mesa-glx \ | ||
libgtk2.0-dev \ | ||
libjpeg-dev \ | ||
|
@@ -22,13 +28,18 @@ RUN curl -O https://bootstrap.pypa.io/get-pip.py && \ | |
python get-pip.py && \ | ||
rm get-pip.py | ||
|
||
# Repo specific dependencies | ||
# Setup requirements in workspace | ||
# Install Pytorch | ||
RUN pip install --no-cache-dir \ | ||
torch==${PYTORCH_VERSION} \ | ||
torchvision==${TORCHVISION_VERSION} \ | ||
-f https://download.pytorch.org/whl/${PYTORCH_VERSION/*+/}/torch_stable.html | ||
|
||
# Install python dependencies | ||
ARG WORKSPACE=/home/dgp | ||
WORKDIR ${WORKSPACE} | ||
COPY dev_requirements.txt /tmp/ | ||
RUN pip install cython==0.29.10 numpy==1.16.3 | ||
RUN pip install -r /tmp/dev_requirements.txt --ignore-installed | ||
COPY requirements.txt /tmp/ | ||
RUN pip install --no-cache-dir cython==0.29.10 numpy==1.19.4 | ||
RUN pip install --no-cache-dir -r /tmp/requirements.txt | ||
|
||
# Settings for S3 | ||
RUN aws configure set default.s3.max_concurrent_requests 100 && \ | ||
|
@@ -37,9 +48,3 @@ RUN aws configure set default.s3.max_concurrent_requests 100 && \ | |
# Copy workspace and setup PYTHONPATH | ||
COPY . ${WORKSPACE} | ||
ENV PYTHONPATH="${WORKSPACE}:$PYTHONPATH" | ||
|
||
# Set up streamlit configs | ||
ARG STREAMLIT_CONFIG_DIR=/root/.streamlit | ||
RUN mkdir -p ${STREAMLIT_CONFIG_DIR} && \ | ||
touch ${STREAMLIT_CONFIG_DIR}/credentials.toml && \ | ||
printf '[general]\nemail = "[email protected]"' > ${STREAMLIT_CONFIG_DIR}/credentials.toml |
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.