Skip to content

Commit 8779247

Browse files
authored
1486 image dataset fix (Project-MONAI#1487)
Fixes Project-MONAI#1486 customized Compose in image_dataset.ipynb is updated in this PR according to Project-MONAI/MONAI#6878 ### Checks <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [ ] Avoid including large-size files in the PR. - [ ] Clean up long text outputs from code cells in the notebook. - [ ] For security purposes, please check the contents and remove any sensitive info such as user names and private key. - [ ] Ensure (1) hyperlinks and markdown anchors are working (2) use relative paths for tutorial repo files (3) put figure and graphs in the `./figure` folder - [ ] Notebook runs automatically `./runner.sh -t <path to .ipynb file>` Signed-off-by: Wenqi Li <[email protected]>
1 parent c4ff999 commit 8779247

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/image_dataset.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
],
137137
"source": [
138138
"class TestCompose(Compose):\n",
139-
" def __call__(self, data, meta):\n",
139+
" def __call__(self, data, meta, **_kwargs):\n",
140140
" data = self.transforms[0](data) # ensure channel first\n",
141141
" data = self.transforms[1](data) # spacing\n",
142142
" meta = data.meta\n",
@@ -192,7 +192,7 @@
192192
"name": "python",
193193
"nbconvert_exporter": "python",
194194
"pygments_lexer": "ipython3",
195-
"version": "3.8.10"
195+
"version": "3.9.16"
196196
}
197197
},
198198
"nbformat": 4,

0 commit comments

Comments
 (0)