ERROR:ValueError: not enough values to unpack (expected 5, got 4)

  • 问题描述:
    ValueError: not enough values to unpack (expected 5, got 4)

eg:
self.train_loader1, self.train_loader2, self.val_loader, self.test_loader, self.nclass = make_data_loader(args, **kwargs)

  • 解决方案:
    期望返回值为5个,而相对应的函数获取这返回值中只有4个,所以相应改动;

你可能感兴趣的:(torch,python)