add the recently added commands to the readline command-line-completion list; fix command-line documentation bug, closing issue #188

This commit is contained in:
Lincoln Stein 2022-08-29 22:34:09 -04:00
parent d48299e56c
commit 42ffcd7204
2 changed files with 22 additions and 27 deletions

View File

@ -86,32 +86,27 @@ if readline_available:
readline.set_completer(
Completer(
[
'cd',
'pwd',
'--steps',
'-s',
'--seed',
'-S',
'--iterations',
'-n',
'--batch_size',
'-b',
'--width',
'-W',
'--height',
'-H',
'--cfg_scale',
'-C',
'--grid',
'-g',
'--individual',
'-i',
'--init_img',
'-I',
'--strength',
'-f',
'-v',
'--variants',
'--steps','-s',
'--seed','-S',
'--iterations','-n',
'--batch_size','-b',
'--width','-W','--height','-H',
'--cfg_scale','-C',
'--grid','-g',
'--individual','-i',
'--init_img','-I',
'--strength','-f',
'--variants','-v',
'--outdir','-o',
'--sampler','-A','-m',
'--embedding_path',
'--device',
'--grid','-g',
'--gfpgan_strength','-G',
'--upscale','-U',
'-save_orig','--save_original',
'--skip_normalize','-x',
'--log_tokenization','t',
]
).complete
)

View File

@ -437,7 +437,7 @@ def create_cmd_parser():
'--cfg_scale',
default=7.5,
type=float,
help='Prompt configuration scale',
help='Classifier free guidance (CFG) scale - higher numbers cause generator to "try" harder.',
)
parser.add_argument(
'-g', '--grid', action='store_true', help='generate a grid'