GithubHelp home page GithubHelp logo

Comments (10)

EmreOzkose avatar EmreOzkose commented on May 23, 2024 1

This repo contains the first working version, but I have to do refactoring (adding OfflineASR, OfflineRecognizer, etc..). I am planning to do it in a few days.

from sherpa-onnx.

EmreOzkose avatar EmreOzkose commented on May 23, 2024

PR is here, but not been merged yet since I didn't have time to do some changes (about testing and inference scripts). However, you can use the export script for now.

from sherpa-onnx.

lucasjinreal avatar lucasjinreal commented on May 23, 2024

@EmreOzkose Hi, I only found these onnx were exported, didn't find encoder_proj.onnx or decoder_proj.onnx.

image

which needed by your onnx c++ inference code.

image

I have 2 questions:

  1. the export didn't aligned with your inference code, how to resolve it?
  2. you have a all_in_one model, in my opinion, this is useless, since we using encoder and decoder to inference, how didi u using it?

from sherpa-onnx.

lucasjinreal avatar lucasjinreal commented on May 23, 2024

@csukuangfj Hello, can u help me out on this issue? I can not get your project run.

from sherpa-onnx.

csukuangfj avatar csukuangfj commented on May 23, 2024

What have you done and what are the error messages?

from sherpa-onnx.

EmreOzkose avatar EmreOzkose commented on May 23, 2024

Hi @jinfagang , I am updating PR now. You can use export script

  1. the export didn't aligned with your inference code, how to resolve it?

Export script is updated.

  1. you have a all_in_one model, in my opinion, this is useless, since we using encoder and decoder to inference, how didi u using it?

Initially, the aim was to combine all parts into one .onnx like model.pt. There is a branch which uses only all-in-one.onnx to decode. It is written in Python. This repo uses Onnxruntime without dependency on Libtorch and I couldn't extract each model (encoder, decoder, etc..) internally. Hence models are given separately for now.

from sherpa-onnx.

lucasjinreal avatar lucasjinreal commented on May 23, 2024

@EmreOzkose thanks. now i can get proj model as well.

the all in on infefrence, from I can see: https://github.com/EmreOzkose/sherpa/blob/887ddd0924cf5c4216a8671c39b04e8e8371356d/sherpa/bin/pruned_transducer_statelessX/offline_asr.py#L298

this still using model's decoder when greedysearch. This is not convenient on onnxruntime.

from sherpa-onnx.

EmreOzkose avatar EmreOzkose commented on May 23, 2024

Offline ASR script of ONNX is https://github.com/EmreOzkose/sherpa/blob/887ddd0924cf5c4216a8671c39b04e8e8371356d/sherpa/bin/pruned_transducer_statelessX/onnx_offline_asr.py

from sherpa-onnx.

lucasjinreal avatar lucasjinreal commented on May 23, 2024

Oh, I get it. Will this also port to c++ as well?

from sherpa-onnx.

csukuangfj avatar csukuangfj commented on May 23, 2024

Please use
https://github.com/k2-fsa/icefall/blob/master/egs/wenetspeech/ASR/pruned_transducer_stateless2/export.py
to export Chinese models.

from sherpa-onnx.

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.