Skip to content

Commit

Permalink
Update h5py_patch_README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
taki0112 authored Dec 26, 2017
1 parent c040ff7 commit 8db4f6f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions preprocessing/README/h5py_patch_README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
non_pad = image
non_label_pad = label

non_pad = np.pad(non_pad, offset, 'edge')
non_label_pad = np.pad(non_label_pad, offset, 'edge')
non_pad = np.pad(non_pad, offset, 'constant', constant_values=np.min(non_pad))
non_label_pad = np.pad(non_label_pad, offset, 'constant', constant_values=np.min(non_label_pad))

image = np.pad(image, offset + (stride * move), 'edge')
label = np.pad(label, offset + (stride * move), 'edge')
image = np.pad(image, offset + (stride * move), 'constant', constant_values=np.min(image))
label = np.pad(label, offset + (stride * move), 'constant', constant_values=np.min(label))

```

Expand Down

0 comments on commit 8db4f6f

Please sign in to comment.