Skip to content

Commit d81a1f8

Browse files
authored
Merge pull request #331 from Visual-Behavior/torch_v2
Torch v2
2 parents 149e8e1 + 49d565d commit d81a1f8

File tree

3 files changed

+35
-11
lines changed

3 files changed

+35
-11
lines changed

Dockerfile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ FROM nvidia/cuda:11.3.1-cudnn8-devel-ubuntu20.04
44
#FROM nvidia/cuda:11.6.0-cudnn8-devel-ubuntu20.04
55

66
ARG py=3.9
7-
ARG pytorch=1.13.1
8-
ARG torchvision=0.14.1
9-
ARG torchaudio=0.13.1
10-
ARG pytorch_lightning=1.9.0
7+
ARG pytorch=2.1.0.dev20230313+cu117
8+
ARG torchvision=0.15.0.dev20230313+cu117
9+
ARG torchaudio=2.0.0.dev20230313+cu117
10+
ARG pytorch_lightning=1.9.3
1111
ARG pycyda=11.7
1212

1313
ENV TZ=Europe/Paris
@@ -30,8 +30,9 @@ ENV HOME /workspace
3030
WORKDIR /workspace
3131

3232
# Pytorch & pytorch litning
33-
RUN conda install pytorch==${pytorch} torchvision==${torchvision} torchaudio==${torchaudio} pytorch-cuda=${pycuda} -c pytorch -c nvidia
33+
#RUN conda install py pytorch-cuda=${pycuda} -c pytorch -c nvidia
34+
RUN pip install --pre torch==${pytorch} torchvision==${torchvision} torchaudio==${torchaudio} --index-url https://download.pytorch.org/whl/nightly/cu117
3435
RUN pip install pytorch_lightning==${pytorch_lightning}
3536

36-
COPY requirements-torch1.13.1.txt /install/requirements-torch1.13.1.txt
37-
RUN pip install -r /install/requirements-torch1.13.1.txt
37+
COPY requirements-torch2.1.txt /install/requirements-torch2.1.txt
38+
RUN pip install -r /install/requirements-torch2.1.txt

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<a href="https://visual-behavior.github.io/aloception-oss/">Documentation</a>
66

7-
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-0.5.0-green.svg)](https://conventionalcommits.org)
7+
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-0.5.1-green.svg)](https://conventionalcommits.org)
88

99
# Aloception open source software
1010

@@ -78,17 +78,17 @@ training pipelines with **augmented tensors**.
7878
### Docker install
7979

8080
```
81-
docker build -t aloception-oss:cuda-11.3.1-pytorch1.13.1-lightning1.9.0 .
81+
docker build -t aloception-oss:cuda-11.7-pytorch2.1.0-lightning1.9.3 .
8282
```
8383

8484
```
85-
docker run --gpus all -it -v /YOUR/WORKSPACE/:/workspace --privileged -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix aloception-oss:cuda-11.3.1-pytorch1.13.1-lightning1.9.0
85+
docker run --gpus all -it -v /YOUR/WORKSPACE/:/workspace --privileged -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix aloception-oss:cuda-11.7-pytorch2.1.0-lightning1.9.3
8686
```
8787

8888
Or without building the image
8989

9090
```
91-
docker run --gpus all -it -v /YOUR/WORKSPACE/:/workspace --privileged -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix visualbehaviorofficial/aloception-oss:cuda-11.3.1-pytorch1.13.1-lightning1.9.0
91+
docker run --gpus all -it -v /YOUR/WORKSPACE/:/workspace --privileged -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix visualbehaviorofficial/aloception-oss:cuda-11.7-pytorch2.1.0-lightning1.9.3
9292
```
9393

9494

requirements-torch2.1.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
pycocotools==2.0.2
2+
PyYAML==5.4.1
3+
chardet==4.0.0
4+
idna==2.10
5+
6+
scipy==1.10.0
7+
8+
more_itertools==8.8.0
9+
requests==2.25.1
10+
opencv-python==4.7.0.68
11+
12+
python-dateutil==2.8.2
13+
urllib3==1.26.6
14+
15+
protobuf==4.21.12
16+
wandb==0.13.9
17+
18+
tqdm==4.62.3
19+
captum==0.4.0
20+
21+
setuptools==59.5.0
22+
23+
numpy==1.23.5

0 commit comments

Comments
 (0)