mirror of
https://github.com/FunAudioLLM/CosyVoice.git
synced 2026-02-05 01:49:25 +08:00
use spk_embedding when sft
This commit is contained in:
@@ -52,6 +52,10 @@ class Executor:
|
||||
info_dict["batch_idx"] = batch_idx
|
||||
if cosyvoice_join(group_join, info_dict):
|
||||
break
|
||||
if info_dict["use_spk_embedding"] is True:
|
||||
batch_dict["embedding"] = batch_dict["spk_embedding"]
|
||||
else:
|
||||
batch_dict["embedding"] = batch_dict["utt_embedding"]
|
||||
|
||||
# Disable gradient synchronizations across DDP processes.
|
||||
# Within this context, gradients will be accumulated on module
|
||||
|
||||
Reference in New Issue
Block a user