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
8861a624
Commit
8861a624
authored
Nov 13, 2019
by
Pengchong Jin
Committed by
A. Unique TensorFlower
Nov 13, 2019
Browse files
Internal changes.
PiperOrigin-RevId: 280262689
parent
13e18326
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
official/vision/detection/ops/sampling_ops.py
official/vision/detection/ops/sampling_ops.py
+2
-1
No files found.
official/vision/detection/ops/sampling_ops.py
View file @
8861a624
...
...
@@ -286,7 +286,8 @@ def sample_and_crop_foreground_masks(candidate_rois,
foreground_masks
=
tf
.
gather_nd
(
gt_masks
,
gather_nd_gt_indices
)
cropped_foreground_masks
=
spatial_transform_ops
.
crop_mask_in_target_box
(
foreground_masks
,
foreground_boxes
,
foreground_rois
,
mask_target_size
)
foreground_masks
,
foreground_boxes
,
foreground_rois
,
mask_target_size
,
sample_offset
=
0.5
)
return
foreground_rois
,
foreground_classes
,
cropped_foreground_masks
...
...
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