Skip to content

Commit 2a804aa

Browse files
committed
fixup
1 parent 6a06a47 commit 2a804aa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/deforum/settings.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,18 +71,18 @@ def load_settings(settings_path, override_settings_with_file, custom_settings_fi
7171
else:
7272
ret.append(sampler_val)
7373

74-
elif key == 'fill' and key in jdata:
74+
elif key == 'fill':
7575
from .args import mask_fill_choices
76-
fill_val = jdata[key]
76+
fill_val = jdata[key] if key in jdata else fill
7777
if type(fill_val) == int:
7878
from .args import mask_fill_choices
7979
ret.append(mask_fill_choices[fill_val])
8080
else:
8181
ret.append(fill_val)
8282

83-
elif key == 'zeros_fill_mode' and key in jdata:
83+
elif key == 'zeros_fill_mode':
8484
from .args import mask_fill_choices
85-
fill_val = jdata[key]
85+
fill_val = jdata[key] if key in jdata else zeros_fill_mode
8686
if type(fill_val) == int:
8787
ret.append(mask_fill_choices[fill_val])
8888
else:

0 commit comments

Comments
 (0)