summaryrefslogtreecommitdiff
path: root/inversion
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2019-12-11 18:04:41 +0100
committerJules Laplace <julescarbon@gmail.com>2019-12-11 18:04:41 +0100
commit786766986deac14e547f484e8911a93034171c81 (patch)
treea7e2fe74898d8e807843d3552d321689123f2b47 /inversion
parent2b69f55f36a6ce4b68189f3063cc08eea33738e5 (diff)
break
Diffstat (limited to 'inversion')
-rw-r--r--inversion/image_inversion.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/inversion/image_inversion.py b/inversion/image_inversion.py
index db2bd02..158b7e9 100644
--- a/inversion/image_inversion.py
+++ b/inversion/image_inversion.py
@@ -479,7 +479,7 @@ for image_batch, label_batch in image_gen:
out_labels[out_pos:out_pos+BATCH_SIZE] = label_batch
out_err[out_pos:out_pos+BATCH_SIZE] = rec_err_batch
out_pos += BATCH_SIZE
- if out_pos >= params.max:
+ if out_pos >= params.max_batches:
break
print('Mean reconstruction error: {}'.format(np.mean(out_err)))