-
Notifications
You must be signed in to change notification settings - Fork 157
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
TypeError: Cannot handle this data type: (1, 1, 480, 640), <u2 #3
Comments
in infer.py, change Line 148 from to |
Thanks for sharing comment @Rothfeld , np.squeeze resolves this issue |
I used .squeeze() function earlier for the same issue on a single PIL image and it worked perfectly and I assumed it should resolve when trying to do for the whole image directory. But, unexpectedly, .squeeze() function doesn't resolve the issue for that part, any ideas?
Output
|
@NitishJaiswal it was working in #13 |
Need Help: KeyError Traceback (most recent call last) KeyError: ((1, 1, 10, 30), '|u1') The above exception was the direct cause of the following exception: TypeError Traceback (most recent call last) TypeError: Cannot handle this data type: (1, 1, 10, 30), |u1 |
I'm trying to implement it on my jupyter notebook, following Readme file, downloaded pretrained weights and saved it in a directory named pretrained. While running the code for predicting depth for a single pillow image (I used the test image given in the test_imgs), the predicted_depth is a numpy array with shape =[1,1,480,640]. I didn't understand why predicted_depth is 4 dimentional array. Moving further, I tried to run the code for predicting depths of all images from a directory so I again used the test_imgs directory containing classroom image and specified a target directory for storing 16-bit output. I'm getting type error, Can't handle this data type (1,1, 480, 640), <u2. Shouldn't the dimensions of the predicted depth output be a 2-dimentional array instead of 4?
Output
The text was updated successfully, but these errors were encountered: