GithubHelp home page GithubHelp logo

Unpacking a local model about espnet_model_zoo HOT 6 CLOSED

espnet avatar espnet commented on August 11, 2024
Unpacking a local model

from espnet_model_zoo.

Comments (6)

kamo-naoyuki avatar kamo-naoyuki commented on August 11, 2024

If you'll use local file, you don't need to archive file to zip, but directly give it to the API

from espnet_model_zoo.

Daniel-asr avatar Daniel-asr commented on August 11, 2024

I tried following the ESPnet zoo documentation:
image

The zip file I used was the one generated by the asr.sh script. Could you please expand your sentence "you don't need to archive file to zip"? I don't understand what you mean by that

Thanks

from espnet_model_zoo.

kamo-naoyuki avatar kamo-naoyuki commented on August 11, 2024

It should work if you correctly did, thus you made some mistakes definitely.
I mean you can also input file to Speech2Text directly. This is straightforward.

from espnet_model_zoo.

Daniel-asr avatar Daniel-asr commented on August 11, 2024

I tried to do that now by following the example in the asr_inference.py file: speech2text = Speech2Text("asr_config.yml", "asr.pth")
But got the same error:
RuntimeError: /home/ubuntu/espnet/egs/librispeech/asr1/<path_to_my_models_exp>/valid.acc.ave_10best.pth is a zip archive (did you mean to use torch.jit.load()?)

from espnet_model_zoo.

kamo-naoyuki avatar kamo-naoyuki commented on August 11, 2024

Why didn't you read the error? The error message is really clear.

https://github.com/pytorch/pytorch/releases/tag/v1.6.0:

The model format was changed to zip from pytorch=1.6, I guess you used pytorch>=1.6 when saving the modle, but you are using pytorch<1.6.

from espnet_model_zoo.

Daniel-asr avatar Daniel-asr commented on August 11, 2024

I used the same pytorch version (1.0.1.post2) for training (& saving the model) and for running zoo.

I avoided changing my environment as much as possible due to mismatch with other packages and scripts I have but after upgrading pytorch to 1.6.0 (and tensorboard to the latest version, as required) and after a few small fixes it worked.

from espnet_model_zoo.

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.