Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bundle/05_spleen_segmentation_lightning.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"outputs": [],
"source": [
"!python -c \"import monai\" || pip install -q \"monai-weekly[ignite,pyyaml]\"\n",
"!pip install -q pytorch-lightning~=2.0.0"
"!pip install -q pytorch-lightning>=2.1"
]
},
{
Expand Down Expand Up @@ -855,7 +855,7 @@
"execution_count": 11,
"id": "c5ba337d-a5b0-47de-9ae2-1554a2cb4f86",
"metadata": {},
"outputs": [
"outputs": [
{
"name": "stdout",
"output_type": "stream",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@
],
"source": [
"for lb in labels:\n",
" print(f\"{lb:30} {df_scene[df_scene[lb]>0].scene.nunique()}\")"
" print(f\"{lb:30} {df_scene[df_scene[lb] > 0].scene.nunique()}\")"
]
},
{
Expand Down
100 changes: 3 additions & 97 deletions computer_assisted_intervention/endoscopic_inbody_classification.ipynb

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions deep_atlas/deep_atlas_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1255,7 +1255,7 @@
"val_interval = 5\n",
"\n",
"for epoch_number in range(max_epochs):\n",
" print(f\"Epoch {epoch_number+1}/{max_epochs}:\")\n",
" print(f\"Epoch {epoch_number + 1}/{max_epochs}:\")\n",
"\n",
" seg_net.train()\n",
" losses = []\n",
Expand Down Expand Up @@ -1797,7 +1797,7 @@
"best_reg_validation_loss = float(\"inf\")\n",
"\n",
"for epoch_number in range(max_epochs):\n",
" print(f\"Epoch {epoch_number+1}/{max_epochs}:\")\n",
" print(f\"Epoch {epoch_number + 1}/{max_epochs}:\")\n",
"\n",
" # ------------------------------------------------\n",
" # reg_net training, with seg_net frozen\n",
Expand Down Expand Up @@ -2320,7 +2320,7 @@
"preview_image(det, normalize_by=\"slice\", threshold=0)\n",
"loss = lncc_loss(example_warped_image, img12[:, [0], :, :, :]).item()\n",
"print(f\"Similarity loss: {loss}\")\n",
"print(f\"number of folds: {(det<=0).sum()}\")\n",
"print(f\"number of folds: {(det <= 0).sum()}\")\n",
"\n",
"del reg_net_example_output, img12, example_warped_image\n",
"torch.cuda.empty_cache()"
Expand Down
Loading