public
loadtaskdata
— function
loadtaskdata(dir, Task)
loadtaskdata(dir, method::LearningMethod{Task})
Load a task data container for LearningTask
Task
stored in dir
in a canonical format.
loadtaskdata(dir, ImageClassificationTask; [split = false])
Load a data container for ImageClassificationTask
with observations
(input = image, target = class)
.
If split
is true
, returns a tuple of the data containers split by
the name of the grandparent folder.
dir
should contain the data in the following canonical format:
- dir
- split (e.g. “train”, “valid”…)
- class (e.g. “cat”, “dog”…)
- image32434.{jpg/png/…}
- …
- …
- class (e.g. “cat”, “dog”…)
- …
- split (e.g. “train”, “valid”…)
loadtaskdata(dir, ImageSegmentationTask; [split = false])
Load a data container for ImageSegmentationTask
with observations
(input = image, target = mask)
.
If split
is true
, returns a tuple of the data containers split by
the name of the grandparent folder.