Skip to content

Commit c72bce8

Browse files
authored
Fixed typos (#11126)
* Fixed typos * Update tuples_dataset.py * Update sfm120k.py * Update delf_model.py
1 parent 854febe commit c72bce8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

research/delf/delf/python/datasets/sfm120k/sfm120k.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
def id2filename(image_id, prefix):
3131
"""Creates a training image path out of its id name.
3232
33-
Used for the image mapping in the Sfm120k datset.
33+
Used for the image mapping in the Sfm120k dataset.
3434
3535
Args:
3636
image_id: String, image id.

research/delf/delf/python/datasets/tuples_dataset.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,14 +198,14 @@ def __repr__(self):
198198
self._num_negatives)
199199
fmt_str += '\tNumber of tuples processed in an epoch: {}\n'.format(
200200
self._num_queries)
201-
fmt_str += '\tPool size for negative remining: {}\n'.format(self._pool_size)
201+
fmt_str += '\tPool size for negative remaining: {}\n'.format(self._pool_size)
202202
return fmt_str
203203

204204
def create_epoch_tuples(self, net):
205205
"""Creates epoch tuples with the hard-negative re-mining.
206206
207207
Negative examples are selected from clusters different than the cluster
208-
of the query image, as the clusters are ideally non-overlaping. For
208+
of the query image, as the clusters are ideally non-overlapping. For
209209
every query image we choose hard-negatives, that is, non-matching images
210210
with the most similar descriptor. Hard-negatives depend on the current
211211
CNN parameters. K-nearest neighbors from all non-matching images are

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class AttentionModel(tf.keras.Model):
3434
3535
Uses two [kernel_size x kernel_size] convolutions and softplus as activation
3636
to compute an attention map with the same resolution as the featuremap.
37-
Features l2-normalized and aggregated using attention probabilites as weights.
37+
Features l2-normalized and aggregated using attention probabilities as weights.
3838
The features (targets) to be aggregated can be the input featuremap, or a
3939
different one with the same resolution.
4040
"""

0 commit comments

Comments
 (0)