Spaces:
Running
Running
Update styletts2importable.py
Browse files- styletts2importable.py +2 -2
styletts2importable.py
CHANGED
@@ -735,7 +735,7 @@ _ = [model[key].eval() for key in model]
|
|
735 |
_ = [model[key].to(device) for key in model]
|
736 |
|
737 |
# params_whole = torch.load("Models/LibriTTS/epochs_2nd_00020.pth", map_location='cpu')
|
738 |
-
params_whole = torch.load("Models/
|
739 |
params = params_whole['net']
|
740 |
|
741 |
for key in model:
|
@@ -761,7 +761,7 @@ from Modules.diffusion.sampler import DiffusionSampler, ADPM2Sampler, KarrasSche
|
|
761 |
sampler = DiffusionSampler(
|
762 |
model.diffusion.diffusion,
|
763 |
sampler=ADPM2Sampler(),
|
764 |
-
sigma_schedule=KarrasSchedule(sigma_min=0.0001, sigma_max=0.
|
765 |
clamp=False
|
766 |
)
|
767 |
|
|
|
735 |
_ = [model[key].to(device) for key in model]
|
736 |
|
737 |
# params_whole = torch.load("Models/LibriTTS/epochs_2nd_00020.pth", map_location='cpu')
|
738 |
+
params_whole = torch.load("Models/epoch_2nd_00046_NO_SLM.pth", map_location='cpu')
|
739 |
params = params_whole['net']
|
740 |
|
741 |
for key in model:
|
|
|
761 |
sampler = DiffusionSampler(
|
762 |
model.diffusion.diffusion,
|
763 |
sampler=ADPM2Sampler(),
|
764 |
+
sigma_schedule=KarrasSchedule(sigma_min=0.0001, sigma_max=0.68, rho=4.6), # empirical parameters
|
765 |
clamp=False
|
766 |
)
|
767 |
|