google-research / meta-dataset

A dataset of datasets for learning to learn from few examples
Apache License 2.0
761 stars 139 forks source link

I am trying to load just the aircrafts dataset but after two episodes it stops and I get the error: self.base_path = self.dataset_spec.path AttributeError: 'str' object has no attribute 'path' #42

Open kiranikram opened 4 years ago

kiranikram commented 4 years ago

File "/Users/ikram/Desktop/CLASSIFICATION/MetaDatasets/meta-dataset/meta_dataset/data/pipeline.py", line 389, in make_multisource_episode_pipeline num_to_take_for_dataset) File "/Users/ikram/Desktop/CLASSIFICATION/MetaDatasets/meta-dataset/meta_dataset/data/reader.py", line 207, in init

lamblin commented 4 years ago

It looks like the dataset_spec you are passing to make_..._pipeline is just a string, instead of an instance of a DatasetSpecification class.

Are you using meta_dataset.data.dataset_spec.load_dataset_spec() to load the object from the dataset directory, like in the "Reading datasets" section of Intro_to_Metadataset.ipynb?