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
13078601
"awq/modules/vscode:/vscode.git/clone" did not exist on "fcd9637c06034ae5ba9769b09f2e422729f7ce56"
Commit
13078601
authored
Aug 05, 2020
by
syiming
Browse files
fix bug
parent
a4d4d0f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
research/object_detection/meta_architectures/faster_rcnn_meta_arch.py
...ect_detection/meta_architectures/faster_rcnn_meta_arch.py
+2
-3
No files found.
research/object_detection/meta_architectures/faster_rcnn_meta_arch.py
View file @
13078601
...
...
@@ -1962,11 +1962,10 @@ class FasterRCNNMetaArch(model.DetectionModel):
# unit_scale_index: num_levels-2 is chosen based on section 4.2 of
# https://arxiv.org/pdf/1612.03144.pdf and works best for Resnet based
# feature extractor.
image_shape
=
image_shape
.
as_list
()
box_levels
=
ops
.
fpn_feature_levels
(
num_levels
,
num_levels
-
2
,
tf
.
sqr
t
(
image_shape
[
1
]
*
image_shape
[
2
]
*
1.0
)
/
224.0
,
tf
.
sqrt
(
tf
.
cas
t
(
image_shape
[
1
]
*
image_shape
[
2
]
,
tf
.
float32
)
)
/
224.0
,
proposal_boxes_normalized
)
cropped_regions
=
self
.
_flatten_first_two_dimensions
(
...
...
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