Skip to content

Commit

Permalink
cmdopts parse
Browse files Browse the repository at this point in the history
  • Loading branch information
vladmandic committed Oct 1, 2023
1 parent 2647efc commit 721658e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions scripts/system-info.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,13 @@ def gb(val: float):

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')
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 721658e

Please sign in to comment.