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
9f901e08
Unverified
Commit
9f901e08
authored
Dec 22, 2020
by
Samuel Marks
Committed by
GitHub
Dec 21, 2020
Browse files
[research/**.py] Rename "Arguments:" to "Args:" (#9574)
parent
11ea5237
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
10 deletions
+10
-10
research/a3c_blogpost/a3c_cartpole.py
research/a3c_blogpost/a3c_cartpole.py
+2
-2
research/deep_speech/decoder.py
research/deep_speech/decoder.py
+1
-1
research/object_detection/core/freezable_batch_norm.py
research/object_detection/core/freezable_batch_norm.py
+1
-1
research/object_detection/models/keras_models/base_models/original_mobilenet_v2.py
.../models/keras_models/base_models/original_mobilenet_v2.py
+3
-3
research/object_detection/models/keras_models/resnet_v1.py
research/object_detection/models/keras_models/resnet_v1.py
+2
-2
research/slim/nets/mobilenet/mobilenet.py
research/slim/nets/mobilenet/mobilenet.py
+1
-1
No files found.
research/a3c_blogpost/a3c_cartpole.py
View file @
9f901e08
...
...
@@ -59,7 +59,7 @@ def record(episode,
num_steps
):
"""Helper function to store score and print statistics.
Arg
ument
s:
Args:
episode: Current episode
episode_reward: Reward accumulated over the current episode
worker_idx: Which thread (worker)
...
...
@@ -87,7 +87,7 @@ def record(episode,
class
RandomAgent
:
"""Random Agent that will play the specified game
Arg
ument
s:
Args:
env_name: Name of the environment to be played
max_eps: Maximum number of episodes to run agent for.
"""
...
...
research/deep_speech/decoder.py
View file @
9f901e08
...
...
@@ -30,7 +30,7 @@ class DeepSpeechDecoder(object):
def
__init__
(
self
,
labels
,
blank_index
=
28
):
"""Decoder initialization.
Arg
ument
s:
Args:
labels: a string specifying the speech labels for the decoder to use.
blank_index: an integer specifying index for the blank character.
Defaults to 28.
...
...
research/object_detection/core/freezable_batch_norm.py
View file @
9f901e08
...
...
@@ -35,7 +35,7 @@ class FreezableBatchNorm(tf.keras.layers.BatchNormalization):
i.e. applies a transformation that maintains the mean activation
close to 0 and the activation standard deviation close to 1.
Arg
ument
s:
Args:
training: If False, the layer will normalize using the moving average and
std. dev, without updating the learned avg and std. dev.
If None or True, the layer will follow the keras BatchNormalization layer
...
...
research/object_detection/models/keras_models/base_models/original_mobilenet_v2.py
View file @
9f901e08
...
...
@@ -117,7 +117,7 @@ def _obtain_input_shape(
require_flatten
):
"""Internal utility to compute/validate an ImageNet model's input shape.
Arg
ument
s:
Args:
input_shape: either None (will return the default network input shape),
or a user-provided shape to be validated.
default_size: default input width/height for the model.
...
...
@@ -198,7 +198,7 @@ def preprocess_input(x):
the RGB values from [0, 255] to [-1, 1]. Note that this preprocessing
function is different from `imagenet_utils.preprocess_input()`.
Arg
ument
s:
Args:
x: a 4D numpy array consists of RGB values within [0, 255].
Returns:
...
...
@@ -237,7 +237,7 @@ def mobilenet_v2(input_shape=None,
model = load_model('mobilenet.h5', custom_objects={
'relu6': mobilenet.relu6})
Arg
ument
s:
Args:
input_shape: optional shape tuple, to be specified if you would
like to use a model with an input img resolution that is not
(224, 224, 3).
...
...
research/object_detection/models/keras_models/resnet_v1.py
View file @
9f901e08
...
...
@@ -408,7 +408,7 @@ def block_basic(x,
name
=
None
):
"""A residual block for ResNet18/34.
Arg
ument
s:
Args:
x: input tensor.
filters: integer, filters of the bottleneck layer.
kernel_size: default 3, kernel size of the bottleneck layer.
...
...
@@ -465,7 +465,7 @@ def block_basic(x,
def
stack_basic
(
x
,
filters
,
blocks
,
stride1
=
2
,
name
=
None
):
"""A set of stacked residual blocks for ResNet18/34.
Arg
ument
s:
Args:
x: input tensor.
filters: integer, filters of the bottleneck layer in a block.
blocks: integer, blocks in the stacked blocks.
...
...
research/slim/nets/mobilenet/mobilenet.py
View file @
9f901e08
...
...
@@ -127,7 +127,7 @@ class NoOpScope(object):
def
safe_arg_scope
(
funcs
,
**
kwargs
):
"""Returns `slim.arg_scope` with all None arguments removed.
Arg
ument
s:
Args:
funcs: Functions to pass to `arg_scope`.
**kwargs: Arguments to pass to `arg_scope`.
...
...
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