Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Fidle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Slim Karkar
Fidle
Commits
c46fc1be
Commit
c46fc1be
authored
5 years ago
by
Jean-Luc Parouty Jean-Luc.Parouty@simap.grenoble-inp.fr
Browse files
Options
Downloads
Patches
Plain Diff
sensorboard tests
parent
539d36f0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
GTSRB/03-Tracking-and-visualizing.ipynb
+227
-38
227 additions, 38 deletions
GTSRB/03-Tracking-and-visualizing.ipynb
GTSRB/03.1 Run-Tensorboard.ipynb
+170
-0
170 additions, 0 deletions
GTSRB/03.1 Run-Tensorboard.ipynb
with
397 additions
and
38 deletions
GTSRB/03-Tracking-and-visualizing.ipynb
+
227
−
38
View file @
c46fc1be
source diff could not be displayed: it is too large. Options to address this:
view the blob
.
This diff is collapsed.
Click to expand it.
GTSRB/03.1 Run-Tensorboard.ipynb
0 → 100644
+
170
−
0
View file @
c46fc1be
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"IDLE 2020 - Practical Work Module\n",
" Version : 0.1.4\n",
" Run time : Saturday 11 January 2020, 17:51:11\n",
" Matplotlib style : idle/talk.mplstyle\n",
" TensorFlow version : 2.0.0\n",
" Keras version : 2.2.4-tf\n"
]
}
],
"source": [
"import tensorflow as tf\n",
"from tensorflow import keras\n",
"from tensorflow.keras.callbacks import TensorBoard\n",
"\n",
"import numpy as np\n",
"import h5py\n",
"\n",
"from sklearn.metrics import confusion_matrix\n",
"\n",
"import matplotlib.pyplot as plt\n",
"import seaborn as sn\n",
"import os, time, random\n",
"\n",
"import idle.pwk as ooo\n",
"from importlib import reload\n",
"\n",
"ooo.init()"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"/bin/sh: 1: kill: Usage: kill [-s sigspec | -signum | -sigspec] [pid | job]... or\n",
"kill -l [exitstatus]\n"
]
}
],
"source": [
"!kill $(ps ax | grep 'tensorboard --host 0.0.0.0 --port 18529' | grep -v grep | awk '{print $1}')"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"%load_ext tensorboard"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"Reusing TensorBoard on port 18529 (pid 52695), started 0:09:42 ago. (Use '!kill 52695' to kill it.)"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"\n",
" <iframe id=\"tensorboard-frame-51bfb0d56b211687\" width=\"100%\" height=\"800\" frameborder=\"0\">\n",
" </iframe>\n",
" <script>\n",
" (function() {\n",
" const frame = document.getElementById(\"tensorboard-frame-51bfb0d56b211687\");\n",
" const url = new URL(\"/\", window.location);\n",
" url.port = 18529;\n",
" frame.src = url;\n",
" })();\n",
" </script>\n",
" "
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"%tensorboard --host 0.0.0.0 --port 18529 --logdir ./run/logs"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"tb_2020-01-11_17h44m55s\n"
]
}
],
"source": [
"!ls ./run/logs"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.5"
}
},
"nbformat": 4,
"nbformat_minor": 4
}
%% Cell type:code id: tags:
```
python
``
`
%%
Cell
type
:
code
id
:
tags
:
```
python
```
%% Cell type:code id: tags:
```
python
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras.callbacks import TensorBoard
import numpy as np
import h5py
from sklearn.metrics import confusion_matrix
import matplotlib.pyplot as plt
import seaborn as sn
import os, time, random
import idle.pwk as ooo
from importlib import reload
ooo.init()
```
%% Output
IDLE 2020 - Practical Work Module
Version : 0.1.4
Run time : Saturday 11 January 2020, 17:51:11
Matplotlib style : idle/talk.mplstyle
TensorFlow version : 2.0.0
Keras version : 2.2.4-tf
%% Cell type:code id: tags:
```
python
!kill $(ps ax | grep 'tensorboard --host 0.0.0.0 --port 18529' | grep -v grep | awk '{print $1}')
```
%% Output
/bin/sh: 1: kill: Usage: kill [-s sigspec | -signum | -sigspec] [pid | job]... or
kill -l [exitstatus]
%% Cell type:code id: tags:
```
python
%load_ext tensorboard
```
%% Cell type:code id: tags:
```
python
%tensorboard --host 0.0.0.0 --port 18529 --logdir ./run/logs
```
%% Output
%% Cell type:code id: tags:
```
python
!ls ./run/logs
```
%% Output
tb_2020-01-11_17h44m55s
%% Cell type:code id: tags:
```
python
```
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment