Open Hide927 opened 1 year ago
When using Python 3.9.0, the following error will occur:
AttributeError: '_SingleProcessDataLoaderIter' object has no attribute 'next'
change line 260 target_inputs, _ = iter_target.next() in utils/train_utils_combines.py to target_inputs, _ = next(iter_target)
target_inputs, _ = iter_target.next()
utils/train_utils_combines.py
target_inputs, _ = next(iter_target)
Thanks for your effort! This code helped me a lot : )
Problem:
When using Python 3.9.0, the following error will occur:
AttributeError: '_SingleProcessDataLoaderIter' object has no attribute 'next'
Solution:
change line 260
target_inputs, _ = iter_target.next()
inutils/train_utils_combines.py
totarget_inputs, _ = next(iter_target)
Thanks for your effort! This code helped me a lot : )