Trying to understand different behaviors of validation and training loader in pascal and pascal-multi notebook.
Every time, I execute
x,y=next(iter(md.trn_dl)) ; show_img(md.trn_ds.denorm(to_np(x)));
I could see different “x” and “y” . If I am not wrong then that how iterator should give us next “x” and “y”. But this is not true for “md.val_dl”.
It does not matter how many times i executed
x,y=next(iter(md.val_dl)) ; show_img(md.val_ds.denorm(to_np(x)));
value of “x” and “y” does not change. It does not iterate through all validation dataset.
Can someone explain me this behavior?