Skip to content

Commit 7314f1a

Browse files
authored
add --karras_max option to invoke.py command line (invoke-ai#1762)
This addresses image regression image reported in invoke-ai#1754
1 parent 5c3cbd0 commit 7314f1a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

ldm/invoke/args.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,12 @@ def _create_arg_parser(self):
583583
action='store_true',
584584
help='Generates debugging image to display'
585585
)
586+
render_group.add_argument(
587+
'--karras_max',
588+
type=int,
589+
default=None,
590+
help="control the point at which the K* samplers will shift from using the Karras noise schedule (good for low step counts) to the LatentDiffusion noise schedule (good for high step counts). Set to 0 to use LatentDiffusion for all step values, and to a high value (e.g. 1000) to use Karras for all step values. [29]."
591+
)
586592
# Restoration related args
587593
postprocessing_group.add_argument(
588594
'--no_restore',

0 commit comments

Comments
 (0)