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
2e908198
Unverified
Commit
2e908198
authored
Oct 15, 2021
by
srihari-humbarwadi
Browse files
set segmentation loss weight to 0.5
parent
d1f01835
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
official/vision/beta/projects/panoptic_maskrcnn/configs/panoptic_maskrcnn.py
...a/projects/panoptic_maskrcnn/configs/panoptic_maskrcnn.py
+3
-2
No files found.
official/vision/beta/projects/panoptic_maskrcnn/configs/panoptic_maskrcnn.py
View file @
2e908198
...
@@ -107,7 +107,7 @@ class Losses(maskrcnn.Losses):
...
@@ -107,7 +107,7 @@ class Losses(maskrcnn.Losses):
semantic_segmentation_use_groundtruth_dimension
:
bool
=
True
semantic_segmentation_use_groundtruth_dimension
:
bool
=
True
semantic_segmentation_top_k_percent_pixels
:
float
=
1.0
semantic_segmentation_top_k_percent_pixels
:
float
=
1.0
instance_segmentation_weight
:
float
=
1.0
instance_segmentation_weight
:
float
=
1.0
semantic_segmentation_weight
:
float
=
1.0
semantic_segmentation_weight
:
float
=
0.5
@
dataclasses
.
dataclass
@
dataclasses
.
dataclass
...
@@ -170,7 +170,8 @@ def panoptic_fpn_coco() -> cfg.ExperimentConfig:
...
@@ -170,7 +170,8 @@ def panoptic_fpn_coco() -> cfg.ExperimentConfig:
is_thing
.
append
(
True
if
idx
<=
num_thing_categories
else
False
)
is_thing
.
append
(
True
if
idx
<=
num_thing_categories
else
False
)
config
=
cfg
.
ExperimentConfig
(
config
=
cfg
.
ExperimentConfig
(
runtime
=
cfg
.
RuntimeConfig
(
mixed_precision_dtype
=
'bfloat16'
),
runtime
=
cfg
.
RuntimeConfig
(
mixed_precision_dtype
=
'bfloat16'
,
enable_xla
=
True
),
task
=
PanopticMaskRCNNTask
(
task
=
PanopticMaskRCNNTask
(
init_checkpoint
=
'gs://cloud-tpu-checkpoints/vision-2.0/resnet50_imagenet/ckpt-28080'
,
# pylint: disable=line-too-long
init_checkpoint
=
'gs://cloud-tpu-checkpoints/vision-2.0/resnet50_imagenet/ckpt-28080'
,
# pylint: disable=line-too-long
init_checkpoint_modules
=
[
'backbone'
],
init_checkpoint_modules
=
[
'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