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
8a120d0e
Commit
8a120d0e
authored
Jul 01, 2020
by
syiming
Browse files
change crop_and_resize_fn input to make it consistant with multilevel function
parent
b48046ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
research/object_detection/meta_architectures/faster_rcnn_meta_arch.py
...ect_detection/meta_architectures/faster_rcnn_meta_arch.py
+2
-2
No files found.
research/object_detection/meta_architectures/faster_rcnn_meta_arch.py
View file @
8a120d0e
...
@@ -2549,8 +2549,8 @@ class FasterRCNNMetaArch(model.DetectionModel):
...
@@ -2549,8 +2549,8 @@ class FasterRCNNMetaArch(model.DetectionModel):
image_shape
[
1
],
image_shape
[
2
],
check_range
=
False
).
get
()
image_shape
[
1
],
image_shape
[
2
],
check_range
=
False
).
get
()
flat_cropped_gt_mask
=
self
.
_crop_and_resize_fn
(
flat_cropped_gt_mask
=
self
.
_crop_and_resize_fn
(
tf
.
expand_dims
(
flat_gt_masks
,
-
1
),
[
tf
.
expand_dims
(
flat_gt_masks
,
-
1
)
]
,
tf
.
expand_dims
(
flat_normalized_proposals
,
axis
=
1
),
tf
.
expand_dims
(
flat_normalized_proposals
,
axis
=
1
),
None
,
[
mask_height
,
mask_width
])
[
mask_height
,
mask_width
])
# Without stopping gradients into cropped groundtruth masks the
# Without stopping gradients into cropped groundtruth masks the
# performance with 100-padded groundtruth masks when batch size > 1 is
# performance with 100-padded groundtruth masks when batch size > 1 is
...
...
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