diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-12-11 21:28:50 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-12-11 21:28:50 +0100 |
| commit | 0f486f42283256f618ce653c27da73c518779f5e (patch) | |
| tree | ccc142b856b95e51dbea3c3f175ecad48f0ff197 /inversion | |
| parent | f25796a03ebc54475c10b0c22bb01ae9a413a9b2 (diff) | |
| parent | db900052fa41e9872ddcd0057ee81cd508731593 (diff) | |
Merge branch 'master' of asdf.us:biggan
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 3c0a4b7..d811b92 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 = np.append(sample_images, sample_images[-REMAINDER:,...], axis=0) + sample_labels = np.append(sample_labels, sample_labels[-REMAINDER:,...], axis=0) + sample_fns = np.append(sample_fns, sample_fns[-REMAINDER:], axis=0) assert(NUM_IMGS % BATCH_SIZE == 0) else: sys.exit('Unknown dataset {}.'.format(params.dataset)) |
