In an experimental commit here*
I create a VisionDataBunch
in vision/data.py
that overrides #create
and #labels_to_csv
rather than creating private functions and overwriting DataBunch’s versions of these on import
The current implementation has the major drawback that once you import
fastai.vision.data
, you can no longer use DataBunch.create
on
non-image datasets.
Additionally, this seems cleaner and easier to reason about.
If people think this is an appropriate change I’m happy to modify the existing notebooks / create a notebook for this change, but I was hesitant to go through that process if the change would be rejected.
I’m interested to hear others’ thoughts!