diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-12-11 17:47:51 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-12-11 17:47:51 +0100 |
| commit | 2a9fbde05922ba0a580546c822942ca77de00e85 (patch) | |
| tree | 7af7f6d5895e9430d919a48e253f58a0451d060f /inversion | |
| parent | eb4d235b415782105fcb4409a04b5706d22bb5d8 (diff) | |
remainder
Diffstat (limited to 'inversion')
| -rw-r--r-- | inversion/image_inversion.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/inversion/image_inversion.py b/inversion/image_inversion.py index 2c182c1..274353b 100644 --- a/inversion/image_inversion.py +++ b/inversion/image_inversion.py @@ -328,9 +328,9 @@ if params.dataset.endswith('.hdf5'): if NUM_IMGS % BATCH_SIZE != 0: REMAINDER = BATCH_SIZE - (NUM_IMGS % BATCH_SIZE) NUM_IMGS += REMAINDER - sample_images += sample_images[:-REMAINDER] - sample_labels += sample_labels[:-REMAINDER] - sample_fns += sample_fns[:-REMAINDER] + sample_images += sample_images[-REMAINDER:] + sample_labels += sample_labels[-REMAINDER:] + sample_fns += sample_fns[-REMAINDER:] assert(NUM_IMGS % BATCH_SIZE == 0) else: sys.exit('Unknown dataset {}.'.format(params.dataset)) |
