Shreyas Nc
12/08/2022, 1:09 PMimageset:
type: PartitionedDataSet
dataset: {
"type": pillow.ImageDataSet
}
path: <path_to_data>
filename_suffix: ".jpg"
getting below error:
kedro.io.core.DataSetError:
Object 'ImageDataSet' cannot be loaded from 'kedro.extras.datasets.pillow'. Please see the documentation on how to install relevant dependencies for kedro.extras.datasets.pillow.ImageDataSet:
<https://kedro.readthedocs.io/en/stable/kedro_project_setup/dependencies.html>.
Failed to instantiate DataSet 'imageset' of type 'kedro.io.partitioned_dataset.PartitionedDataSet'.
kedro.framework.cli.utils.KedroCliError:
Object 'ImageDataSet' cannot be loaded from 'kedro.extras.datasets.pillow'. Please see the documentation on how to install relevant dependencies for kedro.extras.datasets.pillow.ImageDataSet:
<https://kedro.readthedocs.io/en/stable/kedro_project_setup/dependencies.html>.
Failed to instantiate DataSet 'imageset' of type 'kedro.io.partitioned_dataset.PartitionedDataSet'.
Run with --verbose to see the full exception
Error:
Object 'ImageDataSet' cannot be loaded from 'kedro.extras.datasets.pillow'. Please see the documentation on how to install relevant dependencies for kedro.extras.datasets.pillow.ImageDataSet:
<https://kedro.readthedocs.io/en/stable/kedro_project_setup/dependencies.html>.
Failed to instantiate DataSet 'imageset' of type 'kedro.io.partitioned_dataset.PartitionedDataSet'.
datajoely
12/08/2022, 1:48 PMpip install kedro[pillow.ImageDataSet]
Sean Westgate
12/08/2022, 1:58 PMimageset:
type: pillow.ImageDataSet
filepath: folder/to/file.jpg
I haven't used this dataset before though so not sure if there are any special args needed. But this is the general layout.
Edit: unless you want to use it as a partitioned dataset in which case your syntax is ok.Shreyas Nc
12/08/2022, 2:13 PMdatajoely
12/08/2022, 2:14 PMfrom <http://kedro.io|kedro.io> import PartitionedDataSet
and from kedro.datasets.pillow import ImageDataSet