Skip to content

Commit

Permalink
Added Docker files, updates usage comments for
Browse files Browse the repository at this point in the history
train.py
  • Loading branch information
dalmouiee committed Jun 11, 2021
1 parent 9c0aaa3 commit 0f0c7ae
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "rdp_ret_net",
"dockerComposeFile": "../docker-compose.yml",
"service": "rdp_ret_net",
"workspaceFolder": "/workspace",
"shutdownAction": "stopCompose"
}
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM ubuntu:20.04

# Install python3
RUN apt-get update && \
apt-get install ffmpeg libsm6 libxext6 -y && \
DEBIAN_FRONTEND=noninteractive apt-get -y install python3-pip

# Rename python3 command to python, pip3 to pipi
# RUN ln -s /usr/bin/python3 /usr/bin/python
# RUN ln -s /usr/bin/pip3 /usr/bin/pip

# Copy requirements.txt to working directory
COPY scripts/reqs.txt reqs.txt
# Install Python packages defined in reqs.txt
RUN apt-get update

RUN pip install -r reqs.txt

# Start the container
ENTRYPOINT ["tail", "-f", "/dev/null"]
6 changes: 6 additions & 0 deletions code/arch_01/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
Script to train a CNN to classify histologically stained images of feline retinae into 4 different classes.
Architrecture 01, refer to paper for further details
Usage:
python train.py PATH_TO_TRAINING_IMAGES
ie.
python train.py data/FINAL_TRAINING_SET
'''

import time
Expand Down
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: "3"

services:
rdp_ret_net:
image: dalmouiee/rdp_ret_net:devel
volumes:
- .:/workspace

0 comments on commit 0f0c7ae

Please sign in to comment.