Skip to content

Commit 6be0b51

Browse files
committed
updated versions
1 parent 6ca99a3 commit 6be0b51

7 files changed

Lines changed: 39 additions & 27 deletions

File tree

README.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,10 @@ Author of this code:
5050

5151
## How to get the code to run:
5252

53-
* Step 1: Set up a virtual environment (e.g. conda or virtualenv) with Python 3 (I used 3.4.3), and tensorflow
54-
(I used version 1.2). There is a requirements.txt file so `pip install -r requirements.txt`
55-
should work.
56-
57-
Potential caveat: We had to use the dev version of skimage to allow for 3D image
58-
resampling of the ADNI data. Previously, we had problems to compile it with anything
59-
else but Python 3.4.3. However, if you don't need this function
60-
(which you don't on 2D data) you can simply use the normal `pip install scikit-image`.
61-
53+
* Step 1: Set up a virtual environment (e.g. conda or virtualenv) with Python 3 (I use Python 3.5), and tensorflow
54+
(I used version 1.12). There is a requirements.txt file so `pip install -r requirements.txt`
55+
should work. Tensorflow is not included in the requirements file so you can decide whether you want
56+
to install the GPU or CPU version.
6257

6358
* Step 2: Open `config/system.py` and change the settings to match your system.
6459

SGE_scripts/run_on_host.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# Author: Christian F. Baumgartner (c.f.baumgartner@gmail.com)
1010

1111
## SET THE FOLLOWING VARIABLES ACCORDING TO YOUR SYSTEM ##
12-
CUDA_HOME=/scratch_net/bmicdl03/libs/cuda-8.0-bmic
12+
CUDA_HOME=/scratch_net/bmicdl03/libs/cuda-9.0
1313
PROJECT_HOME=/scratch_net/bmicdl03/code/python/vagan-code/
1414
VIRTUAL_ENV_PATH=/scratch_net/bmicdl03/code/python/environments/tensorflow1.2-gpu/
1515

SGE_scripts/run_on_host_short.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# Author: Christian F. Baumgartner (c.f.baumgartner@gmail.com)
1010

1111
## SET THE FOLLOWING VARIABLES ACCORDING TO YOUR SYSTEM ##
12-
CUDA_HOME=/scratch_net/bmicdl03/libs/cuda-8.0-bmic
12+
CUDA_HOME=/scratch_net/bmicdl03/libs/cuda-9.0
1313
PROJECT_HOME=/scratch_net/bmicdl03/code/python/vagan-code/
1414
VIRTUAL_ENV_PATH=/scratch_net/bmicdl03/code/python/environments/tensorflow1.2-gpu/
1515

@@ -26,7 +26,7 @@ VIRTUAL_ENV_PATH=/scratch_net/bmicdl03/code/python/environments/tensorflow1.2-gp
2626

2727
# Host and gpu settings
2828
#$ -l gpu
29-
##$ -l hostname=bmicgpu01 ## <-------------- Comment in or out to force a specific machine
29+
#$ -l hostname=bmicgpu01 ## <-------------- Comment in or out to force a specific machine
3030

3131
## stderr and stdout are merged together to stdout
3232
#$ -j y

config/system.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# Full paths are required because otherwise the code will not know where to look
1212
# when it is executed on one of the clusters.
1313

14-
at_biwi = True # Are you running this code from the ETH Computer Vision Lab (Biwi)?
14+
at_biwi = False # Are you running this code from the ETH Computer Vision Lab (Biwi)?
1515

1616
project_root = '/scratch_net/bmicdl03/code/python/vagan-code'
1717
test_data_root = None

requirements.txt

Lines changed: 29 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,29 @@
1-
2-
cython>=0.23
3-
setuptools>=35.0
4-
numpy==1.13.0
5-
nibabel==2.1.0
6-
h5py==2.7.0
7-
matplotlib==2.0.1
8-
pandas==0.20.1
9-
scipy==0.19.1
10-
11-
-e git+https://github.com/scikit-image/scikit-image/#egg=scikit-image
12-
1+
absl-py==0.7.1
2+
astor==0.8.0
3+
cycler==0.10.0
4+
decorator==4.4.0
5+
gast==0.2.2
6+
grpcio==1.22.0
7+
h5py==2.9.0
8+
imageio==2.5.0
9+
joblib==0.13.2
10+
Keras-Applications==1.0.8
11+
Keras-Preprocessing==1.1.0
12+
kiwisolver==1.1.0
13+
Markdown==3.1.1
14+
matplotlib==3.0.3
15+
networkx==2.3
16+
nibabel==2.4.1
17+
numpy==1.16.4
18+
Pillow==6.1.0
19+
pkg-resources==0.0.0
20+
protobuf==3.9.0
21+
pyparsing==2.4.0
22+
python-dateutil==2.8.0
23+
PyWavelets==1.0.3
24+
scikit-image==0.15.0
25+
scikit-learn==0.21.2
26+
scipy==1.3.0
27+
six==1.12.0
28+
termcolor==1.1.0
29+
Werkzeug==0.15.5

vagan/experiments/adni_experiment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
label_name = 'diagnosis'
2121
nlabels = len(label_list)
2222
data_root = '/usr/bmicnas01/data-biwi-01/bmicdatasets/Processed/ADNI_Christian/ADNI_allfixed_allPP_robex'
23-
preproc_folder = os.path.join(sys_config.project_root,'data/preproc_data/allfixed_noskull')
23+
preproc_folder = '/srv/beegfs02/scratch/baumgach_data/data/preproc_data/vagan_adni/'
2424
rescale_to_one = True
2525
image_z_slice = 56 # for displaying images during training
2626

vagan/experiments/synthetic_experiment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from vagan.network_zoo.nets2D import critics, mask_generators
66

77
# Experiment name
8-
experiment_name = 'synth_vagan'
8+
experiment_name = 'synth_vagan_rerun'
99

1010
# Model settings
1111
critic_net = critics.C3D_fcn_16_2D

0 commit comments

Comments
 (0)