Skip to content

Commit 1c50f5b

Browse files
author
tibuch
authored
Merge pull request #110 from juglab/tf2
Upgrade to TensorFlow 2
2 parents ce99376 + ffbd612 commit 1c50f5b

23 files changed

+1081
-656
lines changed

.travis.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,10 @@ env:
1212

1313
matrix:
1414
include:
15-
- os: linux
16-
dist: bionic
17-
python: 3.6
18-
env: TENSORFLOW='tensorflow==1.14.0' KERAS='keras==2.2.5'
19-
- os: linux
20-
dist: bionic
21-
python: 3.6
22-
env: TENSORFLOW='tensorflow==1.12.0' KERAS='keras==2.2.5'
2315
- os: linux
2416
dist: bionic
2517
python: 3.7
26-
env: TENSORFLOW='tensorflow==1.14.0' KERAS='keras==2.2.5'
18+
env: TENSORFLOW='tensorflow==2.4.1' KERAS='keras==2.3.1'
2719

2820
install:
2921
- pip install $TENSORFLOW $KERAS

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ Our implementation is based on [CSBDEEP](http://csbdeep.bioimagecomputing.com) (
1313

1414
## Installation
1515
This implementation requires [Tensorflow](https://www.tensorflow.org/install/).
16-
We have tested Noise2Void on LinuxMint 19 and Ubuntu 18.0 using python 3.6 and 3.7 and tensorflow-gpu 1.12.0 and 1.14.0.
16+
We have tested Noise2Void using Python 3.7 and tensorflow-gpu 2.4.1.
17+
18+
Note: If you want to use TensorFlow 1.15 you have to install N2V v0.2.1. N2V v0.3.0 supports TensorFlow 2 only.
1719

1820
#### If you start from scratch...
1921
We recommend using [miniconda](https://docs.conda.io/en/latest/miniconda.html).
@@ -22,13 +24,12 @@ If you do not yet have a strong opinion, just use it too!
2224
After installing Miniconda, the following lines might are likely the easiest way to get Tensorflow and CuDNN installed on your machine (_Note:_ Macs are not supported, and if you sit on a Windows machine all this might also require some modifications.):
2325

2426
```
25-
$ conda create -n 'n2v' python=3.6
27+
$ conda create -n 'n2v' python=3.7
2628
$ source activate n2v
27-
$ conda install tensorflow-gpu=1.14 keras=2.2.4
29+
$ conda install tensorflow-gpu=2.4.1 keras=2.3.1
2830
$ pip install jupyter
2931
```
3032

31-
Note: it is very important that the version of keras be 2.2.4 or 2.2.5, hence the explicit installation above.
3233
Once this is done (or you had tensorflow et al. installed already), you can install N2V with one of the following two options:
3334

3435
#### Option 1: PIP (current stable release)

examples/2D/denoising2D_BSD68/BSD68_reproducibility.ipynb

Lines changed: 529 additions & 49 deletions
Large diffs are not rendered by default.

examples/2D/denoising2D_RGB/01_training.ipynb

Lines changed: 58 additions & 49 deletions
Large diffs are not rendered by default.

examples/2D/denoising2D_RGB/02_prediction.ipynb

Lines changed: 5 additions & 13 deletions
Large diffs are not rendered by default.

examples/2D/denoising2D_SEM/01_training.ipynb

Lines changed: 61 additions & 53 deletions
Large diffs are not rendered by default.

examples/2D/denoising2D_SEM/02_prediction.ipynb

Lines changed: 10 additions & 16 deletions
Large diffs are not rendered by default.

examples/2D/structN2V_2D_convallaria/01_training.ipynb

Lines changed: 34 additions & 31 deletions
Large diffs are not rendered by default.

examples/2D/structN2V_2D_convallaria/02_prediction.ipynb

Lines changed: 6 additions & 14 deletions
Large diffs are not rendered by default.

examples/2D/structN2V_2D_synth_mem/train_and_predict.ipynb

Lines changed: 60 additions & 61 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)