Commit d41fc8f4 authored by syiming's avatar syiming
Browse files

fix coding style

parent e58d3ccd
...@@ -1976,7 +1976,7 @@ class FasterRCNNMetaArch(model.DetectionModel): ...@@ -1976,7 +1976,7 @@ class FasterRCNNMetaArch(model.DetectionModel):
num_levels = len(features_to_crop) num_levels = len(features_to_crop)
box_levels = None box_levels = None
if num_levels != 1: if num_levels != 1:
# If there are mutiple levels to select, get the box levels # If there are mutiple levels to select, get the box levels
box_levels = ops.fpn_feature_levels(num_levels, num_levels - 1, box_levels = ops.fpn_feature_levels(num_levels, num_levels - 1,
1.0/224, proposal_boxes_normalized) 1.0/224, proposal_boxes_normalized)
cropped_regions = self._flatten_first_two_dimensions( cropped_regions = self._flatten_first_two_dimensions(
......
...@@ -32,10 +32,12 @@ from object_detection.utils import spatial_transform_ops as spatial_ops ...@@ -32,10 +32,12 @@ from object_detection.utils import spatial_transform_ops as spatial_ops
from object_detection.utils import static_shape from object_detection.utils import static_shape
multilevel_matmul_crop_and_resize = spatial_ops.multilevel_matmul_crop_and_resize multilevel_matmul_crop_and_resize = \
spatial_ops.multilevel_matmul_crop_and_resize
matmul_crop_and_resize = spatial_ops.matmul_crop_and_resize matmul_crop_and_resize = spatial_ops.matmul_crop_and_resize
multilevel_roi_align = spatial_ops.multilevel_roi_align multilevel_roi_align = spatial_ops.multilevel_roi_align
multilevel_native_crop_and_resize = spatial_ops.multilevel_native_crop_and_resize multilevel_native_crop_and_resize = \
spatial_ops.multilevel_native_crop_and_resize
native_crop_and_resize = spatial_ops.native_crop_and_resize native_crop_and_resize = spatial_ops.native_crop_and_resize
......
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