Created
January 3, 2019 15:21
-
-
Save jcreinhold/1c37dc33f501fc697c21890e45e22583 to your computer and use it in GitHub Desktop.
databunch example definiton for fastai
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
idb = (NiftiNiftiList.from_folder(data_dir/'t1', extensions=('.gz')) | |
.split_by_folder() | |
.label_from_func(get_y_fn) | |
.transform((tfms,tfms), tfm_y=True) | |
.databunch(bs=2)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment