Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Dataset raised ValueError in episodic mode #118

Open
SevenFo opened this issue Mar 14, 2023 · 1 comment
Open

Using Dataset raised ValueError in episodic mode #118

SevenFo opened this issue Mar 14, 2023 · 1 comment

Comments

@SevenFo
Copy link

SevenFo commented Mar 14, 2023

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!

@PastaAddict
Copy link

Any solutions to this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants