You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
train.py中的train_epoch里
for i, (images, labels, training_mask) in enumerate(train_loader):
改成
for i, mydatas in enumerate(train_loader):
(images, labels, training_mask) = mydatas
即可解决
The text was updated successfully, but these errors were encountered:
感谢作者提供的优秀代码,在训练过程中我遇到一旦出现Loss小于0.4,运行一次测试集上的测试后,代码就会阻塞,无法继续训练。在对问题进行追踪后,我发现是DataLoader的写法有问题,导致在ubuntu上的多线程阻塞。解决方法:
for i, (images, labels, training_mask) in enumerate(train_loader):
改成
for i, mydatas in enumerate(train_loader):
(images, labels, training_mask) = mydatas
即可解决
The text was updated successfully, but these errors were encountered: