Skip to content

Commit

Permalink
コアをロードするときにログを出すようにする (#722)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiroshiba authored Aug 18, 2023
1 parent 92f00d7 commit 31b1bc8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions voicevox_engine/synthesis_engine/make_synthesis_engines.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def load_core_library(core_dir: Path, suppress_error: bool = False):
core = CoreWrapper(use_gpu, core_dir, cpu_num_threads, load_all_models)
metas = json.loads(core.metas())
core_version = metas[0]["version"]
print(f"Info: Loading core {core_version}.")
if core_version in synthesis_engines:
print(
"Warning: Core loading is skipped because of version duplication.",
Expand Down Expand Up @@ -115,6 +116,7 @@ def load_core_library(core_dir: Path, suppress_error: bool = False):
from ..dev.synthesis_engine import MockSynthesisEngine

if "0.0.0" not in synthesis_engines:
print("Info: Loading mock.")
synthesis_engines["0.0.0"] = MockSynthesisEngine(
speakers=mock_metas(), supported_devices=mock_supported_devices()
)
Expand Down

0 comments on commit 31b1bc8

Please sign in to comment.