diff --git a/mrcnn/model.py b/mrcnn/model.py index 62cb2b0951..a760d030bd 100644 --- a/mrcnn/model.py +++ b/mrcnn/model.py @@ -252,7 +252,7 @@ def clip_boxes_graph(boxes, window): return clipped -class ProposalLayer(KE.Layer): +class ProposalLayer(KL.Layer): """Receives anchor scores and selects a subset to pass as proposals to the second stage. Filtering is done based on anchor scores and non-max suppression to remove overlaps. It also applies bounding @@ -341,7 +341,7 @@ def log2_graph(x): return tf.log(x) / tf.log(2.0) -class PyramidROIAlign(KE.Layer): +class PyramidROIAlign(KL.Layer): """Implements ROI Pooling on multiple levels of the feature pyramid. Params: @@ -619,7 +619,7 @@ def detection_targets_graph(proposals, gt_class_ids, gt_boxes, gt_masks, config) return rois, roi_gt_class_ids, deltas, masks -class DetectionTargetLayer(KE.Layer): +class DetectionTargetLayer(KL.Layer): """Subsamples proposals and generates target box refinement, class_ids, and masks for each. @@ -779,7 +779,7 @@ def nms_keep_map(class_id): return detections -class DetectionLayer(KE.Layer): +class DetectionLayer(KL.Layer): """Takes classified proposal boxes and their bounding box deltas and returns the final detection boxes.