Fixed parameters not actually parsing through

This commit is contained in:
Dilan Boskan
2021-01-14 16:40:14 +01:00
parent 12deede098
commit ae434b7194
4 changed files with 22 additions and 5 deletions

View File

@@ -176,7 +176,9 @@ data = {
'window_size': 320,
'n_fft': 2_048,
# Resolution Type
'resType': 'kaiser_fast'
'resType': 'kaiser_fast',
# Parsed constants should be fixed
'manType': False,
}
default_sr = data['sr']
default_hop_length = data['hop_length']
@@ -214,6 +216,10 @@ def update_constants(model_name):
data['window_size'] = default_window_size
data['n_fft'] = default_n_fft
if data['manType']:
# Default constants should be fixed
return
for text_part in text_parts:
if 'sr' in text_part:
text_part = text_part.replace('sr', '')