Skip to content

Commit

Permalink
fixed data loading
Browse files Browse the repository at this point in the history
  • Loading branch information
gisilvs committed Jul 17, 2020
1 parent b3d80f3 commit 13d4a9b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions train.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,12 +204,12 @@ def test_step(images, targets):
test_metric.reset_states()

# training loop
for images, targets, true in train_ds:
train_step(images, targets, true)
for images, targets in train_ds:
train_step(images, targets)

# test loop
for test_images, test_labels, test_true in test_ds:
test_step(test_images, test_labels, test_true)
for test_images, test_targets in test_ds:
test_step(test_images, test_targets)

# log losses and metrics
with summary_writer.as_default():
Expand Down

0 comments on commit 13d4a9b

Please sign in to comment.