分享

Tensorboard 输出特征图 featuremap tf.split

 雪柳花明 2017-04-14

tf.summary.image(name, tensor, max_outputs=3, collections=None)


Tensor必须为4个维度:

[batch_size, height, width, channels] 且,通道数可以为1,3,4:

  • 1: tensor is interpreted as Grayscale.
  • 3: tensor is interpreted as RGB.
  • 4: tensor is interpreted as RGBA.

  • name: A name for the generated node. Will also serve as a series name in TensorBoard.
  • tensor: A 4-D uint8 or float32 Tensor of shape [batch_size, height, width, channels] where channels is 1, 3, or 4.
  • max_outputs: Max number of batch elements to generate images for.
  • collections: Optional list of ops.GraphKeys. The collections to add the summary to. Defaults to [_ops.GraphKeys.SUMMARIES]

Returns:

A scalar Tensor of type string. The serialized Summary protocol buffer.


 
 


之后的操作,就是同其他的summary,通过FileWriter写入磁盘。


通过tensorboard看图

如下所示: 
 



    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多