GithubHelp home page GithubHelp logo

Comments (4)

JeffC0628 avatar JeffC0628 commented on August 16, 2024 1

that's the point I missed, it's better now, thanks

from ast.

YuanGongND avatar YuanGongND commented on August 16, 2024

Hi Jeff,

Thanks. Which part of the output makes you think it is not correct?

There might be other things - but I noticed that you didn't normalize your fbank, which will likely lead to wrong results. If you use the AudioSet pretrained model, please use:

fbank = (fbank - (-4.2677393)) / (4.5689974 * 2) before returning fbank.

Also, it is highly encouraged to set audioset_pretrain=True when initialize the AST model rather than manually load state_dict. It should be fine in your case, but if your target length is not 1024, the first method will automatically adjust the positional embedding for you.

Please let me know if that helps.

-Yuan

from ast.

tsw123tsw avatar tsw123tsw commented on August 16, 2024

Hi, Why do you switch torchaudio backend for interence #torchaudio.set_audio_backend("soundfile") ?

from ast.

YuanGongND avatar YuanGongND commented on August 16, 2024

@tsw123tsw

I guess it might related to some system package. But it is really not necessary, our official inference sample does not switch the backend. https://colab.research.google.com/github/YuanGongND/ast/blob/master/colab/AST_Inference_Demo.ipynb

-Yuan

from ast.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.