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

About text_probs. #26

Open
boringKey opened this issue Feb 25, 2024 · 1 comment
Open

About text_probs. #26

boringKey opened this issue Feb 25, 2024 · 1 comment

Comments

@boringKey
Copy link

Hello, thank you for your contribution to anomaly detection in the zero-shot learning domain. However, I have a question that I found in the code and I hope you can explain it. During the zero-shot process, when processing normal images, as shown in line 169 of the test.py file, text_probs[0][1] is still being used to represent semantic information. According to my understanding, text_probs[0][0] should represent the semantic information of normal images, while text_probs[0][1] should represent the semantic information of abnormal images. Therefore, when processing normal images, should the code be changed to text_probs[0][0]? Thank you very much!

@ByChelsea
Copy link
Owner

Hi, for both normal and abnormal images, text_probs[0][1] represents the probability of the image being classified as abnormal. For abnormal images, this value is relatively high, while for normal images, this value is relatively low.

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

2 participants