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

Classifier only returning one class. #102

Open
palatos opened this issue Nov 15, 2020 · 2 comments
Open

Classifier only returning one class. #102

palatos opened this issue Nov 15, 2020 · 2 comments

Comments

@palatos
Copy link

palatos commented Nov 15, 2020

I have tested two different models available on this repository, and they both return class 2 (covid) for just about any input I use, from any of the common covid or CXR pneumonia datasets being used right now.
I know there is a similar issue open, but I thought I'd reinforce this and perhaps ask for the repository to have some easy way to reproduce results.
On the Results section of README, do the [100 Covid] tests mean the network was tested on 100 covid images? Are we sure the network is not just outputting Covid 90% of the time regardless of the inputs?

I believe in the interest of replicating these results it would be important to test this further, or maybe explain why this problem is happening. The inference code only includes a 1./255 normalization as preprocessing. Is there any other aditional preprocessing perhaps missing?

@haydengunraj
Copy link
Collaborator

Hi, thanks for bringing this issue up. We're looking into it, but to help us out could you point us to the names/locations of the images you're using so that we can replicate the problem and investigate further?

@palatos
Copy link
Author

palatos commented Nov 19, 2020

Thank you so much for the answer. I prepared a notebook with an example of what I've been trying.
https://github.com/palatos/mynotes/blob/main/weight-tests.ipynb
For the images I cloned https://github.com/agchung/Actualmed-COVID-chestxray-dataset.
For the weights I used the COVIDNet-CXR4-A checkpoint available in the README of this repo.

You'll notice the very high amount of covid predictions. I think I'm doing all the same steps as the original code, on that notebook.

Please let me know if I can do anything else to help.

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