Commit 2964ebe2 authored by A. Unique TensorFlower's avatar A. Unique TensorFlower
Browse files

Internal change

PiperOrigin-RevId: 474624821
parent 193a6088
...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment