We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cf28e0 commit f2a9792Copy full SHA for f2a9792
examples/vision/nl_image_search.py
@@ -84,7 +84,6 @@
84
)
85
with zipfile.ZipFile(annotation_zip, "r") as zip_ref:
86
zip_ref.extractall(annotations_dir)
87
- # os.remove(os.path.join(root_dir,"captions.zip"))
88
89
print("\nDownloading the images.")
90
@@ -93,7 +92,6 @@
93
92
print("Downloaded the images.\nunzipping")
94
with zipfile.ZipFile(image_zip, "r") as zip_ref:
95
zip_ref.extractall(images_dir)
96
- # os.remove(os.path.join(root_dir,"train2014.zip"))
97
98
print("\nDataset is downloaded and extracted successfully.")
99
@@ -251,6 +249,7 @@ def get_dataset(file_pattern, batch_size):
251
249
num_parallel_calls=tf.data.AUTOTUNE,
252
250
deterministic=False,
253
+ .shuffle(batch_size * 10)
254
.batch(batch_size)
255
.prefetch(tf.data.AUTOTUNE)
256
0 commit comments