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
cfc9f1f7
Unverified
Commit
cfc9f1f7
authored
Sep 02, 2021
by
srihari-humbarwadi
Browse files
added a comment about num segmentation classes
parent
401b105b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
official/vision/beta/projects/panoptic_maskrcnn/configs/panoptic_maskrcnn.py
...a/projects/panoptic_maskrcnn/configs/panoptic_maskrcnn.py
+12
-1
No files found.
official/vision/beta/projects/panoptic_maskrcnn/configs/panoptic_maskrcnn.py
View file @
cfc9f1f7
...
...
@@ -122,6 +122,17 @@ def panoptic_maskrcnn_resnetfpn_coco() -> cfg.ExperimentConfig:
steps_per_epoch
=
_COCO_TRAIN_EXAMPLES
//
train_batch_size
validation_steps
=
_COCO_VAL_EXAMPLES
//
eval_batch_size
# coco panoptic dataset has category ids ranging from [0-200] inclusive.
# 0 is not used and represents the background class
# ids 1-91 represent thing categories (91)
# ids 92-200 represent stuff categories (109)
# for the segmentation task, we continue using id=0 for the background
# and map all thing categories to id=1, the remaining 109 stuff categories
# are shifted by an offset=90 given by num_thing classes - 1. This shifting
# will make all the stuff categories begin from id=2 and end at id=110
num_semantic_segmentation_classes
=
111
config
=
cfg
.
ExperimentConfig
(
runtime
=
cfg
.
RuntimeConfig
(
mixed_precision_dtype
=
'bfloat16'
),
task
=
PanopticMaskRCNNTask
(
...
...
@@ -133,7 +144,7 @@ def panoptic_maskrcnn_resnetfpn_coco() -> cfg.ExperimentConfig:
output_size
=
[
1024
,
1024
],
stuff_classes_offset
=
90
),
segmentation_model
=
SEGMENTATION_MODEL
(
num_classes
=
110
,
num_classes
=
num_semantic_segmentation_classes
,
head
=
SEGMENTATION_HEAD
(
level
=
3
))),
losses
=
Losses
(
l2_weight_decay
=
0.00004
),
train_data
=
DataConfig
(
...
...
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