1
I believe I found a better way to log such custom images to tensorboard making use of the tf-matplotlib. Here is how...
class TensorBoardDTW(tf.keras.callbacks.TensorBoard):
def __init__(self, **kwargs):
super(TensorBoardDTW, self).__init__(**kwargs)
self.dtw_image_summary = None
def _make_histogram_ops(self, model):
super(TensorBoardDTW, self)._make_histogram_ops(model)
tf.summary.image('dtw-cost', create_dtw_image(model.output))
One just need to overwrite the _make_histogram_ops method from the TensorBoard callback class to add the custom summary. In my case, the create_dtw_image
is a function that creates an image using the tf-matplotlib.
Regards,.
'Python Library > TensorFlow' 카테고리의 다른 글
[JNI] JNI Passing arguments 기초 (0) | 2019.09.09 |
---|---|
[Lite] 안드로이드 프로젝트 이름 변경방법 ( 스택오버플로) (0) | 2019.09.08 |
Keras 대용량 데이터 처리를 위한 Custom Generator 스택 오버플로우 글 (0) | 2019.09.08 |
tensorflowLite Android Import 방법 (0) | 2019.09.06 |
[Pycharm] '_xsrf' argument missing from POST 오류 해결법 (0) | 2019.08.29 |