LearningToCompare_FSL
LearningToCompare_FSL copied to clipboard
self.train_labels = [labels[self.get_class(x)] for x in self.train_roots] KeyError: '..\\datas\\omniglot_28x28'
self.train_labels = [labels[self.get_class(x)] for x in self.train_roots] KeyError: '..\datas\omniglot_28x28'
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
i get this error too
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])
Thank you for your reply. I've solved it following the solution I found on a Chinese forum. That was lifesaving!