Try without 0 from enumerate(dataloader,0) at 266
Check if you correctly can load pth files at line 263,264
Check if you correctly use transform, dataset, dataloader.
In my case, I pass dataset instance instead of DL(options.dataroot.transform,‘test’)
into dataloader instance first paramerter