From 2ae33db83f0b5c57e1759040f06fe44d1dcf9f71 Mon Sep 17 00:00:00 2001 From: Kohya S Date: Sun, 5 Mar 2023 22:35:32 +0900 Subject: [PATCH] re-fix to support python 3.8/3.9 --- library/config_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/config_util.py b/library/config_util.py index afc9be75..47a3ac82 100644 --- a/library/config_util.py +++ b/library/config_util.py @@ -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