Skip to content

Commit

Permalink
Alex krull patch clipping (#75)
Browse files Browse the repository at this point in the history
Update BSD68_reproducibility.ipynb
  • Loading branch information
Alexander Krull authored Apr 27, 2020
1 parent f33b2a9 commit 04f9760
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion examples/2D/denoising2D_BSD68/BSD68_reproducibility.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@
"source": [
"X = np.load('data/BSD68_reproducibility_data/train/DCNN400_train_gaussian25.npy')\n",
"X_val = np.load('data/BSD68_reproducibility_data/val/DCNN400_validation_gaussian25.npy')\n",
"# Note that we do not round or clip the noisy data to [0,255]\n",
"# If you want to enable clipping and rounding to emulate an 8 bit image format,\n",
"# uncomment the following lines.\n",
"# X = np.round(np.clip(X, 0, 255.))\n",
"# X_val = np.round(np.clip(X_val, 0, 255.))\n",
"\n",
"# Adding channel dimension\n",
"X = X[..., np.newaxis]\n",
Expand Down Expand Up @@ -792,7 +797,11 @@
"metadata": {},
"outputs": [],
"source": [
"test_data = np.load('data/BSD68_reproducibility_data/test/bsd68_gaussian25.npy', allow_pickle=True)"
"test_data = np.load('data/BSD68_reproducibility_data/test/bsd68_gaussian25.npy', allow_pickle=True)\n",
"# Note that we do not round or clip the noisy data to [0,255]\n",
"# If you want to enable clipping and rounding to emulate an 8 bit image format,\n",
"# uncomment the following line.\n",
"# test_data = np.round(np.clip(test_data, 0, 255.))"
]
},
{
Expand Down

0 comments on commit 04f9760

Please sign in to comment.