Skip to content

Commit 83bce75

Browse files
authored
Update data.py
1 parent bf7384c commit 83bce75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def _map_fn(image_path):
4747
train_ds = tf.data.Dataset.from_generator(generator_train, output_types=tf.string)
4848
ds = train_ds.shuffle(buffer_size=4096)
4949
# ds = ds.shard(num_shards=hvd.size(), index=hvd.rank())
50-
ds = ds.repeat(n_epoch)
50+
# ds = ds.repeat(n_epoch)
5151
ds = ds.map(_map_fn, num_parallel_calls=4)
5252
ds = ds.batch(batch_size)
5353
ds = ds.prefetch(buffer_size=2)

0 commit comments

Comments
 (0)