From cec55255caef451346932b55c041107db68b0cda Mon Sep 17 00:00:00 2001 From: kjerk Date: Thu, 24 Nov 2022 01:53:52 -0800 Subject: [PATCH] Change batch defaults to be friendlier to lower Vram cards --- scripts/img2img.py | 2 +- scripts/txt2img.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/img2img.py b/scripts/img2img.py index 9085ba9..a874dd9 100644 --- a/scripts/img2img.py +++ b/scripts/img2img.py @@ -126,7 +126,7 @@ def main(): parser.add_argument( "--n_samples", type=int, - default=2, + default=1, help="how many samples to produce for each given prompt. A.k.a batch size", ) diff --git a/scripts/txt2img.py b/scripts/txt2img.py index 1ed42a3..9860659 100644 --- a/scripts/txt2img.py +++ b/scripts/txt2img.py @@ -91,7 +91,7 @@ def parse_args(): parser.add_argument( "--n_iter", type=int, - default=3, + default=2, help="sample this often", ) parser.add_argument( @@ -121,7 +121,7 @@ def parse_args(): parser.add_argument( "--n_samples", type=int, - default=3, + default=1, help="how many samples to produce for each given prompt. A.k.a batch size", ) parser.add_argument(