e1fbc0e8316dab747fbac854b15ddfd6f62f779e
.redirects.gollum
| ... | ... | @@ -39,3 +39,4 @@ latex/acro/acroパッケージを使って途中から正式名称表記を再 |
| 39 | 39 | slurm/自分が使用しているノード数を取得する.md: slurm/slurmで自分が使用しているノード数を取得する.md |
| 40 | 40 | slurm/各パーティションの最大実行時間を取得する.md: slurm/slurmで各パーティションの最大実行時間を取得する.md |
| 41 | 41 | autodesk/autocad/図面をPDFに出力すると、テキストボックスが黒で囲まれる.md: autodesk/autocad/AutoCADで図面をPDFに出力すると、テキストボックスが黒で囲まれる.md |
| 42 | +reazonspeech/インストール方法.md: reazonspeech/ReazonSpeechのインストール方法.md |
reazonspeech/ReazonSpeech\343\201\256\343\202\244\343\203\263\343\202\271\343\203\210\343\203\274\343\203\253\346\226\271\346\263\225.md
| ... | ... | @@ -0,0 +1,37 @@ |
| 1 | +```bash |
|
| 2 | +$ mkdir $HOME/reasonspeech |
|
| 3 | +$ cd $HOME/reasonspeech |
|
| 4 | +``` |
|
| 5 | + |
|
| 6 | +```bash |
|
| 7 | +$ python3 -m venv .venv |
|
| 8 | +$ source .venv/bin/activate |
|
| 9 | +``` |
|
| 10 | + |
|
| 11 | +`ModuleNotFoundError: No module named 'Cython'`エラーが出るため、以下を実行する。 |
|
| 12 | +参考: <https://qiita.com/wulong777/items/eb44d4471c0dee69cef6> |
|
| 13 | +```bash |
|
| 14 | +$ pip install --upgrade pip setuptools wheel |
|
| 15 | +``` |
|
| 16 | + |
|
| 17 | +```bash |
|
| 18 | +$ pip install Cython |
|
| 19 | +$ git clone https://github.com/reazon-research/ReazonSpeech |
|
| 20 | +$ pip install ReazonSpeech/pkg/nemo-asr |
|
| 21 | +``` |
|
| 22 | + |
|
| 23 | +いざ実行すると、`ImportError: cannot import name 'ModelFilter' from 'huggingface_hub'`と怒られてしまう。`huggingface-hub`は`0.23.0`以下でないと動かないようだ。 |
|
| 24 | +参考: <https://github.com/NVIDIA/NeMo/issues/9793> |
|
| 25 | +```python |
|
| 26 | +from huggingface_hub import HfApi, HfFolder, ModelFilter, hf_hub_download |
|
| 27 | +ImportError: cannot import name 'ModelFilter' from 'huggingface_hub' (/Users/[省略]/.venv/lib/python3.11/site-packages/huggingface_hub/__init__.py) |
|
| 28 | +``` |
|
| 29 | + |
|
| 30 | +実行は親ディレクトリに移動する必要がある。 |
|
| 31 | +```bash |
|
| 32 | +$ pwd |
|
| 33 | +/User/user_name/reazonspeech |
|
| 34 | +$ reazonspeech-nemo-asr samole.wav |
|
| 35 | +``` |
|
| 36 | + |
|
| 37 | +ちなみに`reazonspeech-nemo-asr`の実体は`$HOME/reazonspeech/.venv/bin/reazonspeech-nemo-asr`にある。 |
|
| ... | ... | \ No newline at end of file |
reazonspeech/\343\202\244\343\203\263\343\202\271\343\203\210\343\203\274\343\203\253\346\226\271\346\263\225.md
| ... | ... | @@ -1,37 +0,0 @@ |
| 1 | -```bash |
|
| 2 | -$ mkdir $HOME/reasonspeech |
|
| 3 | -$ cd $HOME/reasonspeech |
|
| 4 | -``` |
|
| 5 | - |
|
| 6 | -```bash |
|
| 7 | -$ python3 -m venv .venv |
|
| 8 | -$ source .venv/bin/activate |
|
| 9 | -``` |
|
| 10 | - |
|
| 11 | -`ModuleNotFoundError: No module named 'Cython'`エラーが出るため、以下を実行する。 |
|
| 12 | -参考: <https://qiita.com/wulong777/items/eb44d4471c0dee69cef6> |
|
| 13 | -```bash |
|
| 14 | -$ pip install --upgrade pip setuptools wheel |
|
| 15 | -``` |
|
| 16 | - |
|
| 17 | -```bash |
|
| 18 | -$ pip install Cython |
|
| 19 | -$ git clone https://github.com/reazon-research/ReazonSpeech |
|
| 20 | -$ pip install ReazonSpeech/pkg/nemo-asr |
|
| 21 | -``` |
|
| 22 | - |
|
| 23 | -いざ実行すると、`ImportError: cannot import name 'ModelFilter' from 'huggingface_hub'`と怒られてしまう。`huggingface-hub`は`0.23.0`以下でないと動かないようだ。 |
|
| 24 | -参考: <https://github.com/NVIDIA/NeMo/issues/9793> |
|
| 25 | -```python |
|
| 26 | -from huggingface_hub import HfApi, HfFolder, ModelFilter, hf_hub_download |
|
| 27 | -ImportError: cannot import name 'ModelFilter' from 'huggingface_hub' (/Users/[省略]/.venv/lib/python3.11/site-packages/huggingface_hub/__init__.py) |
|
| 28 | -``` |
|
| 29 | - |
|
| 30 | -実行は親ディレクトリに移動する必要がある。 |
|
| 31 | -```bash |
|
| 32 | -$ pwd |
|
| 33 | -/User/user_name/reazonspeech |
|
| 34 | -$ reazonspeech-nemo-asr samole.wav |
|
| 35 | -``` |
|
| 36 | - |
|
| 37 | -ちなみに`reazonspeech-nemo-asr`の実体は`$HOME/reazonspeech/.venv/bin/reazonspeech-nemo-asr`にある。 |
|
| ... | ... | \ No newline at end of file |