Revert "Feature resolution type"
This commit is contained in:
@@ -53,10 +53,6 @@ data = {
|
||||
'hop_length': 1_024,
|
||||
'window_size': 320,
|
||||
'n_fft': 2_048,
|
||||
# Resolution Type
|
||||
'resType': 'kaiser_fast',
|
||||
# Parsed constants should be fixed
|
||||
'manType': False,
|
||||
}
|
||||
default_sr = data['sr']
|
||||
default_hop_length = data['hop_length']
|
||||
@@ -96,10 +92,6 @@ 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', '')
|
||||
@@ -214,7 +206,7 @@ def main(window: tk.Wm, text_widget: tk.Text, button_widget: tk.Button, progress
|
||||
data['sr'],
|
||||
False,
|
||||
dtype=np.float32,
|
||||
res_type=data['resType'])
|
||||
res_type='kaiser_fast')
|
||||
|
||||
return X, sr
|
||||
|
||||
@@ -377,8 +369,6 @@ def main(window: tk.Wm, text_widget: tk.Text, button_widget: tk.Button, progress
|
||||
folder_path = os.path.join(data["export_path"], modelFolderName)
|
||||
if not os.path.isdir(folder_path):
|
||||
os.mkdir(folder_path)
|
||||
else:
|
||||
folder_path = ''
|
||||
|
||||
# Determine Loops
|
||||
total_loops = data['stackPasses']
|
||||
@@ -386,9 +376,10 @@ def main(window: tk.Wm, text_widget: tk.Text, button_widget: tk.Button, progress
|
||||
total_loops += 1
|
||||
|
||||
for file_num, music_file in enumerate(data['input_paths'], start=1):
|
||||
# Determine File Name
|
||||
base_name = os.path.join(folder_path, f'{file_num}_{os.path.splitext(os.path.basename(music_file))[0]}')
|
||||
try:
|
||||
# Determine File Name
|
||||
base_name = os.path.join(folder_path, f'{file_num}_{os.path.splitext(os.path.basename(music_file))[0]}')
|
||||
|
||||
for loop_num in range(total_loops):
|
||||
# -Determine which model will be used-
|
||||
if not loop_num:
|
||||
|
||||
Reference in New Issue
Block a user