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

self.train_labels = [labels[self.get_class(x)] for x in self.train_roots] KeyError: '..\\datas\\omniglot_28x28' #47

Open
Samlezed opened this issue Oct 10, 2021 · 4 comments

Comments

@Samlezed
Copy link

self.train_labels = [labels[self.get_class(x)] for x in self.train_roots]
KeyError: '..\datas\omniglot_28x28'

@KhanShovon
Copy link

I'm getting a similar problem. I get KeyError: '(Dataset folder directory)' just like you, for both Omniglot and miniImagenet. Could you solve it? @Samlezed

@gaoyangyang-1
Copy link

i get this error too

@gaoyangyang-1
Copy link

you can change the code like this:

from:
task_generator.py, line 74:
  def get_class(self, sample):
return os.path.join(*sample.split('/')[:-1])

to:
def get_class(self, sample):
return os.path.join(*sample.split('\')[:-1])

@KhanShovon
Copy link

Thank you for your reply. I've solved it following the solution I found on a Chinese forum. That was lifesaving!

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

No branches or pull requests

3 participants