fix: use full first clip for eval samples instead of 1s segment

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-09 03:01:52 +02:00
parent 710261f5be
commit 0128a81cc2
+1 -1
View File
@@ -275,7 +275,7 @@ def _do_train(vocoder, mel_converter, clips,
random.seed(seed)
# Reference segment for eval samples — always clip 0, start 0
ref_wav = clips[0][:segment_samples].to(device, dtype) # [T]
ref_wav = clips[0].to(device, dtype) # full first clip [T]
ref_mel = mel_converter(ref_wav.unsqueeze(0)) # [1, n_mels, T_mel]
def _save_sample(label):