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

How to show every class ? #15

Open
Aaron1993 opened this issue Jul 18, 2019 · 7 comments
Open

How to show every class ? #15

Aaron1993 opened this issue Jul 18, 2019 · 7 comments

Comments

@Aaron1993
Copy link

Hi. I want to show every class color map like this, how I can to do it .thanks.
image

@zilongzhong
Copy link
Owner

zilongzhong commented Jul 19, 2019 via email

@Aaron1993
Copy link
Author

It has an error in line new_y = mask * y, the error is new_y = mask * y ValueError: operands could not be broadcast together with shapes (12518,) (21025,3)

@zilongzhong
Copy link
Owner

x = np.ravel(pred_test_conv1)

Use the following snipt after the above line:
mask = x[x==certain_class]
x= mask * x

@Aaron1993
Copy link
Author

There is the same error in x=mask * x, whether certain_class is the class number, for example certain_class==1?

@zilongzhong
Copy link
Owner

Yes, you can select which class to show.

@Aaron1993
Copy link
Author

But the error x = mask * x ValueError: operands could not be broadcast together with shapes (12518,) (21025,3) show in this line.

@zilongzhong
Copy link
Owner

zilongzhong commented Jul 22, 2019 via email

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

No branches or pull requests

2 participants