aboutsummaryrefslogtreecommitdiff
path: root/modules/shared.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-09-05 02:16:36 +0300
committerAUTOMATIC <16777216c@gmail.com>2022-09-05 02:16:36 +0300
commitf91d0c3d19ac2b849cd15a519f711f9281e782cd (patch)
treec9aa258638e795f1f7ecdc78079ed2b3c58c98c8 /modules/shared.py
parenta039878c0f583aab3cd75b32635ef00cd7a5c2b5 (diff)
add an option to enable tiling image generation
Diffstat (limited to 'modules/shared.py')
-rw-r--r--modules/shared.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/shared.py b/modules/shared.py
index 9e744f6c..0722185d 100644
--- a/modules/shared.py
+++ b/modules/shared.py
@@ -30,6 +30,8 @@ parser.add_argument("--precision", type=str, help="evaluate at this precision",
parser.add_argument("--share", action='store_true', help="use share=True for gradio and make the UI accessible through their site (doesn't work for me but you might have better luck)")
parser.add_argument("--esrgan-models-path", type=str, help="path to directory with ESRGAN models", default=os.path.join(script_path, 'ESRGAN'))
parser.add_argument("--opt-split-attention", action='store_true', help="enable optimization that reduced vram usage by a lot for about 10% decrease in performance")
+parser.add_argument("--tiling", action='store_true', help="causes the model to generate images that can be tiled")
+
cmd_opts = parser.parse_args()
cpu = torch.device("cpu")