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
c6f0446d
Commit
c6f0446d
authored
May 10, 2022
by
Yeqing Li
Committed by
A. Unique TensorFlower
May 10, 2022
Browse files
Internal change
PiperOrigin-RevId: 447902944
parent
a281aaa2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
official/vision/examples/starter/example_model.py
official/vision/examples/starter/example_model.py
+2
-2
No files found.
official/vision/examples/starter/example_model.py
View file @
c6f0446d
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
This is only a dummy example to showcase how a model is composed. It is usually
This is only a dummy example to showcase how a model is composed. It is usually
not needed to implement a modedl from scratch. Most SoTA models can be found and
not needed to implement a modedl from scratch. Most SoTA models can be found and
directly used from `official/vision/
beta/
modeling` directory.
directly used from `official/vision/modeling` directory.
"""
"""
from
typing
import
Any
,
Mapping
from
typing
import
Any
,
Mapping
...
@@ -84,7 +84,7 @@ def build_example_model(input_specs: tf.keras.layers.InputSpec,
...
@@ -84,7 +84,7 @@ def build_example_model(input_specs: tf.keras.layers.InputSpec,
This function is the main entry point to build a model. Commonly, it build a
This function is the main entry point to build a model. Commonly, it build a
model by building a backbone, decoder and head. An example of building a
model by building a backbone, decoder and head. An example of building a
classification model is at
classification model is at
third_party/tensorflow_models/official/vision/
beta/
modeling/backbones/resnet.py.
third_party/tensorflow_models/official/vision/modeling/backbones/resnet.py.
However, it is not mandatory for all models to have these three pieces
However, it is not mandatory for all models to have these three pieces
exactly. Depending on the task, model can be as simple as the example model
exactly. Depending on the task, model can be as simple as the example model
here or more complex, such as multi-head architecture.
here or more complex, such as multi-head architecture.
...
...
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