preload.py 513 B

12345678
  1. import os
  2. from modules import paths
  3. from modules.paths_internal import normalized_filepath
  4. def preload(parser):
  5. parser.add_argument("--lora-dir", type=normalized_filepath, help="Path to directory with Lora networks.", default=os.path.join(paths.models_path, 'Lora'))
  6. parser.add_argument("--lyco-dir-backcompat", type=normalized_filepath, help="Path to directory with LyCORIS networks (for backawards compatibility; can also use --lyco-dir).", default=os.path.join(paths.models_path, 'LyCORIS'))