コード例 #1
0
 def graph_fn():
     values = [0.1, 0.2, 0.3, 0.4, 0.42, 0.44, 0.46, 0.48, 0.50]
     visualization_utils.add_cdf_image_summary(values,
                                               'PositiveAnchorLoss')
     cdf_image_summary = tf.get_collection(
         key=tf.GraphKeys.SUMMARIES)[0]
     return cdf_image_summary
コード例 #2
0
ファイル: ssd_meta_arch.py プロジェクト: gustavz/tf_models
 def _summarize_anchor_classification_loss(self, class_ids, cls_losses):
   positive_indices = tf.where(tf.greater(class_ids, 0))
   positive_anchor_cls_loss = tf.squeeze(
       tf.gather(cls_losses, positive_indices), axis=1)
   visualization_utils.add_cdf_image_summary(positive_anchor_cls_loss,
                                             'PositiveAnchorLossCDF')
   negative_indices = tf.where(tf.equal(class_ids, 0))
   negative_anchor_cls_loss = tf.squeeze(
       tf.gather(cls_losses, negative_indices), axis=1)
   visualization_utils.add_cdf_image_summary(negative_anchor_cls_loss,
                                             'NegativeAnchorLossCDF')
コード例 #3
0
ファイル: ssd_meta_arch.py プロジェクト: NoPointExc/models
 def _summarize_anchor_classification_loss(self, class_ids, cls_losses):
   positive_indices = tf.where(tf.greater(class_ids, 0))
   positive_anchor_cls_loss = tf.squeeze(
       tf.gather(cls_losses, positive_indices), axis=1)
   visualization_utils.add_cdf_image_summary(positive_anchor_cls_loss,
                                             'PositiveAnchorLossCDF')
   negative_indices = tf.where(tf.equal(class_ids, 0))
   negative_anchor_cls_loss = tf.squeeze(
       tf.gather(cls_losses, negative_indices), axis=1)
   visualization_utils.add_cdf_image_summary(negative_anchor_cls_loss,
                                             'NegativeAnchorLossCDF')
コード例 #4
0
 def test_add_cdf_image_summary(self):
   values = [0.1, 0.2, 0.3, 0.4, 0.42, 0.44, 0.46, 0.48, 0.50]
   visualization_utils.add_cdf_image_summary(values, 'PositiveAnchorLoss')
   cdf_image_summary = tf.get_collection(key=tf.GraphKeys.SUMMARIES)[0]
   with self.test_session():
     cdf_image_summary.eval()
コード例 #5
0
 def test_add_cdf_image_summary(self):
   values = [0.1, 0.2, 0.3, 0.4, 0.42, 0.44, 0.46, 0.48, 0.50]
   visualization_utils.add_cdf_image_summary(values, 'PositiveAnchorLoss')
   cdf_image_summary = tf.get_collection(key=tf.GraphKeys.SUMMARIES)[0]
   with self.test_session():
     cdf_image_summary.eval()