Skip to content

feat(mixln): add config switch to disable speaker-shuffle during training - #326

Open
KakaruHayate wants to merge 3 commits into
openvpi:mainfrom
KakaruHayate:pr/mixln-shuffle-speakers
Open

feat(mixln): add config switch to disable speaker-shuffle during training#326
KakaruHayate wants to merge 3 commits into
openvpi:mainfrom
KakaruHayate:pr/mixln-shuffle-speakers

Conversation

@KakaruHayate

Copy link
Copy Markdown

Mixed_LayerNorm mixes affine (beta/gamma) params across shuffled speakers in the batch at training time. Add a \mixln_shuffle_speakers\ flag (default: disabled) that keeps the conditional-affine network structure but skips the speaker shuffle when set to false, so each speaker's params stay consistent within a step (less inter-speaker leakage).

The flag is threaded constructor-to-constructor (no new hparams imports in layer modules, per repo convention) and synced into both acoustic configs.

Source: KakaruHayate/DiffSinger default branch commit c10fd2e (merge of #63).

…ning
Mixed_LayerNorm mixes affine (beta/gamma) params across shuffled speakers
in the batch at training time. Add a mixln_shuffle_speakers flag
(default true = original behaviour) that keeps the conditional-affine
network structure but skips the speaker shuffle when set to false, so each
speaker's params stay consistent within a step (less inter-speaker leakage).
The flag is threaded constructor-to-constructor (no new hparams imports in
layer modules, per repo convention) and synced into both acoustic configs.
KakaruHayate added a commit to KakaruHayate/DiffSinger that referenced this pull request Aug 25, 2026
# Conflicts:
#	configs/acoustic.yaml
#	configs/templates/config_acoustic.yaml
#	modules/commons/common_layers.py
#	modules/fastspeech/acoustic_encoder.py
#	modules/fastspeech/tts_modules.py
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@KakaruHayate