Skip to content

Commit

Permalink
notebook to test
Browse files Browse the repository at this point in the history
Signed-off-by: OeslleLucena <oeslle.lucena@gmail.com>
  • Loading branch information
OeslleLucena committed Oct 17, 2023
1 parent 4d0ba58 commit 38f9e21
Showing 1 changed file with 10 additions and 43 deletions.
53 changes: 10 additions & 43 deletions bundle/05_spleen_segmentation_lightning.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,7 @@
"end_time": "2023-10-16T14:56:36.558682685Z",
"start_time": "2023-10-16T14:56:36.528064430Z"
},
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
"collapsed": false
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -242,10 +239,7 @@
"cell_type": "markdown",
"id": "60ee968cb538d983",
"metadata": {
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
"collapsed": false
},
"source": [
"# Scripts for training and evaluation\n",
Expand All @@ -263,10 +257,7 @@
"end_time": "2023-10-16T14:45:29.696772196Z",
"start_time": "2023-10-16T14:45:28.802667684Z"
},
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
"collapsed": false
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -294,9 +285,6 @@
"start_time": "2023-10-16T14:45:39.031364249Z"
},
"collapsed": false,
"jupyter": {
"outputs_hidden": false
},
"lines_to_next_cell": 2
},
"outputs": [],
Expand Down Expand Up @@ -401,9 +389,6 @@
"id": "92e303feb8d4edca",
"metadata": {
"collapsed": false,
"jupyter": {
"outputs_hidden": false
},
"lines_to_next_cell": 0
},
"source": [
Expand All @@ -419,10 +404,7 @@
"end_time": "2023-10-16T14:45:48.900509600Z",
"start_time": "2023-10-16T14:45:48.887211086Z"
},
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
"collapsed": false
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -450,10 +432,7 @@
"cell_type": "markdown",
"id": "eaf81ea7-9ea3-4548-a32e-992f0b9bc0ab",
"metadata": {
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
"collapsed": false
},
"source": [
"## Training\n",
Expand All @@ -469,10 +448,7 @@
"end_time": "2023-10-16T14:55:44.372511589Z",
"start_time": "2023-10-16T14:55:44.304832953Z"
},
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
"collapsed": false
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -597,10 +573,7 @@
"cell_type": "markdown",
"id": "de752181-80b1-4221-9e4a-315e5f7f22a6",
"metadata": {
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
"collapsed": false
},
"source": [
"We can now train as normal to replicate the original code. For demonstration purpose, we set `max_epochs=1`."
Expand All @@ -615,10 +588,7 @@
"end_time": "2023-10-16T14:57:13.955241252Z",
"start_time": "2023-10-16T14:57:05.329343826Z"
},
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
"collapsed": false
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -661,10 +631,7 @@
"cell_type": "markdown",
"id": "bbf58fac-b6d5-424d-9e98-1a30937f2116",
"metadata": {
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
"collapsed": false
},
"source": [
"## Evaluation\n"
Expand Down Expand Up @@ -752,7 +719,7 @@
" num_workers: 4\n",
"\n",
" \n",
"# loads the weights from the given file (which needs to be set on the command line) then calls \"evaluate\"\n",
"# loads the weights from the given file (which needs to be set on the command line) then calls \"evaluate\" script\n",
"evaluate:\n",
"- '$evaluate(@lightninig_param,@ckpt_file, @val_dl)'"
]
Expand Down

0 comments on commit 38f9e21

Please sign in to comment.