Skip to content

How to extract the classification probability of each class? #17

Description

@Juliachang

Hi @jiwoon-ahn,

I am trying to output the classification probability of 20 classes of VGG-based model. Can I take the probabilities from infer_cls.py? (e.g.,

x = x.view(-1, 20)
)

Since in infer_cls.py, you only do forward_cam instead of forward, I am wondering if you can take the outputted probability of each class from here. My understanding is, I can only obtain the CAMs from here. If my understanding is wrong, do you have any suggestions about how to take the probability of each class of the multi-label classifier out? Thanks a lot!

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions