tensorbay.opendataset.Flower.loader

tensorbay.opendataset.Flower.loader.Flower17(path: str) tensorbay.dataset.dataset.Dataset[source]

Dataloader of the 17 Category Flower dataset.

The dataset are 3 separate splits. The results in the paper are averaged over the 3 splits. We just use (trn1, val1, tst1) to split it.

The file structure should be like:

<path>
    jpg/
        image_0001.jpg
        ...
    datasplits.mat
Parameters

path – The root directory of the dataset.

Raises

ModuleImportError – When the module “scipy” can not be found.

Returns

Loaded Dataset instance.

tensorbay.opendataset.Flower.loader.Flower102(path: str) tensorbay.dataset.dataset.Dataset[source]

Dataloader of the 102 Category Flower dataset.

The file structure should be like:

<path>
    jpg/
        image_00001.jpg
        ...
    imagelabels.mat
    setid.mat
Parameters

path – The root directory of the dataset.

Raises

ModuleImportError – When the module “scipy” can not be found.

Returns

Loaded Dataset instance.