Skip to content

Commit b84d048

Browse files
authored
Model development (#19)
* add model blocks and tests * add model and tests * add torch to setup * add torch to requirements * update workflow * add data loader and tests * add opencv to requirements * add opencv to requirements and setup * update opencv version * implement attention mechanism in unet * add network visualisations * update readme * add visualisations * update requirements * devcontainer tweaks * tweak devcontainer * minor changes to setup.sh- add safe directory * add utils func to make images to npy * update dockerfile
1 parent f04f2b9 commit b84d048

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,5 @@
6161
// "customizations": {},
6262

6363
// Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root.
64-
// "remoteUser": "devcontainer"
64+
//"remoteUser": "devuser"
6565
}

Dockerfile

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,27 @@
11

22
FROM nvcr.io/nvidia/pytorch:22.11-py3
33

4+
# Install miniconda
5+
ENV CONDA_DIR /opt/miniconda/
6+
7+
RUN apt clean && \
8+
rm -rf /var/lib/apt/lists/* && \
9+
apt-get update && \
10+
apt-get install -y wget \
11+
git -y && \
12+
wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh && \
13+
/bin/bash ~/miniconda.sh -b -p /opt/miniconda
14+
15+
# Add conda to path
16+
ENV PATH=$CONDA_DIR/bin:$PATH
17+
RUN conda create -n uw-unet python=3.8
18+
419
RUN rm -rf /workspace/*
520
WORKDIR /workspace/uw-unet
621

722
COPY requirements.txt requirements.txt
8-
RUN pip3 install -r requirements.txt
23+
RUN echo "source activate uw-unet" >~/.bashrc && \
24+
/opt/miniconda/envs/uw-unet/bin/pip install -r requirements.txt
925

1026
COPY . .
1127

0 commit comments

Comments
 (0)