{"action":"opened","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/17323","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/17323/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/17323/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/17323/events","html_url":"https://github.com/tensorflow/tensorflow/issues/17323","id":301024267,"number":17323,"title":"Save activation map for a specific convnet in the process of tf.train.MonitoredTrainingSession()","user":{"login":"anbai106","id":16743978,"avatar_url":"https://avatars0.githubusercontent.com/u/16743978?v=4","gravatar_id":"","url":"https://api.github.com/users/anbai106","html_url":"https://github.com/anbai106","followers_url":"https://api.github.com/users/anbai106/followers","following_url":"https://api.github.com/users/anbai106/following{/other_user}","gists_url":"https://api.github.com/users/anbai106/gists{/gist_id}","starred_url":"https://api.github.com/users/anbai106/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anbai106/subscriptions","organizations_url":"https://api.github.com/users/anbai106/orgs","repos_url":"https://api.github.com/users/anbai106/repos","events_url":"https://api.github.com/users/anbai106/events{/privacy}","received_events_url":"https://api.github.com/users/anbai106/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-28T13:30:35Z","updated_at":"2018-02-28T13:30:35Z","closed_at":null,"author_association":"NONE","body":"ADDING FEATURES\r\n\r\n### System information\r\n- **Have I written custom code (as opposed to using a stock example script provided in TensorFlow)**: Yes\r\n- **OS Platform and Distribution (e.g., Linux Ubuntu 16.04)**: Linux Ubuntu 16.04\r\n- **TensorFlow installed from (source or binary)**: binary\r\n- **TensorFlow version (use command below)**: ('v1.4.0-19-ga52c8d9', '1.4.1')\r\n- **Python version**:  2.7 anaconda\r\n- **Bazel version (if compiling from source)**:\r\n- **GCC/Compiler version (if compiling from source)**:\r\n- **CUDA/cuDNN version**: \r\n- **GPU model and memory**: Quadro K400\r\n- **Exact command to reproduce**:\r\n\r\n\r\n### Describe the problem\r\nI followed this tutorial from the source code of TF: **model/tutorials/image/cifar10/**, in the tutorial, you used tf.train.MonitoredTrainingSession() to log the checkpoint or tensor for future usage with TensorBoard, my question is to display the activation maps of my convnet during training process. But inside the:\r\n`while not mon_sess.should_stop():\r\n             mon_sess.run(train_op)`\r\n\r\nI can not add new tensor because the Graph is finalized. So I want to ask you how to add something like **tf.summary.image**: Pass one example image to a specific convnet  after relu, and save it as png for all the filters???\r\n\r\nI think I can easily implement this in a normal **tf.Session()**, but I am still interested if we can do it in **tf.train.MonitoredTrainingSession()**.\r\n\r\nI think that would be great for the newbie to understand what happened for our CNN.\r\n\r\nThanks in advance\r\n\r\n\r\n"}}
{"actor":{"display_login":"anbai106"}}