Total length of `Dataloader` across ranks is zero. Please make sure that it returns at least 1 batch

pytorch_lightning.utilities.exceptions.MisconfigurationException: Total length of `Dataloader` across ranks is zero. Please make sure that it returns at least 1 batch.

trainer.py中,下图分别为训练集、评估集的DataLoader对象,
Total length of `Dataloader` across ranks is zero. Please make sure that it returns at least 1 batch_第1张图片

data.py中,报为0的是下面这个DataLoader对象,是评估集的,

原因就是划分数据集的时候,数据集太小,全划给训练集了

你可能感兴趣的:(深度学习,pytorch,人工智能)