Skip to content
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

Cannot handle this data type #42

Open
LYL-hub-source opened this issue Apr 29, 2022 · 3 comments
Open

Cannot handle this data type #42

LYL-hub-source opened this issue Apr 29, 2022 · 3 comments

Comments

@LYL-hub-source
Copy link

@avalonstrel
Excuse me, when I run my own data set, the following error occurs, how should I solve it?
File "/home/lyl/下载/anaconda3/envs/torch/lib/python3.6/site-packages/PIL/Image.py", line 2837, in fromarray
raise TypeError("Cannot handle this data type: %s, %s" % typekey) from e
TypeError: Cannot handle this data type: (1, 1, 1, 9), |u1

@jackhu-bme
Copy link

Same strange error now. I wonder how In could change the Image.fromarray function. I still meet this error even when I change the numpy array to np.unint8 type and check the correct shape. I am really confused about this.

@jackhu-bme
Copy link

I want to use this repo for baseline comparison, but the error is reallt confusing.

@StrideZH
Copy link

shape of mask from .pkl must be (height, width, 1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants