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

Inference #1

Open
AntonioArtur opened this issue Dec 17, 2021 · 5 comments
Open

Inference #1

AntonioArtur opened this issue Dec 17, 2021 · 5 comments

Comments

@AntonioArtur
Copy link

How do i get class predictions instead of embeddings?

@kkoutini
Copy link
Owner

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()

@faroit
Copy link

faroit commented Jun 6, 2022

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

kkoutini added a commit that referenced this issue Jun 7, 2022
@faroit
Copy link

faroit commented Jun 7, 2022

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

@kkoutini
Copy link
Owner

kkoutini commented Jun 9, 2022

@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.

@faroit
Copy link

faroit commented Jun 9, 2022

@kkoutini Thanks!

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

3 participants