Skip to content

Instantly share code, notes, and snippets.

@jcreinhold
Created January 3, 2019 15:21
Show Gist options
  • Save jcreinhold/1c37dc33f501fc697c21890e45e22583 to your computer and use it in GitHub Desktop.
Save jcreinhold/1c37dc33f501fc697c21890e45e22583 to your computer and use it in GitHub Desktop.
databunch example definiton for fastai
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