Skip to content

Commit

Permalink
1486 image dataset fix (Project-MONAI#1487)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
wyli committed Aug 21, 2023
1 parent ebea36e commit 0140280
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/image_dataset.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
],
"source": [
"class TestCompose(Compose):\n",
" def __call__(self, data, meta):\n",
" def __call__(self, data, meta, **_kwargs):\n",
" data = self.transforms[0](data) # ensure channel first\n",
" data = self.transforms[1](data) # spacing\n",
" meta = data.meta\n",
Expand Down Expand Up @@ -192,7 +192,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.10"
"version": "3.9.16"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 0140280

Please sign in to comment.