Skip to content
This repository was archived by the owner on Feb 13, 2026. It is now read-only.

Using Dataset raised ValueError in episodic mode #118

@SevenFo

Description

@SevenFo

Follow notebook “Intro_to_Metadataset.ipynb” to use dataset.
Raised ValueError as I iterate over dataset (in Using Dataset section), when only sampled data from ilsvrc_2012 dataset in episodic mode,
Detailed error message: ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (113,) + inhomogeneous part.

To prove that something wrong with ilsvrc_2012 dataset:
modify

ALL_DATASETS = ['aircraft', 'cu_birds', 'dtd', 'fungi', 'ilsvrc_2012',
                'omniglot', 'quickdraw', 'vgg_flower']

to

ALL_DATASETS = ['ilsvrc_2012']

and

use_dag_ontology_list = [True]

when execute

idx, (episode, source_id) = next(iterate_dataset(dataset_episodic, 1))

python raise ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (113,) + inhomogeneous part.

However, once set use_dag_ontology_list to [False], The code works perfectly.

any help would be appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions