Skip to content

Commit d00b73e

Browse files
committed
update dependencies for installation
1 parent 9a9c6e1 commit d00b73e

File tree

4 files changed

+10
-12
lines changed

4 files changed

+10
-12
lines changed

Dockerfile

+7-7
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@
55
# GPU-ready with Apex for mixed-precision support
66
# https://ngc.nvidia.com/catalog/containers/nvidia:pytorch
77
# https://docs.nvidia.com/deeplearning/frameworks/support-matrix/
8-
FROM nvcr.io/nvidia/pytorch:21.03-py3
8+
FROM nvcr.io/nvidia/pytorch:22.07-py3
99

1010

1111
# Copy all files
12-
ADD . /workspace/project
13-
WORKDIR /workspace/project
12+
ADD . /workspace/hyperbox
13+
WORKDIR /workspace/hyperbox
1414

1515

16-
# Create myenv
17-
RUN conda env create -f conda_env_gpu.yaml -n myenv
16+
# Create hyperbox
17+
RUN conda env create -f conda_env_gpu.yaml -n hyperbox
1818
RUN conda init bash
1919

2020

21-
# Set myenv to default virtual environment
22-
RUN echo "source activate myenv" >> ~/.bashrc
21+
# Set hyperbox to default virtual environment
22+
RUN echo "source activate hyperbox" >> ~/.bashrc

conda_env_gpu.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: myenv
1+
name: hyperbox
22

33
channels:
44
- pytorch

hyperbox/run.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
import os
22
import sys
33

4-
import dotenv
54
import hydra
6-
from ipdb import set_trace
75
from omegaconf import DictConfig
86

97
# load environment variables from `.env` file if it exists
108
# recursively searches for `.env` in all folders starting from work dir
11-
dotenv.load_dotenv(override=True)
129

1310

1411
@hydra.main(version_base="1.2", config_path="configs/", config_name="config.yaml")
@@ -33,6 +30,7 @@ def main(config: DictConfig):
3330

3431
# Train model
3532
if config.ipdb_debug:
33+
from ipdb import set_trace
3634
set_trace()
3735
return train(config)
3836

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# --------- pytorch --------- #
22
torch>=1.8.1
33
torchvision
4-
pytorch-lightning==1.5.8
4+
pytorch-lightning>=1.5.8
55
torchmetrics>=0.3.2
66
lightning-bolts>=0.3.3
77

0 commit comments

Comments
 (0)