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
d41fc8f4
"docs/source/notebooks/vscode:/vscode.git/clone" did not exist on "d965acab7faf6c4ca8c16f10603f0a7e36470095"
Commit
d41fc8f4
authored
Jun 29, 2020
by
syiming
Browse files
fix coding style
parent
e58d3ccd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
research/object_detection/meta_architectures/faster_rcnn_meta_arch.py
...ect_detection/meta_architectures/faster_rcnn_meta_arch.py
+1
-1
research/object_detection/utils/ops.py
research/object_detection/utils/ops.py
+4
-2
No files found.
research/object_detection/meta_architectures/faster_rcnn_meta_arch.py
View file @
d41fc8f4
...
...
@@ -1976,7 +1976,7 @@ class FasterRCNNMetaArch(model.DetectionModel):
num_levels
=
len
(
features_to_crop
)
box_levels
=
None
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
,
1.0
/
224
,
proposal_boxes_normalized
)
cropped_regions
=
self
.
_flatten_first_two_dimensions
(
...
...
research/object_detection/utils/ops.py
View file @
d41fc8f4
...
...
@@ -32,10 +32,12 @@ from object_detection.utils import spatial_transform_ops as spatial_ops
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
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
...
...
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