Skip to content

Commit eabd57f

Browse files
committed
Move tensorboard instructions
1 parent 82b3040 commit eabd57f

File tree

1 file changed

+20
-19
lines changed

1 file changed

+20
-19
lines changed

solution.py

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,25 +1119,8 @@ def train(
11191119
break
11201120

11211121

1122-
# %% [markdown] tags=[]
1123-
"""
1124-
The next two cells start tensorboard.
1125-
<div class="alert alert-warning">
1126-
If you are using VSCode and a remote server, you will need to forward the port to view the tensorboard. <br>
1127-
Take note of the port number was assigned in the previous cell.(i.e <code style="color: black"> http://localhost:{port_number_assigned}</code>) <br>
1128-
1129-
Locate the your VSCode terminal and select the <code style="color: black">Ports</code> tab <br>
1130-
<ul>
1131-
<li>Add a new port with the <code style="color: black">port_number_assigned</code>
1132-
</ul>
1133-
Click on the link to view the tensorboard and it should open in your browser.
1134-
</div>
1135-
<div class="alert alert-warning">
1136-
If you launched jupyter lab from ssh terminal, add <code style="color: black">--host &lt;your-server-name&gt;</code> to the tensorboard command below. <code style="color: black">&lt;your-server-name&gt;</code> is the address of your compute node that ends in amazonaws.com.
1137-
1138-
</div>
1139-
"""
1140-
1122+
# %% [markdown]
1123+
# The next two cells start tensorboard.
11411124

11421125
# %% tags=[]
11431126
# Function to find an available port
@@ -1165,6 +1148,24 @@ def launch_tensorboard(log_dir):
11651148
# Launch tensorboard and click on the link to view the logs.
11661149
tensorboard_process = launch_tensorboard("unet_runs")
11671150

1151+
# %% [markdown] tags=[]
1152+
"""
1153+
<div class="alert alert-warning">
1154+
If you are using VSCode and a remote server, you will need to forward the port to view the tensorboard. <br>
1155+
Take note of the port number was assigned in the previous cell.(i.e <code style="color: black"> http://localhost:{port_number_assigned}</code>) <br>
1156+
1157+
Locate the your VSCode terminal and select the <code style="color: black">Ports</code> tab <br>
1158+
<ul>
1159+
<li>Add a new port with the <code style="color: black">port_number_assigned</code>
1160+
</ul>
1161+
Click on the link to view the tensorboard and it should open in your browser.
1162+
</div>
1163+
<div class="alert alert-warning">
1164+
If you launched jupyter lab from ssh terminal, add <code style="color: black">--host &lt;your-server-name&gt;</code> to the tensorboard command below. <code style="color: black">&lt;your-server-name&gt;</code> is the address of your compute node that ends in amazonaws.com.
1165+
1166+
</div>
1167+
"""
1168+
11681169
# %% [markdown] tags=[]
11691170
# <div class="alert alert-block alert-info">
11701171
# <h3>Task 8: Declare and train a U-Net</h3>

0 commit comments

Comments
 (0)