Open rabiaali95 opened 4 years ago
Hi, a simple solution would be to add a .copy() to all of the output of rotate_img
To return np.flipud(...),copy() return np.fliplr(...).copy() return np.transpose(...).copy()
For more details of this problem, you can check this thread from the pytorch form
In dataloader.py when preparing rotated images rotated_imgs = [
the following error arises. ValueError: some of the strides of a given numpy array are negative. This is currently not supported, but will be added in future releases.
How to solve this error?