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
153e127a
Commit
153e127a
authored
Sep 15, 2022
by
A. Unique TensorFlower
Browse files
Internal change
PiperOrigin-RevId: 474624821
parent
fb826f1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
official/projects/panoptic/modeling/factory.py
official/projects/panoptic/modeling/factory.py
+14
-12
No files found.
official/projects/panoptic/modeling/factory.py
View file @
153e127a
...
@@ -105,18 +105,20 @@ def build_panoptic_maskrcnn(
...
@@ -105,18 +105,20 @@ def build_panoptic_maskrcnn(
if
model_config
.
generate_panoptic_masks
:
if
model_config
.
generate_panoptic_masks
:
max_num_detections
=
model_config
.
detection_generator
.
max_num_detections
max_num_detections
=
model_config
.
detection_generator
.
max_num_detections
mask_binarize_threshold
=
postprocessing_config
.
mask_binarize_threshold
mask_binarize_threshold
=
postprocessing_config
.
mask_binarize_threshold
panoptic_segmentation_generator_obj
=
panoptic_segmentation_generator
.
PanopticSegmentationGenerator
(
panoptic_segmentation_generator_obj
=
(
output_size
=
postprocessing_config
.
output_size
,
panoptic_segmentation_generator
.
PanopticSegmentationGeneratorV2
(
max_num_detections
=
max_num_detections
,
output_size
=
postprocessing_config
.
output_size
,
stuff_classes_offset
=
model_config
.
stuff_classes_offset
,
max_num_detections
=
max_num_detections
,
mask_binarize_threshold
=
mask_binarize_threshold
,
stuff_classes_offset
=
model_config
.
stuff_classes_offset
,
score_threshold
=
postprocessing_config
.
score_threshold
,
mask_binarize_threshold
=
mask_binarize_threshold
,
things_overlap_threshold
=
postprocessing_config
.
things_overlap_threshold
,
score_threshold
=
postprocessing_config
.
score_threshold
,
things_class_label
=
postprocessing_config
.
things_class_label
,
things_overlap_threshold
=
postprocessing_config
stuff_area_threshold
=
postprocessing_config
.
stuff_area_threshold
,
.
things_overlap_threshold
,
void_class_label
=
postprocessing_config
.
void_class_label
,
things_class_label
=
postprocessing_config
.
things_class_label
,
void_instance_id
=
postprocessing_config
.
void_instance_id
,
stuff_area_threshold
=
postprocessing_config
.
stuff_area_threshold
,
rescale_predictions
=
postprocessing_config
.
rescale_predictions
)
void_class_label
=
postprocessing_config
.
void_class_label
,
void_instance_id
=
postprocessing_config
.
void_instance_id
,
rescale_predictions
=
postprocessing_config
.
rescale_predictions
))
else
:
else
:
panoptic_segmentation_generator_obj
=
None
panoptic_segmentation_generator_obj
=
None
...
...
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