Closed krammnic closed 1 year ago
I have the same issue
have you solved it?
I would appreciate it if you could tell me how to solve this problem
This error is an error of next() function of Python. You should edit the details of dataset.py imported in train.py
# line87
# image, text = data_loader_iter.next()
image, text = next(data_loader_iter)
# line92
# image, text = self.dataloader_iter_list[i].next()
image, text = next(self.dataloader_iter_list[i])
data_loader_iter.next() ---> next(data_loader_iter)
self.dataloader_iter_list[i].next() ---> next(self.dataloader_iter_list[i])
data_loader_iter.next()--->next(data_loader_iter)
PyTorch version: 1.13.0.dev20220810+cu116 Train command: python train.py --train_data data_lmdb_release/training/MJ/MJ_train --valid_data data_lmdb_release/training/MJ/MJ_valid --select_data MJ-MJ --batch_ratio 0.5-0.5 --Transformation TPS --FeatureExtraction ResNet --SequenceModeling BiLSTM --Prediction Attn Full log: