From cf97560e7065312f5645d5f734d77c697b352c84 Mon Sep 17 00:00:00 2001 From: mrq Date: Tue, 3 Dec 2024 19:40:05 -0600 Subject: [PATCH] minimum CFG of 3 for NAR-len because it seems the model will auto-default to NAR-len now --- vall_e/models/ar_nar.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vall_e/models/ar_nar.py b/vall_e/models/ar_nar.py index dea26e7..304d39a 100644 --- a/vall_e/models/ar_nar.py +++ b/vall_e/models/ar_nar.py @@ -265,6 +265,8 @@ class AR_NAR(Base): len_list = [ clamp(l, min_length, max_length) for l in len_list ] + # force set CFG because too low / no CFG causes issues + cfg_strength = max( cfg_strength, 3.0 ) # if we're denoising from an existing sequence if start_noise > 0.0 and resps_list is not None: