Comments (6)
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.
I tried following the ESPnet zoo documentation:
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.
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.
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.
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.
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)
- Error when test ASR HOT 1
- Update PYPI HOT 3
- Is there a Mandarin multi-speaker pretrained model? HOT 1
- ASR demo multiple threads HOT 1
- Request for a default data folder for fallback HOT 2
- How to get the decoding result scores from HOT 4
- Is it possible to upload some pretrained models of tacotron2 for the libritts dataset? HOT 2
- Uploading ESPnet2 model to Zenodo HOT 6
- CSJ's pretrained conformer-based ASR model on zenodo HOT 1
- 'Speech2Text' has no attribute 'from_pretrained' HOT 6
- Using an original model trained in espnet1 HOT 6
- ModuleNotFoundError: No module named 'espnet_model_zoo.downloader'; 'espnet_model_zoo' is not a package HOT 1
- Missing getitem on huggingface page:
- TypeError: init() got an unexpected keyword argument 'train_config' HOT 1
- librosa.util.exceptions.ParameterError: Window size mismatch: 512 != 400 when using streaming transformer model HOT 2
- FileNotFoundError HOT 4
- Redundant ljspeech vits models HOT 3
- Huggingface downloader / cache, offline mode HOT 1
- I want to add an original model to "table.csv", but it says I don't have permission and I can't push.
- installing on mac silicon py 3.11.4 - sentencepiece building HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from espnet_model_zoo.