Skip to content

Commit 5861df0

Browse files
misc
1 parent a13e768 commit 5861df0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Utils/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ def upgrade_configs_structure(config):
137137
model = config.get('model', {})
138138
renderer = model.get('renderer', {})
139139
isOldRestorator = ('restorator' in model) or ('decoder' in model)
140-
if isOldRestorator:
140+
hasNewRestorator = 'restoration model' in renderer
141+
if isOldRestorator and not hasNewRestorator:
141142
# if restorator is specified in model, move it to model/renderer
142143
moveField(
143144
['model', 'restorator'],

0 commit comments

Comments
 (0)