我正在阅读faster-rcnntensorflow 模型的代码。我对使用tf.stop_gradient.
考虑以下代码片段:
if self._is_training:
proposal_boxes = tf.stop_gradient(proposal_boxes)
if not self._hard_example_miner:
(groundtruth_boxlists, groundtruth_classes_with_background_list, _,
groundtruth_weights_list
) = self._format_groundtruth_data(true_image_shapes)
(proposal_boxes, proposal_scores,
num_proposals) = self._sample_box_classifier_batch(
proposal_boxes, proposal_scores, num_proposals,
groundtruth_boxlists, groundtruth_classes_with_background_list,
groundtruth_weights_list)
Run Code Online (Sandbox Code Playgroud)
更多代码在这里。我的问题是:如果tf.stop_gradient没有设置为会发生什么proposal_boxes?
python object-detection tensorflow tensorflow-model-analysis