Skip to content

Commit d24a090

Browse files
author
Virginia
committed
Modify autoencoderkl as per #1924.
Signed-off-by: Virginia Fernandez <[email protected]>
1 parent 3617388 commit d24a090

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

generation/3d_autoencoderkl/3d_autoencoderkl_tutorial.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@
178178
"metadata": {},
179179
"outputs": [],
180180
"source": [
181+
"channel = 0 # 0 = Flair\n",
182+
"assert channel in [0, 1, 2, 3], \"Choose a valid channel\"\n",
181183
"all_transforms = [\n",
182184
" transforms.LoadImaged(keys=[\"image\"]),\n",
183185
" transforms.EnsureChannelFirstd(keys=[\"image\"]),\n",
@@ -207,8 +209,6 @@
207209
}
208210
],
209211
"source": [
210-
"channel = 0 # 0 = Flair\n",
211-
"assert channel in [0, 1, 2, 3], \"Choose a valid channel\"\n",
212212
"# Training\n",
213213
"train_ds = DecathlonDataset(\n",
214214
" root_dir=root_dir,\n",
@@ -785,7 +785,7 @@
785785
"name": "python",
786786
"nbconvert_exporter": "python",
787787
"pygments_lexer": "ipython3",
788-
"version": "3.12.0"
788+
"version": "3.10.15"
789789
}
790790
},
791791
"nbformat": 4,

0 commit comments

Comments
 (0)