这个问题出现在dataloader里面.
问题解决:
原因是数据没有读进来.
检查下dataloader的类中的读取数据的代码,例如:
img = cv2.imread(img_name)
读取失败的话,会得到None.