-
Notifications
You must be signed in to change notification settings - Fork 9
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
Sampling from episodic loader gives error - "Key image doesn't exist (select from [])!" #19
Comments
Recently, I also found out that the error seems to originate from the utils.py (https://github.com/mboudiaf/pytorch-meta-dataset/blob/master/src/datasets/utils.py) file - sometimes, my program would hang after going into an infinite loop in cycle_ and eventually crashes with the above error. So basically this is what happens: First, in https://github.com/mboudiaf/pytorch-meta-dataset/blob/master/src/datasets/pipeline.py the code attempts to fetch a sample from a class, using
But, in the function cycle_ in utils.py the code tries to yield the next sample in the iterator, and if not, it will attempt to reset the iterator. So the code looked like this:
The issue I think is happening is that there is some iteration where the class iterable is empty (something like As such I am wondering if I need to reinstall the files for meta-dataset? Or is there an issue with the code I'm running? |
@mboudiaf I'm also interested in this |
When sampling from the episodic loader, all usually goes fine until I get the following error:
Just for info - I used an older version of your repo (https://github.com/mboudiaf/pytorch-meta-dataset/tree/c6d6922003380342ab2e3509425d96307aa925c5). I am sampling from the episodic loader. I use
Do you know what may be causing the
KeyError: "Key image doesn't exist (select from [])!"
StopIteration error? For the above error, I am setting 5-way 15-shots for train and 5-way 5-shot for test/validation, and meta_batch_size 2 for train and 4 for test/val.EDIT: sometimes I'm also sampling from the episodic loader and encounter an infinite loop.
Thanks a lot in advance!
The text was updated successfully, but these errors were encountered: