Hi
I write a dataset class, which has a dictionary called image_pool. Each time the getitem function is called, I will first check whether the image exists in the pool. If not, load from the disk and save it into the pool. However, i find that, in the second iteration the dictionary becomes empty and so on in all later iterations. What is the reason?