Running on Google Colab
Closed this issue · 1 comments
madiltalay commented
Dear Sir,
I am trying to run the code on google colab, but it seems to be slow. I wonder whether it is me being impatient or is it due to the way mini_imagenet.py is coded.
I wanted to ask which of the two options is faster?
- accessing the images directly from folders
- converting the dataset into some other format like pickle/hdf5 etc
And if the second option is better, how do I convert to that?
Thanks
yinboc commented
Thanks for the question.
I am not sure since I didn't try other methods of reading. If you want a faster reading, maybe it could be tried to store data in memory (if it is sufficient), that is, to store images in data[i] instead of paths.