How to 3d visualize output layers during training phase

邮差的信 提交于 2020-01-16 08:43:29

问题


My final goal is to find a way to 3d visualize all layers during the training something like tensorSpace but real time during the training phase .

I am using tensorflow and google colab.

I managed to get each output like a tensor by creating a custom callback and creating this method

def on_train_batch_end(self, batch, logs=None):
 for i in range(len(model_inception.layers)):
   get_layer_output = K.function(inputs = self.model.layers[i].input, outputs = self.model.layers[i].output)
   print('\n Training: output of the layer {} is {} ends at {}'.format(i, get_layer_output.outputs , datetime.datetime.now().time()))

Would it be an option to save he tensors somehow and try to visualize with openGL or there is a better option ?

My full colab code copy is here https://colab.research.google.com/drive/1iMAMyE544EXcEn94kxAMngJFnshqX0pw

来源:https://stackoverflow.com/questions/59559784/how-to-3d-visualize-output-layers-during-training-phase

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!