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

fix is model loaded bug #729

Merged
merged 2 commits into from
Jan 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions crates/voicevox_core/src/publish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -459,15 +459,23 @@ impl InferenceCore {
status.is_talk_model_loaded(model_index)
} else {
// ハミング機能及び歌機能モデルはどちらかが存在しない事があるので、どちらかが存在しない場合でも無視する
let mut loaded = false;
let mut loaded = true;
let mut model_found = false;
if let Some((model_index, _)) =
get_sing_teacher_model_index_and_speaker_id(speaker_id)
{
loaded |= status.is_sing_teacher_model_loaded(model_index);
loaded &= status.is_sing_teacher_model_loaded(model_index);
model_found = true;
}
if let Some((model_index, _)) = get_sf_decode_model_index_and_speaker_id(speaker_id)
{
loaded |= status.is_sf_decode_model_loaded(model_index);
loaded &= status.is_sf_decode_model_loaded(model_index);
model_found = true;
}
// ハミング機能及び歌機能モデルの両方が存在しなかった時はloaded = falseにする
if !model_found {
// FIXME: ワーニングを出すか、エラーにする
loaded = false
Hiroshiba marked this conversation as resolved.
Show resolved Hide resolved
}
loaded
}
Expand Down
Loading