Git Product home page Git Product logo

Comments (5)

aijianiula0601 avatar aijianiula0601 commented on May 3, 2024

Thank you for your jobs.
The readme.md show the decoder time-consuming is
combined_model_and_conditioning stats for generating 2000 frames of audio, max: 13173 us, min: 9463 us, mean: 9629 us, stdev: 270.788.
which means one frame(40ms) consume 9.463ms. But the log printed in my android app is
combined_model_and_conditioning stats for generating 2000 frames of audio, max: 65081 us, min: 53070 us, mean: 54055 us, stdev: 872.812.
which means one frame(40ms) consume 54.055ms.
The result make me confused. Why such a big difference?

from lyra.

mchinen avatar mchinen commented on May 3, 2024

What type of device are you using? As the doc says the numbers reported are for a Pixel 4.

from lyra.

aijianiula0601 avatar aijianiula0601 commented on May 3, 2024

I test it in xiaomi max3, android 10 ,the cpu is arm64-v8a and Linux, both of them consume about 50ms per frame.

from lyra.

yeroro avatar yeroro commented on May 3, 2024

I test it in xiaomi max3, android 10 ,the cpu is arm64-v8a and Linux, both of them consume about 50ms per frame.

Thank you for your report. We had not tested on Mi Max3. The lowest-end phone that we tested internally is Pixel1, which is still capable of decoding in real time (<40ms time to decode a 40ms frame). Unfortunately Mi Max3's Qualcomm Snapdragon 636 processor is slower than Pixel1's Snapdragon 821.

However, there is still chance for Max3 to be able to decode in real time, by using the fixed point representation (which could give you at most a 2X speedup). This is done by supplying --copt=-DUSE_FIXED16 in the building command. For example for the android app,

bazel build android_example:lyra_android_example --config=android_arm64 --copt=-DBENCHMARK --copt=-DUSE_FIXED16

Let us know if that works for you, and it would be great if you can share the benchmark results.

from lyra.

aluebs avatar aluebs commented on May 3, 2024

The new Lyra 1.2.0 release should give another 5x speed-up.

from lyra.

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.