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
624f3042
Commit
624f3042
authored
Sep 20, 2022
by
A. Unique TensorFlower
Browse files
Internal change
PiperOrigin-RevId: 475493697
parent
cbaaadca
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
official/projects/volumetric_models/modeling/factory.py
official/projects/volumetric_models/modeling/factory.py
+5
-3
No files found.
official/projects/volumetric_models/modeling/factory.py
View file @
624f3042
...
...
@@ -13,7 +13,7 @@
# limitations under the License.
"""Factory methods to build models."""
from
typing
import
Sequence
,
Union
# Import libraries
import
tensorflow
as
tf
...
...
@@ -26,9 +26,11 @@ from official.vision.modeling.backbones import factory as backbone_factory
def
build_segmentation_model_3d
(
input_specs
:
tf
.
keras
.
layers
.
InputSpec
,
input_specs
:
Union
[
tf
.
keras
.
layers
.
InputSpec
,
Sequence
[
tf
.
keras
.
layers
.
InputSpec
]],
model_config
:
hyperparams
.
Config
,
l2_regularizer
:
tf
.
keras
.
regularizers
.
Regularizer
=
None
)
->
tf
.
keras
.
Model
:
# pytype: disable=annotation-type-mismatch # typed-keras
l2_regularizer
:
tf
.
keras
.
regularizers
.
Regularizer
=
None
)
->
tf
.
keras
.
Model
:
# pytype: disable=annotation-type-mismatch # typed-keras
"""Builds Segmentation model."""
norm_activation_config
=
model_config
.
norm_activation
backbone
=
backbone_factory
.
build_backbone
(
...
...
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