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

Adding additional models with argument #3

Open
jacksongoode opened this issue Sep 20, 2020 · 3 comments
Open

Adding additional models with argument #3

jacksongoode opened this issue Sep 20, 2020 · 3 comments

Comments

@jacksongoode
Copy link

I see within inference.py...

 # Model
        if model is None:
            self.model = Cnn14(sample_rate=32000, window_size=1024, 
                hop_size=320, mel_bins=64, fmin=50, fmax=14000, 
                classes_num=self.classes_num)
        else:
            self.model = model

But I was wondering if you could include the possibility of adding other models to your model.py? I am attempting to use the lightweight MobileNetV2.

@jacksongoode
Copy link
Author

I managed to copy the required functions from the models.py defined in your audio_taggin_ccn repo, but I am not getting any output from the example described in the readme of this repo.

(clipwise_output, embedding) = at.inference(audio)

Does this print anything on its own? Or does it need to be called within print?

@jacksongoode
Copy link
Author

I was able to get it working checking out your example.py. Really wonderful stuff and these lightweight models are particularly useful in real-time environments. I would include these functions (in example.py) within the pip package so that it's a little more intuitive to run as a function simply.

@qiuqiangkong
Copy link
Owner

Thanks! We will consider to put the MobileNet to the repo.

@jacksongoode jacksongoode changed the title Selecting model to use Adding additional models with argument Sep 25, 2020
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