0638b9c86cfec273b2e5799aea281ffa74d9161d,models/official/detection/modeling/retinanet_model.py,RetinanetModel,_build_outputs,#RetinanetModel#Any#Any#Any#,58
Before Change
self._params.anchor.num_scales,
self._params.anchor.aspect_ratios,
self._params.anchor.anchor_size,
images.get_shape().as_list()[1:3]).multilevel_boxes
batch_size = tf.shape(images)[0]
for level in anchor_boxes:
anchor_boxes[level] = tf.tile(
tf.expand_dims(anchor_boxes[level], 0), [batch_size, 1, 1])
backbone_features = self._backbone_fn(
After Change
if "anchor_boxes" in labels:
anchor_boxes = labels["anchor_boxes"]
else:
images_shape = tf.shape(images)
anchor_boxes = anchor.Anchor(
self._params.architecture.min_level,
self._params.architecture.max_level,
self._params.anchor.num_scales,
self._params.anchor.aspect_ratios,
self._params.anchor.anchor_size,
images_shape[1:3]).multilevel_boxes
batch_size = images_shape[0]
for level in anchor_boxes:
anchor_boxes[level] = tf.tile(
tf.expand_dims(anchor_boxes[level], 0), [batch_size, 1, 1])
backbone_features = self._backbone_fn(
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 11
Instances
Project Name: tensorflow/tpu
Commit Name: 0638b9c86cfec273b2e5799aea281ffa74d9161d
Time: 2020-05-12
Author: pengchong@google.com
File Name: models/official/detection/modeling/retinanet_model.py
Class Name: RetinanetModel
Method Name: _build_outputs
Project Name: tensorflow/tpu
Commit Name: 0638b9c86cfec273b2e5799aea281ffa74d9161d
Time: 2020-05-12
Author: pengchong@google.com
File Name: models/official/detection/modeling/maskrcnn_model.py
Class Name: MaskrcnnModel
Method Name: _build_outputs
Project Name: tensorflow/tpu
Commit Name: 0638b9c86cfec273b2e5799aea281ffa74d9161d
Time: 2020-05-12
Author: pengchong@google.com
File Name: models/official/detection/modeling/shapemask_model.py
Class Name: ShapeMaskModel
Method Name: _build_outputs