Skip to content

Commit

Permalink
Merge pull request #15 from tensorpix/feature/optimizeImage
Browse files Browse the repository at this point in the history
Set ubuntu22.04 as base image; Bump torch and lighting
  • Loading branch information
jere357 committed Feb 14, 2024
2 parents 2ed3671 + 0105491 commit ec4aac3
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 23 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,17 @@ jobs:
name: Run pre-commit hooks
runs-on: ubuntu-latest

permissions:
contents: read
packages: read
statuses: write

steps:
- name: Checkout Code
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: pre-commit-ci/lite-action@v1.0.1
if: always()
- name: Set up Python
uses: actions/setup-python@v3
with:
msg: apply pre-commit hooks
python-version: "3.10"

- name: Install pre-commit
run: pip install -r requirements-dev.txt

- name: Run pre-commit checks
run: pre-commit run --all-files
6 changes: 2 additions & 4 deletions dockerfiles/cuda118/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
FROM nvidia/cuda:11.8.0-runtime-ubuntu22.04
FROM ubuntu:22.04

RUN apt update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
python3 \
python3-pip \
curl && \
apt clean && \
rm -rf /var/lib/apt/lists/*

RUN curl https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py && \
python3 /tmp/get-pip.py

COPY requirements.txt /tmp/requirements.txt
RUN pip3 install --no-cache-dir -r /tmp/requirements.txt --extra-index-url https://download.pytorch.org/whl/cu118

Expand Down
6 changes: 2 additions & 4 deletions dockerfiles/cuda120/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
FROM nvidia/cuda:12.0.1-cudnn8-runtime-ubuntu22.04
FROM ubuntu:22.04

RUN apt update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
python3 \
python3-pip \
curl && \
apt clean && \
rm -rf /var/lib/apt/lists/*

RUN curl https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py && \
python3 /tmp/get-pip.py

COPY requirements.txt /tmp/requirements.txt
RUN pip3 install --no-cache-dir -r /tmp/requirements.txt

Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pre-commit~=3.5.0
pre-commit==3.*
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
lightning==2.1.2
lightning==2.1.4
protobuf==3.20.*
segmentation-models-pytorch==0.3.3
six==1.16.0
torch==2.1.1
torchvision==0.16.1
torch==2.1.2
torchvision==0.16.2

0 comments on commit ec4aac3

Please sign in to comment.