Giter VIP home page Giter VIP logo

setup-nnsvs-on-wsl's Introduction

setup-nnsvs-on-wsl

WSL上にNNSVSの環境構築とアップデートするバッチとシェルスクリプト

動作確認環境

  • Windows 10 Home Insider Preview
    • バージョン 2004
    • OSビルド 20241.1005
  • WSL1, 2(Ubuntu 20.04 LTS, Ubuntu)

補足

  • autocrlf = false にしてあります。

使い方

WSLを普段使わない人

  1. 管理者権限でPowerShellを起動して、次のコマンドを実行
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
  1. PCを再起動(必ず)
  2. Ubuntu をインストール
  3. Ubuntuを起動してユーザー名とパスワードを登録
  4. Ubuntuを閉じる。
  5. このREADMEをブラウザで見ている場合は、ここ からダウンロードした zip を解凍
  6. setup_nnsvs_on_wsl.bat をダブルクリックで実行。(セキュリティ関連の警告が出るかもしれません。)
  7. 10分から30分ほど待機。たまにパスワード入力を求められるので入力してください。

普段からWSLを使う人

  1. setup_nnsvs_on_wsl.bat をダブルクリック実行で、NNSVSをインストール。

CUDAの環境を作りたい場合(CUDAを使用可能なバージョンのWSL2を利用している場合)

  1. Windowsに Visual C++ Build Tools をインストール (参考:Visual Studio Community 2019 vesion 16.2, Visual C++ ビルドツールのインストール(Windows 上)
  2. Windowsに CUDA Toolkit 10.1 をインストール (参考:WSL 2 で GPU を使う(WSL 2 の Ubuntu で,CUDA や PyTorch や TensorFlow 2.2 GPU 版を動かす.Docker は使わない,Windows 10 Insider Program,WSL 2 上 の Ubuntu を使用)
  3. setup_cuda_on_wsl.bat をダブルクリック実行して、WSLにCUDAとPyTorchをインストール

NNSVSのアップデート

2020年10月以前に本ツールでインストールした環境をアップデートできます。

アップデート手順

  1. update_nnsvs_on_wsl.bat をダブルクリック実行
  2. [sudo] password for crazy-sub: と表示されたらUbuntuのパスワードを入力してEnter
  3. Proceed (y/n)? と表示されたら y と入力してEnter(1回目)
  4. Proceed (y/n)? と表示されたら y と入力してEnter(2回目)
  5. Proceed (y/n)? と表示されたら y と入力してEnter(3回目)
  6. 処理が完了したら音が鳴ります。

困ったときは

import sinsy に失敗する(Sinsyがないって言われる)ときは、とりあえず export LD_LIBRARY_PATH=/usr/local/lib をしたらいいです。

参考

setup-nnsvs-on-wsl's People

Contributors

oatsu-gh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

setup-nnsvs-on-wsl's Issues

Error 'import pysinsy' when using nnsvs

My English is bad. So I used a translator. I'm sorry.

I installed wsl1 and Ubuntu to use nnsvs.
Then I tried to install nnsvs using setup-nsvs-on-wsl, but it didn't install properly because of an error.
There was an error installing sinsy:
CMake Error at CMakeLists.txt:20 (add_subdirectory): add_subdirectory given source "lib/hts_engine_API/hts_engine/src" which is not an existing directory.
So I copied the ~/hts_engine_API/src folder to ~/siny/src/lib/hts_engine_API/hts_engine/ and restarted the install.
nnsvs were installed but did not work.
I found an error when 'import pysinsy':
.>>> import pysinsy
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.8/dist-packages/pysinsy/init.py", line 5, in
from .sinsy import Sinsy
ImportError: /usr/local/lib/libsinsy.so.0.9: undefined symbol: HTS_Engine_get_nsamples

First, I asked the producer of pysinsy(r9y9/pysinsy#5), and he answered to ask here.
Please help me to resolve this error...😢
Thank you for reading!

Original Message(Korean):
저는 nnsvs를 사용하기 위해 wsl1과 Ubuntu를 설치했습니다.
그 다음 setup-nsvs-on-wsl를 이용해 nnsvs를 설치하려고 했지만, 오류가 나서 설치가 되지 않았습니다.
sinsy를 설치할 때 오류가 있었습니다:
CMake Error at CMakeLists.txt:20 (add_subdirectory): add_subdirectory given source "lib/hts_engine_API/hts_engine/src" which is not an existing directory.
그래서 저는 ~/hts_engine_API/src 폴더를 ~/siny/src/lib/hts_engine_API/hts_engine/에 복사한 뒤 설치를 다시 시작했습니다.
nnsvs는 설치되었지만 작동하지 않았습니다.
저는 'import pysinsy'에서 오류를 찾았습니다:
.>>> import pysinsy
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.8/dist-packages/pysinsy/init.py", line 5, in
from .sinsy import Sinsy
ImportError: /usr/local/lib/libsinsy.so.0.9: undefined symbol: HTS_Engine_get_nsamples

먼저 저는 pysinsy의 제작자에게 문의했고(r9y9/pysinsy#5), 이곳에도 문의해보라는 답변을 받았습니다.
제가 이 오류를 해결할 수 있도록 도와주세요...😢
읽어주셔서 감사합니다.

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.