I just finished Lesson 1 and had a quick API question:
The ImageDataBunch methods from_name_re, from_name_func, from_lists all require a path argument.
However, these methods also require the argument fnames, which is a list of fully-qualified filepaths to each image. fnames already provides all the information needed to find the entire dataset, so what is path used for?
After reading the source code, my current understanding is that path is a required property of the DataBunch parent class, since methods like DataBunch.save() will save directly to path.
Additionally, the Learner class usually copiesLearner.path from its data.path. This is used for things like Learner.save(), Learner.load(), and Learner.export(), which write toself.path/self.model_dir or just self.path.