Skip to content

Commit 15a13f6

Browse files
committed
new settings load fix
fixup
1 parent 3719388 commit 15a13f6

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

scripts/deforum/settings.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,21 @@ def load_settings(settings_path, override_settings_with_file, custom_settings_fi
7272
ret.append(sampler_val)
7373

7474
elif key == 'fill':
75-
fill_val = jdata[key]
75+
if key in jdata:
76+
fill_val = jdata[key]
77+
else:
78+
fill_val = mask_fill_choices[0]
7679
if type(fill_val) == int:
7780
from .args import mask_fill_choices
7881
ret.append(mask_fill_choices[fill_val])
7982
else:
8083
ret.append(fill_val)
8184

8285
elif key == 'zeros_fill_mode':
83-
fill_val = jdata[key]
86+
if key in jdata:
87+
fill_val = jdata[key]
88+
else:
89+
fill_val = mask_fill_choices[0]
8490
if type(fill_val) == int:
8591
from .args import mask_fill_choices
8692
ret.append(mask_fill_choices[fill_val])

0 commit comments

Comments
 (0)