How does one keep FunASR commandline from trying to find model online? #2560
|
Hi all. I got FunASR working in an Ubuntu 22.04.5, but it's not exact fast or future-proof: every single time I run the commandline tool, it tries to search online for the model / makes an online search, despite me pointing to the cache folder. If I remove internet connection from the PC, it fails and does not run SR on any audio file. How does one prevent FunASR commandline from going online? |
Replies: 1 comment
|
Use the complete local model directory and disable both update checks. On current FunASR, the legacy Hydra CLI is the entry point that accepts an arbitrary model path: export HF_HUB_OFFLINE=1
export TRANSFORMERS_OFFLINE=1
funasr-hydra \
++model=/absolute/path/to/the/model-directory \
++input=/absolute/path/to/audio.wav \
++hub=ms \
++device=cpu \
++disable_update=true \
++check_latest=falseThe model path must be a directory containing the checkpoint and its configuration/resources, for example: Do not point The two flags serve different purposes:
The current short I verified this exact command against current Loader behavior: local directory and |
Use the complete local model directory and disable both update checks. On current FunASR, the legacy Hydra CLI is the entry point that accepts an arbitrary model path:
The model path must be a directory containing the checkpoint and its configuration/resources, for example:
Do not point
++modelatmodel.ptitself or only at the parent cache root.The two flags serve different purposes: