Skip to content

Commit

Permalink
Merge branch 'main' into add-trt-config
Browse files Browse the repository at this point in the history
  • Loading branch information
yiheng-wang-nv authored Feb 7, 2025
2 parents baaad26 + f1de38f commit b6d0b5d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions federated_learning/appfl/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Federated learning with APPFL

The Advanced Privacy Preserving Federated Learning framework, [APPFL](https://github.com/APPFL/APPFL), provides an example on how to use its `MonaiTrainer` to train federated learning models using MONAI's [FL components](https://docs.monai.io/en/latest/fl.html). The tutorial is available at [here](https://appfl.ai/en/latest/tutorials/examples_monai.html).
6 changes: 3 additions & 3 deletions generation/3d_autoencoderkl/3d_autoencoderkl_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@
"metadata": {},
"outputs": [],
"source": [
"channel = 0 # 0 = Flair\n",
"assert channel in [0, 1, 2, 3], \"Choose a valid channel\"\n",
"all_transforms = [\n",
" transforms.LoadImaged(keys=[\"image\"]),\n",
" transforms.EnsureChannelFirstd(keys=[\"image\"]),\n",
Expand Down Expand Up @@ -207,8 +209,6 @@
}
],
"source": [
"channel = 0 # 0 = Flair\n",
"assert channel in [0, 1, 2, 3], \"Choose a valid channel\"\n",
"# Training\n",
"train_ds = DecathlonDataset(\n",
" root_dir=root_dir,\n",
Expand Down Expand Up @@ -785,7 +785,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.0"
"version": "3.10.15"
}
},
"nbformat": 4,
Expand Down

0 comments on commit b6d0b5d

Please sign in to comment.