When I try to use the --help option I get the following exception:
Traceback (most recent call last):
File "/home/johannesg/Projects/waifu-diffusion/scripts/webui_voldemort.py", line 15, in <module>
from modules.shared import opts, cmd_opts, state
File "/home/johannesg/Projects/stable-diffusion-webui-voldemort/modules/shared.py", line 33, in <module>
cmd_opts = parser.parse_args()
File "/usr/lib/python3.10/argparse.py", line 1826, in parse_args
args, argv = self.parse_known_args(args, namespace)
File "/usr/lib/python3.10/argparse.py", line 1859, in parse_known_args
namespace, args = self._parse_known_args(args, namespace)
File "/usr/lib/python3.10/argparse.py", line 2068, in _parse_known_args
start_index = consume_optional(start_index)
File "/usr/lib/python3.10/argparse.py", line 2008, in consume_optional
take_action(action, args, option_string)
File "/usr/lib/python3.10/argparse.py", line 1936, in take_action
action(self, namespace, argument_values, option_string)
File "/usr/lib/python3.10/argparse.py", line 1099, in __call__
parser.print_help()
File "/usr/lib/python3.10/argparse.py", line 2556, in print_help
self._print_message(self.format_help(), file)
File "/usr/lib/python3.10/argparse.py", line 2540, in format_help
return formatter.format_help()
File "/usr/lib/python3.10/argparse.py", line 283, in format_help
help = self._root_section.format_help()
File "/usr/lib/python3.10/argparse.py", line 214, in format_help
item_help = join([func(*args) for func, args in self.items])
File "/usr/lib/python3.10/argparse.py", line 214, in <listcomp>
item_help = join([func(*args) for func, args in self.items])
File "/usr/lib/python3.10/argparse.py", line 214, in format_help
item_help = join([func(*args) for func, args in self.items])
File "/usr/lib/python3.10/argparse.py", line 214, in <listcomp>
item_help = join([func(*args) for func, args in self.items])
File "/usr/lib/python3.10/argparse.py", line 533, in _format_action
help_text = self._expand_help(action)
File "/usr/lib/python3.10/argparse.py", line 630, in _expand_help
return self._get_help_string(action) % params
TypeError: %d format: a real number is required, not dict
I used git bisect to localize the commit that introduced the bug:
5bb126bd89dd0fb87280472f472388a6f230c270 is the first bad commit
commit 5bb126bd89dd0fb87280472f472388a6f230c270
Author: AUTOMATIC <16777216c@gmail.com>
Date: Mon Sep 5 01:41:20 2022 +0300
add split attention layer optimization from https://github.com/basujindal/stable-diffusion/pull/117
modules/sd_hijack.py | 44 +++++++++++++++++++++++++++++++++++++++++++-
modules/shared.py | 1 +
2 files changed, 44 insertions(+), 1 deletion(-)
When I try to use the --help option I get the following exception:
I used git bisect to localize the commit that introduced the bug: