Skip to content

Commit

Permalink
Save last selected models #36
Browse files Browse the repository at this point in the history
  • Loading branch information
DilanBoskan committed Dec 2, 2020
1 parent da21b52 commit 067695b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions VocalRemover.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@
'stackOnly': False,
'saveAllStacked': False,
'modelFolder': False,
'modelInstrumentalLabel': 'model_iter26_sr33075_hl384_w512.pth',
'modelStackedLabel': 'baseline.pth',
'aiModel': 'v4',

'useModel': 'instrumental',
Expand Down Expand Up @@ -286,8 +288,8 @@ def __init__(self):
self.tta_var = tk.BooleanVar(value=data['tta'])
self.outputImage_var = tk.BooleanVar(value=data['output_image'])
# Models
self.instrumentalModel_var = tk.StringVar(value='')
self.stackedModel_var = tk.StringVar(value='')
self.instrumentalModel_var = tk.StringVar(value=data['modelInstrumentalLabel'])
self.stackedModel_var = tk.StringVar(value=data['modelStackedLabel'])
# Stacked Options
self.stack_var = tk.BooleanVar(value=data['stack'])
self.stackLoops_var = tk.StringVar(value=data['stackPasses'])
Expand Down Expand Up @@ -956,6 +958,8 @@ def save_values(self):
'useModel': 'instrumental',
'lastDir': self.lastDir,
'modelFolder': self.modelFolder_var.get(),
'modelInstrumentalLabel': self.instrumentalModel_var.get(),
'modelStackedLabel': self.stackedModel_var.get(),
'aiModel': self.aiModel_var.get(),
})

Expand Down

0 comments on commit 067695b

Please sign in to comment.