I am creating an ObjectItemList and running into very slow loading of each batch. x,y = next(iter(dl))
takes upwards of 1 minute for each batch, even when the batch size is small (16).
This slowness shows up in calls such as show_batch(), show_results() and training in each epoch. Am I missing something? Using 64GB RAM, i7 Extreme processor and GP100 GPU.
Rohid.
I have the same issue.
It takes about a 40 sec in my case to fetch a batch.
But I do not understand what have you done to solve it.
num_workers=0 is already there
Would you have a minute to share how exactly I need to modify basic_data.py?
This explains a lot! I assumed the speed I was getting in windows was normal until I tried fastai in Ubuntu on my system on the exact same notebook, and it ran / trained ~3x faster.
On my hardware, your fix took an unet / resnet101 128x128x3 BS = 8 epoch from around 3:10 to 1:25. I get around :55 in ubuntu on the same hardware, but this is at least more reasonable on windows.