-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
show_image method will return an error may be a bug #2247
Comments
Thanks. Could you be more specific on which line of code in which notebook? Besides, please also share |
Thanks @COD1995 for reporting the problem and filing the issue. It really helps us improve the book. Locally I'm using Just to be double sure, I also installed Colab I was able to reproduce the problem when running on colab. Initially it seemed to be the version difference. But after further investigation, I found the root cause. Digging further, I found that a silent squeeze was introduced if the third dimension is 1 in the following PR: matplotlib/matplotlib#15090 (corresponding issue discussion matplotlib/matplotlib#15089). This is precisely the point of difference. This change was released in v3.3.0 (See release notes.). I'm surprised that the matplotlib devs did not put this change in the release highlights. Anyway, I'll send a fix for this now in the master branch. @COD1995 till then you could: Manually do the squeeze for the fix: or Upgrade your |
In TensorFlow
TypeError: Invalid shape (28, 28, 1) for image data
This error will come up when running the code
data.visualize()
in the notebook.The text was updated successfully, but these errors were encountered: