File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
research/delf/delf/python Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 30
30
def id2filename (image_id , prefix ):
31
31
"""Creates a training image path out of its id name.
32
32
33
- Used for the image mapping in the Sfm120k datset .
33
+ Used for the image mapping in the Sfm120k dataset .
34
34
35
35
Args:
36
36
image_id: String, image id.
Original file line number Diff line number Diff line change @@ -198,14 +198,14 @@ def __repr__(self):
198
198
self ._num_negatives )
199
199
fmt_str += '\t Number of tuples processed in an epoch: {}\n ' .format (
200
200
self ._num_queries )
201
- fmt_str += '\t Pool size for negative remining : {}\n ' .format (self ._pool_size )
201
+ fmt_str += '\t Pool size for negative remaining : {}\n ' .format (self ._pool_size )
202
202
return fmt_str
203
203
204
204
def create_epoch_tuples (self , net ):
205
205
"""Creates epoch tuples with the hard-negative re-mining.
206
206
207
207
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
209
209
every query image we choose hard-negatives, that is, non-matching images
210
210
with the most similar descriptor. Hard-negatives depend on the current
211
211
CNN parameters. K-nearest neighbors from all non-matching images are
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ class AttentionModel(tf.keras.Model):
34
34
35
35
Uses two [kernel_size x kernel_size] convolutions and softplus as activation
36
36
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.
38
38
The features (targets) to be aggregated can be the input featuremap, or a
39
39
different one with the same resolution.
40
40
"""
You can’t perform that action at this time.
0 commit comments