re-fix to support python 3.8/3.9

This commit is contained in:
Kohya S
2023-03-05 22:35:32 +09:00
parent dd39e5d944
commit 2ae33db83f

View File

@@ -167,7 +167,7 @@ class ConfigSanitizer:
"enable_bucket": bool,
"max_bucket_reso": int,
"min_bucket_reso": int,
"resolution": functools.partial(__validate_and_convert_scalar_or_twodim, int),
"resolution": functools.partial(__validate_and_convert_scalar_or_twodim.__func__, int),
}
# options handled by argparse but not handled by user config