Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
c1f35955
Commit
c1f35955
authored
May 04, 2022
by
Yulv-git
Browse files
Fix some typos in official/.
parent
96a8d744
Changes
22
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
official/vision/tasks/image_classification.py
official/vision/tasks/image_classification.py
+2
-2
official/vision/utils/object_detection/balanced_positive_negative_sampler.py
...ls/object_detection/balanced_positive_negative_sampler.py
+1
-1
No files found.
official/vision/tasks/image_classification.py
View file @
c1f35955
...
...
@@ -218,7 +218,7 @@ class ImageClassificationTask(base_task.Task):
"""Does forward and backward.
Args:
inputs: A tuple of
of
input tensors of (features, labels).
inputs: A tuple of input tensors of (features, labels).
model: A tf.keras.Model instance.
optimizer: The optimizer for this training step.
metrics: A nested structure of metrics objects.
...
...
@@ -278,7 +278,7 @@ class ImageClassificationTask(base_task.Task):
"""Runs validatation step.
Args:
inputs: A tuple of
of
input tensors of (features, labels).
inputs: A tuple of input tensors of (features, labels).
model: A tf.keras.Model instance.
metrics: A nested structure of metrics objects.
...
...
official/vision/utils/object_detection/balanced_positive_negative_sampler.py
View file @
c1f35955
...
...
@@ -64,7 +64,7 @@ class BalancedPositiveNegativeSampler(minibatch_sampler.MinibatchSampler):
sorted_indices_tensor: A sorted int32 tensor of shape [N] which contains
the signed indices of the examples where the sign is based on the label
value. The examples that cannot be sampled are set to 0. It samples
atmost sample_size*positive_fraction positive examples and remaining
at
most sample_size*positive_fraction positive examples and remaining
from negative examples.
sample_size: Size of subsamples.
...
...
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment