From d5434aea8dcb9bb4be1af58f760ad068bcea7fac Mon Sep 17 00:00:00 2001 From: "Jean-Luc Parouty Jean-Luc.Parouty@simap.grenoble-inp.fr" <paroutyj@f-dahu.u-ga.fr> Date: Sun, 12 Jan 2020 22:08:29 +0100 Subject: [PATCH] Tensorboard cooking... --- GTSRB/99 Run-Tensorboard.ipynb | 121 ++++++++++++++++++++++++++++++--- 1 file changed, 112 insertions(+), 9 deletions(-) diff --git a/GTSRB/99 Run-Tensorboard.ipynb b/GTSRB/99 Run-Tensorboard.ipynb index 76df1c0..162e91a 100644 --- a/GTSRB/99 Run-Tensorboard.ipynb +++ b/GTSRB/99 Run-Tensorboard.ipynb @@ -21,11 +21,54 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 220, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Tensorbord started with pid 84593\n" + ] + } + ], + "source": [ + "%%bash\n", + "tensorboard_start --logdir ./run/logs" + ] + }, + { + "cell_type": "code", + "execution_count": 225, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Tensorboard process not found...\n" + ] + } + ], + "source": [ + "%%bash\n", + "tensorboard_stop" + ] + }, + { + "cell_type": "code", + "execution_count": 79, "metadata": {}, "outputs": [], "source": [ "%%bash\n", + "\n", + "# ---- Port number, \n", + "PORT_JPY=\"$(id -u)\"\n", + "PORT_TSB=\"$(( $PORT_J + 10000 ))\"\n", + "HOST_G=\"$(hostname)\"\n", + "SSH_CMD=\"/usr/bin/ssh -NL 8888:$HOST_G:$PORT_J -L 6006:$HOST_G:$PORT_T dahu.ciment\"\n", + "\n", "tensorboard --port 21277 --host 0.0.0.0 --logdir ./run/logs &>/dev/null &" ] }, @@ -38,13 +81,41 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 223, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "84593\n" + ] + } + ], "source": [ "!echo $(ps ax | grep 'tensorboard --port 21277' | grep -v grep | awk '{print $1}')" ] }, + { + "cell_type": "code", + "execution_count": 202, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + " 83294 pts/0 Ss+ 0:00 /bin/sh -c ps ax | grep tensorboard\n", + " 83296 pts/0 S+ 0:00 grep tensorboard\n", + "/home/paroutyj/fidle/GTSRB\n" + ] + } + ], + "source": [ + "!ps ax | grep tensorboard\n", + "!pwd" + ] + }, { "cell_type": "markdown", "metadata": {}, @@ -54,9 +125,17 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 194, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Ended (82555)\n" + ] + } + ], "source": [ "%%bash\n", "p=\"$(ps ax | grep 'tensorboard --port 21277' | grep -v grep | awk '{print $1}')\"\n", @@ -103,7 +182,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 1, "metadata": {}, "outputs": [], "source": [ @@ -112,11 +191,35 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 3, "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/html": [ + "\n", + " <iframe id=\"tensorboard-frame-d4ce7dab09616bd4\" width=\"100%\" height=\"800\" frameborder=\"0\">\n", + " </iframe>\n", + " <script>\n", + " (function() {\n", + " const frame = document.getElementById(\"tensorboard-frame-d4ce7dab09616bd4\");\n", + " const url = new URL(\"/\", window.location);\n", + " url.port = 21277;\n", + " frame.src = url;\n", + " })();\n", + " </script>\n", + " " + ], + "text/plain": [ + "<IPython.core.display.HTML object>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], "source": [ - "notebook.start('--port 21277 --host 0.0.0.0 --logdir ./run/logs')" + "tsb.start('--port 21277 --host 0.0.0.0 --logdir ./run/logs')" ] }, { -- GitLab