michaelj commited on
Commit
17e6751
1 Parent(s): fe2ff35

Upload folder using huggingface_hub

Browse files
__pycache__/app_settings.cpython-310.pyc CHANGED
Binary files a/__pycache__/app_settings.cpython-310.pyc and b/__pycache__/app_settings.cpython-310.pyc differ
 
app.py CHANGED
@@ -6,6 +6,7 @@ from context import Context
6
  from constants import APP_VERSION, LCM_DEFAULT_MODEL_OPENVINO
7
  from models.interface_types import InterfaceType
8
  from constants import DEVICE
 
9
 
10
  parser = ArgumentParser(description=f"FAST SD CPU {constants.APP_VERSION}")
11
  parser.add_argument(
@@ -141,8 +142,9 @@ if args.version:
141
  # parser.print_help()
142
  show_system_info()
143
  print(f"Using device : {constants.DEVICE}")
144
- app_settings = AppSettings()
145
- app_settings.load()
 
146
  print(
147
  f"Found {len(app_settings.stable_diffsuion_models)} stable diffusion models in config/stable-diffusion-models.txt"
148
  )
@@ -158,4 +160,4 @@ from frontend.webui.ui import start_webui
158
  print("Starting web UI mode")
159
  start_webui(
160
  args.share,
161
- )
 
6
  from constants import APP_VERSION, LCM_DEFAULT_MODEL_OPENVINO
7
  from models.interface_types import InterfaceType
8
  from constants import DEVICE
9
+ from state import get_settings
10
 
11
  parser = ArgumentParser(description=f"FAST SD CPU {constants.APP_VERSION}")
12
  parser.add_argument(
 
142
  # parser.print_help()
143
  show_system_info()
144
  print(f"Using device : {constants.DEVICE}")
145
+ app_settings = get_settings()
146
+
147
+ print(f"Found {len(app_settings.lcm_models)} LCM models in config/lcm-models.txt")
148
  print(
149
  f"Found {len(app_settings.stable_diffsuion_models)} stable diffusion models in config/stable-diffusion-models.txt"
150
  )
 
160
  print("Starting web UI mode")
161
  start_webui(
162
  args.share,
163
+ )
app_settings.py CHANGED
@@ -15,7 +15,7 @@ from copy import deepcopy
15
  class AppSettings:
16
  def __init__(self):
17
  self.config_path = FastStableDiffusionPaths().get_app_settings_path()
18
- self._stable_diffsuion_models = get_models_from_text_file(
19
  FastStableDiffusionPaths().get_models_config_path(SD_MODELS_FILE)
20
  )
21
  self._lcm_lora_models = get_models_from_text_file(
 
15
  class AppSettings:
16
  def __init__(self):
17
  self.config_path = FastStableDiffusionPaths().get_app_settings_path()
18
+ self._stable_diffsuion_models = get_models_from_text_file (
19
  FastStableDiffusionPaths().get_models_config_path(SD_MODELS_FILE)
20
  )
21
  self._lcm_lora_models = get_models_from_text_file(