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

Heatmap generator for 2 classes #20

Open
ghost opened this issue Aug 19, 2019 · 0 comments
Open

Heatmap generator for 2 classes #20

ghost opened this issue Aug 19, 2019 · 0 comments

Comments

@ghost
Copy link

ghost commented Aug 19, 2019

Hi, I am trying to generate heatmap for X-Ray images with my own Inceptionv4 trained model. However, my problem statement doesn't have 14 classes as chexnet. Can you please tell me what changes do i need to do for binary classification?
In this part of code specifically

heatmap = None
for i in range (0, len(weights)):
    map = output[0,i,:,:]
    if i == 0: heatmap = weights[i] * map
    else: heatmap += weights[i] * map
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

0 participants