Skip to content

Commit

Permalink
misc
Browse files Browse the repository at this point in the history
  • Loading branch information
GreenWizard2015 committed Apr 9, 2024
1 parent a13e768 commit 5861df0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ def upgrade_configs_structure(config):
model = config.get('model', {})
renderer = model.get('renderer', {})
isOldRestorator = ('restorator' in model) or ('decoder' in model)
if isOldRestorator:
hasNewRestorator = 'restoration model' in renderer
if isOldRestorator and not hasNewRestorator:
# if restorator is specified in model, move it to model/renderer
moveField(
['model', 'restorator'],
Expand Down

0 comments on commit 5861df0

Please sign in to comment.