Skip to content

Commit

Permalink
fix: int parse (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxiao authored Aug 7, 2022
1 parent ae2060c commit af52028
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discoart/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def load_config(
cfg.update(**user_config)

int_keys = {k for k, v in default_args.items() if isinstance(v, int)}
int_keys.add('seed')
int_keys = int_keys.union({'seed', 'cut_overview', 'cut_innercut'})

for k, v in cfg.items():
if k in int_keys and v is not None and not isinstance(v, (int, str)):
Expand Down

0 comments on commit af52028

Please sign in to comment.