ValueError: Caught ValueError in DataLoader worker process 0.
ValueError: At least one stride in the given numpy array is negative, and tensors with negative strides are not currently supported. (You can probably work around this by making a copy of your array with array.copy().)
可能原因:
某个图片使用了索引,比如img=img[...,::-1]
然后需要写成img=img[...,::-1].copy()