From 721658e0e731f8eecbd1fd250900e3727a806745 Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Sun, 1 Oct 2023 11:23:51 -0400 Subject: [PATCH] cmdopts parse --- scripts/system-info.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/system-info.py b/scripts/system-info.py index 4910901..307e73b 100644 --- a/scripts/system-info.py +++ b/scripts/system-info.py @@ -204,11 +204,13 @@ def get_memory(): def get_optimizations(): ram = [] - if shared.cmd_opts.medvram: + if getattr(shared.cmd_opts, 'medvram', False): ram.append('medvram') - if shared.cmd_opts.lowvram: + if getattr(shared.cmd_opts, 'medvram_sdxl', False): + ram.append('medvram-sdxl') + if getattr(shared.cmd_opts, 'lowvram', False): ram.append('lowvram') - if shared.cmd_opts.lowram: + if getattr(shared.cmd_opts, 'lowvam', False): ram.append('lowram') if len(ram) == 0: ram.append('none') @@ -450,7 +452,7 @@ def refresh_info_full(): def create_ui(blocks: gr.Blocks = None): if not standalone: - from modules.ui import ui_system_tabs + from modules.ui import ui_system_tabs # pylint: disable=redefined-outer-name else: ui_system_tabs = None