-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError: some of the strides of a given numpy array are negative. This is currently not supported, but will be added in future releases. #27
Comments
Could you share the code you ran that led to this error? |
The code is :
|
What's your torch and torchvision versions? If they're outdated then you may want to update them. If that's not the issue, can you let me know what line of code is throwing the error? I can only speculate, but try providing custom transforms to from torchvision import transforms
transform = transforms.Compose([
transforms.Lambda(lambda img: img.copy()),
transforms.ToTensor(),
utils.normalize_transform()
])
dataset=core.Dataset('images/', transform=transform) |
torch : 1.4.0 Here it is the full error :
|
Could you try the solution I posted above and see if that fixes the issue? |
So i try your solution, first the program run for many hours and it didn't print anything. So i reinstall an environment and now i have this issue :
|
@PLPote That was a problem in Pillow 7.1.0, fixed in 7.1.1. Please could you upgrade and try again? |
Closing as this seems to be resolved. |
Hi,
I try to train a custom model on my machine and i get this error :
ValueError: some of the strides of a given numpy array are negative. This is currently not supported, but will be added in future releases.
I research a little bit and i saw that was an issue on Pytorch, but do you have any clue to fix that on detecto ??
My environment :
Windows
python 3.7
GPU: GeForce GTX 1050
Thank you
The text was updated successfully, but these errors were encountered: