Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

推論時にユーザー辞書をロードするには? #134

Open
kosukekurimoto opened this issue May 31, 2024 · 2 comments
Open

推論時にユーザー辞書をロードするには? #134

kosukekurimoto opened this issue May 31, 2024 · 2 comments

Comments

@kosukekurimoto
Copy link

以下のライブラリで推論時にユーザー辞書ファイルをロードするにはどうすれば良いですか?
https://github.com/litagin02/Style-Bert-VITS2/blob/32145e18a3c84008897e77c4fee2695931e59355/library.ipynb

@litagin02
Copy link
Owner

def update_dict(
default_dict_path: Path = default_dict_path,
user_dict_path: Path = user_dict_path,
compiled_dict_path: Path = compiled_dict_path,
) -> None:

このupdate_dictを使って、

from style_bert_vits2.nlp.japanese.user_dict import update_dict


update_dict(Path("dict_data/default.csv"), Path("dict_data/user_dict.json"), Path("user.dic.test"))

とすれば効くようになると思います。

@OzoneAsai
Copy link

@kosukekurimoto 解決しましたか?
気持ち的にCloseしたい(第三者のこだわりである故、無視していただいても構わないが)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants