Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 29, 2024
1 parent 78a107a commit f784a34
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 3d_segmentation/vista3d_spleen_finetune.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
" ScaleIntensityRanged,\n",
" Spacingd,\n",
" Invertd,\n",
" LoadImage\n",
" LoadImage,\n",
")\n",
"from monai.apps import download_url\n",
"from monai.networks.nets import vista3d132\n",
Expand Down Expand Up @@ -578,7 +578,7 @@
" {\"pred\": val_outputs[0], \"label_prompt\": torch.tensor(label_set[1:], device=device)}\n",
" )[\"pred\"]\n",
" _dice_metric = []\n",
" # Must loop to calculate dice for incontinuous class indexes. 0 is excluded. \n",
" # Must loop to calculate dice for incontinuous class indexes. 0 is excluded.\n",
" for i in label_set[1:]:\n",
" _dice_metric.append(\n",
" compute_dice(\n",
Expand Down Expand Up @@ -940,7 +940,7 @@
"i = 0\n",
"with torch.no_grad():\n",
" for test_data in test_org_loader:\n",
" # only plot 2 examples. \n",
" # only plot 2 examples.\n",
" if i > 1:\n",
" break\n",
" i += 1\n",
Expand Down

0 comments on commit f784a34

Please sign in to comment.