meta-dataset
meta-dataset copied to clipboard
Using Dataset raised ValueError in episodic mode
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!
Any solutions to this problem?