Skip to content
Snippets Groups Projects
Commit a000b5d5 authored by tomrink's avatar tomrink
Browse files

snapshot...

parent d6398765
No related branches found
No related tags found
No related merge requests found
......@@ -390,7 +390,7 @@ class SRCNN:
dataset = tf.data.Dataset.from_generator(gen, output_types=tf.int32)
dataset = dataset.batch(PROC_BATCH_SIZE)
dataset = dataset.map(self.data_function, num_parallel_calls=8)
dataset = dataset.cache(CACHE_FILE)
dataset = dataset.cache(filename=CACHE_FILE)
dataset = dataset.shuffle(PROC_BATCH_BUFFER_SIZE, reshuffle_each_iteration=True)
if DO_AUGMENT:
dataset = dataset.map(augment_image(), num_parallel_calls=8)
......@@ -409,7 +409,7 @@ class SRCNN:
dataset = tf.data.Dataset.from_generator(gen, output_types=tf.int32)
dataset = dataset.batch(PROC_BATCH_SIZE)
dataset = dataset.map(self.data_function_test, num_parallel_calls=8)
dataset = dataset.cache(CACHE_FILE)
dataset = dataset.cache()
self.test_dataset = dataset
def setup_pipeline(self, train_data_files, train_label_files, test_data_files, test_label_files, num_train_samples):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment