Skip to content

Commit 953275b

Browse files
authored
Fixing typos (#11137)
* Fixing typos * Update build_image_dataset.py * Update build_image_dataset.py
1 parent e923b8a commit 953275b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

research/delf/delf/python/training/build_image_dataset.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ def _write_tfrecord(output_prefix, image_paths, file_ids, labels):
266266
if output_prefix == _TEST_SPLIT:
267267
labels = [None] * len(image_paths)
268268
if not len(image_paths) == len(file_ids) == len(labels):
269-
raise ValueError('length of image_paths, file_ids, labels shoud be the' +
269+
raise ValueError('length of image_paths, file_ids, labels should be the' +
270270
' same. But they are %d, %d, %d, respectively' %
271271
(len(image_paths), len(file_ids), len(labels)))
272272

@@ -319,7 +319,7 @@ def _shuffle_by_columns(np_array, random_state):
319319

320320
def _build_train_and_validation_splits(image_paths, file_ids, labels,
321321
validation_split_size, seed):
322-
"""Create TRAIN and VALIDATION splits containg all labels in equal proportion.
322+
"""Create TRAIN and VALIDATION splits containing all labels in equal proportion.
323323
324324
Args:
325325
image_paths: list of paths to the image files in the train dataset.

research/delf/delf/python/training/model/delf_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def global_and_local_forward_pass(self, images, training=True):
198198
199199
Args:
200200
images: Tensor containing the dataset on which to run the forward pass.
201-
training: Indicator of wether the forward pass is running in training mode
201+
training: Indicator of whether the forward pass is running in training mode
202202
or not.
203203
204204
Returns:

0 commit comments

Comments
 (0)