passt_hear21 icon indicating copy to clipboard operation
passt_hear21 copied to clipboard

Inference

Open AntonioArtur opened this issue 4 years ago • 5 comments

How do i get class predictions instead of embeddings?

AntonioArtur avatar Dec 17 '21 14:12 AntonioArtur

Hi, I've added this feature in a new release 0.0.9, please update using:

pip install -e 'git+https://github.com/kkoutini/[email protected]#egg=hear21passt' 

After that you can get the logits (before the sigmoid activation) for the 527 classes, if you load the model like this:

model = load_model(mode="logits").cuda()

kkoutini avatar Dec 17 '21 15:12 kkoutini

@kkoutini this is super useful. Maybe add this to the readme

faroit avatar Jun 06 '22 09:06 faroit

@kkoutini is there a way to also load the ESC-50 pretrained models with passt_hear21?

faroit avatar Jun 07 '22 20:06 faroit

@kkoutini is there a way to also load the ESC-50 pretrained models with passt_hear21?

@faroit I added more details for fine-tuning and loading the pre-trained models on ESC-50 here and the pre-trained models can be downloaded here.

kkoutini avatar Jun 09 '22 15:06 kkoutini

@kkoutini Thanks!

faroit avatar Jun 09 '22 15:06 faroit